This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes WebService or Servlet ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "WebService or Servlet ?" Watch "WebService or Servlet ?" New topic

WebService or Servlet ?

Pete Larocque

Joined: Oct 31, 2005
Posts: 14
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

Joined: Feb 05, 2001
Posts: 17276

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.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Pete Larocque

Joined: Oct 31, 2005
Posts: 14
Thanks for the tips!
I agree. Here's the link:
subject: WebService or Servlet ?
It's not a secret anymore!