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

WebService or Servlet ?

 
Pete Larocque
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, first post! probably the first of many, thanks for helping me, i'll try to help people as much as I can.

I'm doing a basic apps on J2ME(BlackBerry, but sticking to j2me API for portability) ...

The user add products to make an invoice, once done I want to send the details to a server, for database storage and another application gonna use those data.

The Blackberry user can also retrieve invoice data from the server, and I want to offer some other functions where the work is done server-side and only retrieve and display results on the Blackberry.

Unfortunaly I don't have a lot of experience in j2me/j2ee, and I wonder what the best approach for the server-side code.

My question is, on the server should I consider making servlet or webservice ?

If you know some good article on WebService versus Servlet I would appreciate as well, can't find anything usefull.

Thank you!
and pardon my english :roll:
[ October 31, 2005: Message edited by: Pete Larocque ]
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, I just consider this. With a Web Service you will need to deal with XML on the device. This is available, but you can accomplish this with just a Servlet and straight text. Actually, the Servlet approach is called using a Servlet as a Web Service.

If it is more database intensive, I'd look into PointBase, which has a J2ME solution for easy integratiohn with backend database like Oracle. This is the best solution, but costs money.

Mark
 
Pete Larocque
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the tips!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic