How do I create an MDB that listens to Oracle AQ queue under JBoss AS? - jms

I need to listen to an Oracle AQ queue in a Java EE application that runs under JBoss AS 5.1.
I managed to create a regular JMS client using Oracle's JMS client library, but since this is a Java EE application, I'd really like to use a MDB.
I can't really find any documentation on this, and I can't find a resource adapter that lets me do this using JCA.
Can anyone tell me what's required to get this to work?

This JBoss Community Posting outlines how to do this.
I am not sure exactly which RAR to use, but my Oracle DB install contains these:
product\11.2.0\dbhome_1\oc4j\j2ee\home\connectors\ojms.rar
product\11.2.0\dbhome_1\oc4j\j2ee\home\connectors\OracleASjms\OracleASjms.rar
This stackoverflow question links to an extensive blog on the topic as well.

Related

Jboss EAP 6.3 integration with OracleAQ jms

I have application working on Jboss eap 6.3 and Hornetq queue for jms. I have to change queue from hornetq to OracleAQ. Is there any ready resource-adapter to connect it or I have to write new one for my own? I will be gratefull for any tips how can i achieve that. Thanks in advance.
As far as I know, Oracle AQ's administered JMS objects (e.g. connection factories and destinations) must be looked up via a database connection (or perhaps LDAP) rather than JNDI. Nothing shipped with JBoss EAP can do this.
I propose to check with Oracle for information regarding a JCA resource adapter that they might provide for integration with other Java EE application servers like JBoss EAP.

How to integrate Oracle Advanced Queue with Websphere 7.0

IBM Websphere documentation says that It's possible to use third-party jms providers: http://pic.dhe.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=%2Fcom.ibm.websphere.nd.doc%2Finfo%2Fae%2Fae%2Ftmj_instp.html
In oracle folder I've found resource adapter ojms.rar, but how to use it?
Maybe somebody uses WAS7 with AQ?
I haven't used OracleAQ myself, but here are links to the documentation; Since AQ is JCA compliant you may start with Managing messaging with a third-party JCA 1.5-compliant messaging provider. First step of this configuration is installing the resource adapter (ojms.rar).
Also, for sake of completeness, let me add that you may also access AQ using WebSphere Adapters. In this case, you don't configure AQ as JMS provider, but use the IBM suuplied adapter to access AQ, which acts as a client to your AQ and exposes AQ services to your applications in a JCA compliant fashion. You may find more information about this alternative at education assistant for WebSphere Adapter for Oracle E-Business Suite.
I recently tried to integrate Websphere with Oracle AQ and found one solution that works. I have explained how to do it in a Blog. http://itsolutionsarchitect.blogspot.com/
If you are still trying to get this to work, let me know if this helps.
If you're still looking for the answer, follow the steps to install the resource adapter using ojms.rar
Sadly `ojms.rar`` doesn't contain the classes required for installation.
Download mqjra.rar, extract it and take out gjra.jar from the extracted files.
Place gjra.jar inside your <WAS installation directory>\lib
Try to install the Resource adapter with ojms.rar
It'll get installed. Revert if you face issues.

Weblogic JMS server configuration: JMS module to talk to JMS Server

I am fairly to new to JMS configuration in JMS.
Here is what i am trying to do.
We have multile JVMs of our applications in a single weblogic domain. We want to have JMS server installed on say one JVM and rest of the JVMs refer to the first JMS Server.
So, the configuration is:
JVM1: JMS Server is installed
JVM2: JMS Module installed
Now I need to configure JVM2 to talk to JMS server on JVM1. How do i do that?
This is on weblogic 11g
I suggest going through the basics of WebLogic 11 JMS configuration and then taking a look into this good guide from Oracle documentation. I know there is a lot of info over there, but in the long run it is better to know what you are doing rather than just copying someone else's configurations.

How a JMS based Weblogic server can cosume a message created via MSMQ?

I am new to this JMS, MSMQ, Weblogic things and don't have much idea about them. Can someone please guide me regarding my above question - How a JMS based Weblogic server can cosume a message created via MSMQ? Any reading material, links will be helpful, working examples would be great.
From the MSMQ product group's blog:
JMS and MSMQ interoperability

Dequeue Data From Oracle AQ Using Weblogic 10.3.4, JMS and/or Spring?

Anyone know of a good example that does this? Seems like a lot of Admin Console configuration (Foreign JNDI Providers?) in Weblogic to make this happen. I'm a newbie with Spring, but maybe it simplifies things a bit? Should this be an MDB or WebService - which is a better practice?
Weblogic Using JMS AQ Bridge

Resources