aspose file tools*
The moose likes Java Micro Edition and the fly likes J2ME client to J2EE EJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "J2ME client to J2EE EJB" Watch "J2ME client to J2EE EJB" New topic
Author

J2ME client to J2EE EJB

Mikkel Arentoft
Greenhorn

Joined: Jan 06, 2003
Posts: 2
Hi All
We are working on a J2EE EJB application server project where we want to connect a PDA running J2ME.
We have been experimenting with accessing the EJB's from the PDA without any success.
So I was wondering if anyone had any experience accessing an EJB from a J2ME application.
a sanjuan
Ranch Hand

Joined: Jun 12, 2002
Posts: 164
how exactly, are you trying to "access" the ejb from the pda? wouldn't accessing the j2me app via servlets be more efficient? i've had no problems accessing serverside webapps from a palm when my palm is connected to the internet.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

Yes Servlets are the way to go. You will have a buffer between your EJBs and the PDA. that way you can take whatever you get from the EJB and make it such that the transfer to the PDa is the smallest it can be, thereby speeding your application.
Servlets can access EJBs very nicely, that is why in their web.xml files they have tags for EJB's.
When I say Servlets I also am including JSP in there.
Unfortunately, it looks like you can't use RMI to access classes outside the PDA, that is why you can't access EJBs directly.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Mikkel Arentoft
Greenhorn

Joined: Jan 06, 2003
Posts: 2
Thanks for the replies. I was investigating my options and it is clearly the best way to write a set of high level business functions in a servlet and use that.
But please explain the point about RMI? I have used RMI on a PDA to access classes on a desktop computer without any problems. Why can't it be extended to access EJB's?
Mikkel
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17259
    
    6

My exposure is to MIDLets on MIDP, so on higher more robust PDAs, it could be possible that RMI is available. I have not seen those APIs.
If anyone knows if RMI is available to MIDP let me know too.
Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: J2ME client to J2EE EJB