PDA

View Full Version : J2ME - Connect to AS/400



dmjae2004@yahoo.com
08-10-2004, 01:13 PM
You might have some luck at Marc Logemann's Web Site (http://www.logemann.org/articles/) Marc has written an article around J2ME and the Iseries. Or you could try contacting him directly.

Guest.Visitor
08-11-2004, 06:40 AM
Thanks. I have done that. O complied his example as well.Still the same result. I am missing some small thing. Can anybody help?

Guest.Visitor
08-11-2004, 12:20 PM
Hi All, I am trying to access my AS/400 via J2ME Wireless toolkit 2.1. MEServer is running on a PC with port 4444. When I hit the connect button it is prompting me for the Air time. When I press OK it hangs. Has anybody have an small example just to connect to AS/400 ? I have attached my program. Thanks is advance. Alex Jayasundara

AS400Connect.java (http://www.mcpressonline.com/images/fbfiles/files/6af04bb5_AS400Connect.java)

Guest.Visitor
08-11-2004, 12:20 PM
Hi, I got it worked with the idea of Marc Logemann. Here is the story. With J2ME if you use blocking operations such as connections it can (actually will) lockup the screen. Actually Wireless Toolkit 2.1 gives a warning as well (I just omit that warning). To work arround what I did was create a seperate thread for connection handling. Now it works. Working source code is attached for anybody to use. Alex

AS400Connect.java (http://www.mcpressonline.com/images/fbfiles/files/6af11cdb_AS400Connect.java)