-
1. Re: Sending AQ (oracle) message
marklittle Feb 21, 2007 6:13 AM (in response to wojsal)Since AQ has a JMS interface, it should be possible to plug it in at that level. Take a look at the various JMS related quick starts and the trailblazer. If those don't help, post back here.
-
2. Re: Sending AQ (oracle) message
wojsal Feb 21, 2007 8:46 AM (in response to wojsal)"mark.little@jboss.com" wrote:
Since AQ has a JMS interface, it should be possible to plug it in at that level. Take a look at the various JMS related quick starts and the trailblazer. If those don't help, post back here.
To create a message I do:
Message esbMessage = MessageFactory.getInstance().getMessage();
The Message is interface. What class is the Message instance?
What I have to do to sure that Message is a AQ message (AQMessage class). How I can create AQmessage object?
In Oracle tutorial is writen:
Class.forName("oracle.AQ.AQOracleDriver");
aq.session = AQDriverManager.createAQSession(aq.connection);
AQQueue queue = aq.session.getQueue(
"aqadm", "MESSAGE_QUEUE");
AQMessage message = ((AQOracleQueue)queue).dequeue(
dequeueOption,
QUEUE_MESSAGE_TYPE.getFactory());
Is it correct method to create AQ message in JBoss ESB ? -
3. Re: Sending AQ (oracle) message
kurtstam Feb 21, 2007 9:12 AM (in response to wojsal)You should be using the JMS interface, and in the configuration (jbossesb.xml) in the provider section) put in the oracle specific settings. Like Mark said, take a look at: http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/docs/AdministrationGuide.pdf
Let us know how that goes!
Cheers,
-Kurt -
4. Re: Sending AQ (oracle) message
kurtstam Feb 21, 2007 9:13 AM (in response to wojsal)http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/docs/AdministrationGuide.pdf
sorry now it's a real link :) -
5. Re: Sending AQ (oracle) message
wojsal Feb 23, 2007 3:48 AM (in response to wojsal)"kurt.stam@jboss.com" wrote:
You should be using the JMS interface, and in the configuration (jbossesb.xml) in the provider section) put in the oracle specific settings. Like Mark said, take a look at: http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/docs/AdministrationGuide.pdf
Let us know how that goes!
Cheers,
-Kurt
JMS message interface or esb message interface? In sample (helloworld) is used org.jboss.soa.esb.message.Message. I have object (from Oracle - it is not my class) with javax.jms.Message. Oracle class has javax.jms.Message. How I can send message class without org.jboss.soa.esb.message.Message interface? -
6. Re: Sending AQ (oracle) message
kurtstam Feb 23, 2007 10:21 AM (in response to wojsal)Hi Wojsal,
Typically your applications should not need to know anything about ESB, so you can construct a regular JMS message and send that to a gateway. It extract the payload and construct an ESB message.
However, as a few of the quickstarts show, there is nothing stopping you from contructing an EsbMessage yourself. In that case the message is protocol independent. So only the settings of the 'provider' will make it use JMS or FTP.
So in the JMS-provider properties you will have to set it so that it uses OracleAQ, see the link to the doc about that earlier.
Hope this clears things up.
Cheers,
--Kurt -
7. Re: Sending AQ (oracle) message
kurtstam Apr 4, 2007 11:43 PM (in response to wojsal)Hi Wojsal,
It turned out a little bit more complicated, as AQ does not have JNDI. However the code on the trunk is now capable of running with AQ. See
http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/samples/quickstarts/helloworld_action/oracle-aq/
It'd be great if you can check it out and give us some feedback in it.
--Kurt