Q&A

Q1:How is JNDI used to help make JMS applications more portable?
A1: JMS depends on two administered objects: Destination and ConnectionFactory. They are created by the JMS provider administrator, and registered in the JNDI namespace. Later, JMS clients look up the named object in the JNDI and instantiate a resource. This separation between the JMS provider specifics and the JMS API helps make your enterprise application more portable.
Q2:What messaging models are supported by JMS?
A2: Point-to-point (PTP) messaging and publish-and-subscribe (Pub/Sub) messaging.

Get Sams Teach Yourself EJB in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.