Q
Problem solve Get help with specific problems with your technologies, process and projects.

How do I use JMS without an EJB tier?

I am new to JMS. How do I use JMS without an EJB tier? For example, I want to use J2ME + servlet+XML+Javabean+JMS...

in a mobile application project. Without an EJB tier, you would write stand-alone server applications that import the javax.jms package, and which use the JMS API for sending or receiving messages.

To link a J2ME application to a JMS backend, you have the following options:

- Write a Servlet which calls the JMS API. Let the J2ME client communicate with the Servlet over HTTP. Also, you will need a JMS server application which exchanges JMS messages with the Servlet. You can see the Servlet as a "JMS Proxy" performing JMS operations on behalf of the J2ME client.

- Use a Wireless JMS client library on the J2ME device. That leads to an elegant end-to-end JMS solution. No Servlets required!

This was last published in June 2002

Dig Deeper on Microservices pattern, platforms and frameworks

PRO+

Content

Find more PRO+ content and other member only offers, here.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchSoftwareQuality

SearchCloudApplications

SearchAWS

TheServerSide

SearchWinDevelopment

Close