+ Reply to Thread
Results 1 to 10 of 10

Thread: Attention Joe Pluta - Java Question

  1. #1
    Guest.Visitor Guest

    Default Attention Joe Pluta - Java Question

    I have a company that wants to automate the way it handles transactions from an auction website. The company would prefer an AS/400 only solution. They were approached w/ solutions that run the gamut of using Domino to a manual VB thing. I was thinking that I could use the new java mail api to read from a pop server on the AS/400 where the mail could be sent/read from. The java app would also have access to DB2/400 so there would be know "uploading" involved. My question is , will this architecture work? I think the java mail api is part of J2EE and I don't know if it is supported on the AS/400...

  2. #2

    Default Attention Joe Pluta - Java Question

    AFAIK, the JavaMail API is 100% Pure Java, so should run on any JDK at 1.2 or greater. The JavaBean Activation Framework (JAF), which is also required, should run as well. I see no problem there. To see a simple interface to a POP3 provider, go here: http://java.sun.com/products/javamail/POP3-README.txt Once you've got the message, it would be a piece of cake to use the data from the message to update a database, using either native I/O or JDBC. On the other hand, I am not an expert, and I'm just getting V4R4 running. I am going to put testing JavaMail pretty high on my priority list, though. If I find anything else out, I'll let you know. src="//www.zappie.net/java/_derived/index.htm_cmp_zero110_vbtn_p.gif" width="140" height="60" border="0" alt="Java400.net - Java/400 Freeware" align="middle"> Java400.Net - where the AS/400 speaks Java with an RPG accent Home of PBD2.0, the color=red>FREE Java/400 Client/Server color=blue>Revitalization Toolkit

  3. #3
    Guest.Visitor Guest

    Default Attention Joe Pluta - Java Question

    Here's a dumb one: AFAIK?

  4. #4
    Guest.Visitor Guest

    Default Attention Joe Pluta - Java Question

    You have to download the beta JT400.zip to get to 1.2, correct?

  5. #5

    Default Attention Joe Pluta - Java Question

    AFAIK? Jeff, Usually it means "As Far As I Know".

  6. #6
    Guest.Visitor Guest

    Default Attention Joe Pluta - Java Question

    Ahhhhhhhhhhh Bach! only a M*A*S*H fan will get it.

  7. #7

    Default Attention Joe Pluta - Java Question

    Okay, now you're getting into some heavy questions here... First, JT400 has nothing to do with the JDK. JT400 is a set of classes that provide utility functions (in this case, AS/400 access). In that aspect, they are the same as the JavaMail classes. Now, the JDK is a different story. The JDK includes the JVM and the core support classes. You can indeed run JDK1.2 on V4R4. You can also run JDK1.1.7. Supposedly you can run BOTH at the same time (although I'm still not sure exactly how). Okay, now that we have differentiated between JDK, JVM, JT400 and JavaMail, on to the fun stuff: JavaMail requires JDK1.2 (and JAF). So, you have to go to JDK1.2. If you go to JDK1.2, you should probably get the open-source version of JT400, because it's designed to work with JDK1.2. Does that help, or is it more confusing? src="//www.zappie.net/java/_derived/index.htm_cmp_zero110_vbtn_p.gif" width="140" height="60" border="0" alt="Java400.net - Java/400 Freeware" align="middle"> Java400.Net - where the AS/400 speaks Java with an RPG accent Home of PBD2.0, the color=red>FREE Java/400 Client/Server color=blue>Revitalization Toolkit

  8. #8
    Guest.Visitor Guest

    Default Attention Joe Pluta - Java Question

    That's what I meant - I need the beta Toolkit to conform to JDK 1.2. I might have a problem if I mix and match JDK's. For instance, swing was com.sun... now javax.swing...

  9. #9

    Default Attention Joe Pluta - Java Question

    Yeah, that's true. But let's try to get a couple things straight. First, the open-source toolkit is NOT a "beta". It's usually ahead of the LP (Licensed Product) toolkit, but stuff that's in the open-source is going to make it into the main product. Second, yes, you have to have javax.swing in order to interface with JDK1.2, but in reality it's not all that important, because you only need the Swing stuff (javax.swing) for the visual access classes, and you won't be using those classes for what you're doing. Time to shove off here - I have a class to teach... I'll check in later. src="//www.zappie.net/java/_derived/index.htm_cmp_zero110_vbtn_p.gif" width="140" height="60" border="0" alt="Java400.net - Java/400 Freeware" align="middle"> Java400.Net - where the AS/400 speaks Java with an RPG accent Home of PBD2.0, the color=red>FREE Java/400 Client/Server color=blue>Revitalization Toolkit

  10. #10
    Guest.Visitor Guest

    Default Attention Joe Pluta - Java Question

    Jeff, I have used the Java classes to send and receive mail simple mail. It is pretty strait forward. Before starting I would look at the RFCs for SMTP and POP which you should be able to find by searching the web. They explain the protocols. Next I would use telnet and try accessing the SMTP and POP servers. This will help you to understand the process of sending and receiving mail. I have not had an opportunity to understand how MIME formatted mail works, which allows you to send formatted messages, images, etc. but what I have seen so far it appears to be a lot more complicated. David Morris

+ Reply to Thread

Similar Threads

  1. Java Program question.
    By tom_nhieu in forum Java
    Replies: 1
    Last Post: 11-11-2004, 11:29 AM
  2. Beginning Java question
    By J.Pluta in forum Java
    Replies: 13
    Last Post: 01-08-2002, 12:18 PM
  3. Java classpath question
    By Guest.Visitor in forum Programming
    Replies: 4
    Last Post: 10-27-2000, 03:28 PM
  4. 'The Business of Java' Question
    By Guest.Visitor in forum Programming
    Replies: 4
    Last Post: 05-06-1999, 10:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts