7 Replies Latest reply on Oct 5, 2012 6:09 AM by pmm

    JBoss7 OracleAQ resource adapter

    jolmoss

      Hi,

      I'm looking for resource adapter to use with JBoss7 and OracleAQ. I'm avare of the solution described in: http://vinayshivaswamy.blogspot.com , but I have some doubts about the code license. That blogspot page is referred from http://code.google.com/p/aq-mdb-jboss/ where it states GPLv3, so that's probably a no go as the product I'm working on might turn out to be commercial or so.

       

      Any ideas about suitable resource adapter are appreciated, I'm also happy to hear if I have misunderstood how the code licensing goes

        • 1. Re: JBoss7 OracleAQ resource adapter
          jesper.pedersen

          Looks as most of it is the generic JMS adapter - http://genericjmsra.java.net/ - licensed under ASL 2.0, and JBoss libraries, mostly licensed under LGPL.

           

          I wouldn't even touch that example; just start from the generic JMS adapter and go from there. You can use the http://docs.jboss.org/ironjacamar/userguide/1.1/en-US/html/tools.html#tools_rarinfo tool from the IronJacamar 1.1.0.Beta1 distribution in order to get started with the resource adapter.

          • 2. Re: JBoss7 OracleAQ resource adapter
            jbertram

            Why not petition Oracle to create a legitimate RA for AQ?

             

            As Jesper mentioned you could probably work with Sun's generic JMS JCA RA and adapt it appropriately.  I would also encourage you to take a look at this bit of code from JBoss ESB which takes Oracle AQ artifacts and binds them into JNDI in an agnostic way so that normal JMS clients can use them.  You could probably use this code in conjunction with an unmodified version of Sun's generic JMS JCA RA and come out with a working solution. 

            • 3. Re: JBoss7 OracleAQ resource adapter
              jesper.pedersen

              Yeah, if a vendor isn't interested in shipping a certified resource adapter for their product - switch to a vendor that does care.

              • 4. Re: JBoss7 OracleAQ resource adapter
                rkbplg

                Hi Justin,

                 

                The problem with JBoss AS7 is that the contexts are always read only. I tried the way you suggested but JBoss 7 complains when we say context.rebind. This is the info I got from net:

                 

                 

                Starting from JBoss AS7, the JNDI subsystem should become fully service-oriented, meaning:

                • Contexts are always read-only
                • The NamingStore is populated solely by services
                • When the last binding in a context is removed, the context is automatically removed

                 

                Let me know if there are any other suggestions.

                • 5. Re: JBoss7 OracleAQ resource adapter
                  jbertram

                  Why not just create a new subsystem that would act as a kind of "bridge" between the objects in Oracle and JNDI?  For example, you could specify the names of the objects in Oracle that you wanted to bind into JBoss AS JNDI.  This would be similar to the org.jboss.soa.esb.oracle.aq.AQInitialContextFactory but suitable for use within AS7 given its constraints on JNDI.

                  • 6. Re: JBoss7 OracleAQ resource adapter
                    dzcs

                    As I have seen in hornetq documentation it supports bridging. But does anybody already used it with Oracle AQ?

                    • 7. Re: JBoss7 OracleAQ resource adapter
                      pmm

                      Ravi Batra schrieb:

                       

                       

                       

                      Starting from JBoss AS7, the JNDI subsystem should become fully service-oriented, meaning:

                      • Contexts are always read-only

                       

                       

                      Contexts are writable during deployment.