• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using EJB and JMS from J2ME

 
Keristufer Blaze
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's the best way to use session beans and JMS from J2ME? So far I've found iBus Mobile and www.jtom.de. I was hoping to find a standard solution or something open source. Is there anything better? I'm using JBoss as my application server.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Personally I create Servlets that work with the J2ME application, kind of like a Web Service, and then if it needs to call an EJB, then the Servlet will do that on the devices behalf.

But I tended to find that I would use plain old Java objects at that point instead.

But I can see that if the EJBs are already created for a regular application, and you want your mobile device to hook into that.

And other than the two tools that you mention, I have not heard of any other tools.

Mark
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mark Spritzler:
an see that if the EJBs are already created for a regular application, and you want your mobile device to hook into that.


Even so, you can easily create a gateway servlet to interface between mobile (J2ME or SMS) and EJB. You do separate your server side app into MVC layers, right? About other ready-to-use mobile JMS solutions, IBM WebSphere MQ Everyplace is another one.
 
Keristufer Blaze
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem with http is that it's a request/response protocol. I want to use JMS so that I can send messages to the client at random times. Is there a better way to do this? Thanks for the replies.

Also, do you know if there is a limit on the number of JMS connections to one machine? I need my application to be highly scalable and I don't want to spend a ton of money on servers. Would it be better to have all clients send and recieve data as DatagramPackets?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic