Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JMS non-MDB client

I want to subscribe to the JMS queue with no usage of EJB MDB. The reason is that I want to receive messages only when I want, but not automatically.
Is there some ways to implement it using plain Java (no Spring or smth else)?
I use WebLogic and its internal JMS provider, if it is important.
Thanks.

like image 932
kardanov Avatar asked Dec 07 '25 06:12

kardanov


1 Answers

Yes, you should be able to connect to your JMS Queue of your Application server. JMS is a quite good standard, so after getting your Connection/Queue, the implementation is Vendor agnostic.

Here is a short overview what you have to write to create a consumer/producer with JMS: JMS Sample

This shows each step in detail with WebLogic JMS: Developing a WebLogic JMS Application

I didn't used WebLogic or it's JMS implementation, maybe you have to configure Weblogics JMS: Configuring and Managing WebLogic JMS

For a comprehensive overview of the programming capabilities of your WebLogic JMS Provider, look here: Programming WebLogic JMS

like image 126
Dag Avatar answered Dec 08 '25 19:12

Dag