Use the JNDI to get a ConnectionFactory and Destination Object (either Queue or Topic).Create a Connection object. Create a Session object. Create MessageConsumer object (either QueueReceiver or TopicSubscriber). Start the Connection. Receive the Message+. Close the session and Connection.
0 Comments
Leave a Reply. |
ArchivesCategories |