Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HttpConnection VS web service

 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have two ways (?) to talk to server in J2ME , one is HttpConnection, another is web service . Which one is better ? how much cost the web service have to pay , compared to HttpConnection ?

The J2ME has JNDI support ? I mean, it can look up the remote EJB bean directly ?

Thanks
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
J2ME does not have JNDI, usually you will have a Servlet that the Midlet can contact. This Servlet is usually the "Web Service". As far as Web Services with WSDL, you would need a third party product to handle them, maining in the J2ME spec there is no Web Services as they are.

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic