RE: TIBCO and OpenJMS
"Tim Anderson" <[email protected]>
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
You haven't given a great deal of information about what you are tring to
achieve.
>> There is an application which is using TIBCO for some messaging service.
>> I want to pass message form >> TIBCO to the OpenJMS server and then
within
>> OpenJMS Server application I have a logic for Integrating those messages
If you are using TIBCO JMS, then you can subscribe to TIBCO messages,
and republish them to OpenJMS e.g:
Destination tibDest = // get TIBCO destination to consume from
Session tibSession = tibConn.createSession(false,
Session.AUTO_ACKNOWLEDGE);
MessageConsumer tibCons = tibSession.createConsumer(tibDest);
Destination openjmsDest = // get OpenJMS dest to republish to
Session openjmsSession = openjmsConn.createSession(false,
Session.AUTO_ACKNOWLEDGE);
MessageProducer openjmsProd = openjmsSession.createProducer(openjmsDest);
tibConn.start();
openjmsConn.start();
Message message = tibCons.receive();
if (message != null) {
openjmsProd.send(message);
}
If you are using a non-JMS TIBCO API (e.g Rendezvous) then you will need to
write
an adapter to translate from the TIBCO message API to JMS.
-Tim
_____
From: openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of Praveen
Upadhyay
Sent: Monday, 28 November 2005 11:09 PM
To: [email protected]
Subject: [openjms-user] TIBCO and OpenJMS
Please help in more detail. I am novice about the topic.