1 2 3 Previous Next 35 Replies Latest reply on Nov 13, 2002 1:28 PM by fracalde Go to original post
      • 15. Re: SonicMQ intergration

        No idea. I have not seen it in the 2.4.3 version I use.

        //Peter

        • 16. Re: SonicMQ intergration
          makeshipgo

          From reading this post, it looks like the steps for jboss2.4.4 and sonicMQ are as follows:

          1. Patch the jboss.jar with the classes from jboss-sonic.zip file.
          2. Modify the jboss.jcml file mbean code to contain an entry for SonicMQProviderLoader.
          3. Create a custom container config in the jboss.xml for the jar containing your mdb.

          Am I correct in this assumption?

          Peter or Calvin: Can one of you guys post the the snippets for part 2&3?

          • 17. Re: SonicMQ intergration

            Thats correct, except that my stuff was done for 2.4.3.

            //Peter

            • 18. Re: SonicMQ intergration
              calvin_cc

              Here's the snippets you need for steps 3&4 for JBoss 2.4.4:

              jboss.jcml

              SonicJMSPool
              org.jboss.jms.providers.sonic.SonicServerSessionPoolFactory



              SonicJMSProvider
              org.jboss.jms.jndi.JBossMQProvider
              SonicMQQueueConnectionFactory
              SonicMQTopicConnectionFactory
              tcp://localhost:2506






              standardjboss.xml
              <container-configuration>
              <container-name>Standard Message Driven Bean</container-name>
              <call-logging>false</call-logging>
              <!--<container-invoker>org.jboss.ejb.plugins.jms.JMSContainerInvoker</container-invoker>-->
              <container-invoker>org.jboss.jms.providers.sonic.SonicContainerInvoker</container-invoker>
              <container-interceptors>
              org.jboss.ejb.plugins.LogInterceptor
              org.jboss.ejb.plugins.SecurityInterceptor

              org.jboss.ejb.plugins.TxInterceptorCMT
              org.jboss.ejb.plugins.MetricsInterceptor
              org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor

              org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor
              org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT
              org.jboss.ejb.plugins.MetricsInterceptor
              </container-interceptors>
              <instance-pool>org.jboss.ejb.plugins.MessageDrivenInstancePool</instance-pool>
              <instance-cache></instance-cache>
              <persistence-manager></persistence-manager>
              <transaction-manager>org.jboss.tm.TxManager</transaction-manager>
              <container-invoker-conf>
              SonicJMSProvider
              SonicJMSPool
              15
              1
              True

              10

              queue/DLQ
              5
              0


              </container-invoker-conf>
              <container-pool-conf>
              100
              10
              </container-pool-conf>
              </container-configuration>

              Hope that helps.

              • 19. Re: SonicMQ intergration
                makeshipgo

                ah cool many thanks.
                You are using a jbossMQ queue for the DLB right? It doesnt look like you are using the SonicMQ.deadQueue...



                • 20. Re: SonicMQ intergration

                  DLQ för SonicMQ must be the sonic one. The sonic Message implementation is not serializable, and it is therefore not possible to send a Sonic Message to a JBossMQ destination.

                  //Peter

                  • 21. Re: SonicMQ intergration
                    simon

                    Hi, I've try to integrate sonicMQ with JBoss 2.4.3 following the previous messages but I've this problem when I try to deploy a message driven bean
                    [Default] javax.naming.CommunicationException. Root exception is
                    [Default] java.net.MalformedURLException: no protocol: of
                    [Default] at java.net.URL.(URL.java:473)
                    [Default]
                    [Default] at java.net.URL.(URL.java:376)
                    [Default]
                    [Default] at java.net.URL.(URL.java:330)
                    [Default]
                    [Default] at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:38
                    7)
                    [Default]
                    [Default] at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:132
                    )
                    [Default]
                    [Default] at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputSt
                    ream.java:143)
                    [Default]
                    [Default] at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStr
                    eam.java:918)
                    [Default]
                    [Default] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:3
                    66)
                    [Default]
                    [Default] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:2
                    36)
                    [Default]
                    [Default] at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:
                    1186)
                    [Default]
                    [Default] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:3
                    86)
                    [Default]
                    [Default] at java.io.ObjectInputStream.readObject(ObjectInputStream.java:2
                    36)
                    [Default]
                    [Default] at java.rmi.MarshalledObject.get(MarshalledObject.java:138)
                    [Default]
                    [Default] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:35
                    3)
                    [Default]
                    [Default] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:33
                    3)
                    [Default]
                    [Default] at javax.naming.InitialContext.lookup(InitialContext.java:350)
                    [Default]
                    [Default] at org.jboss.ejb.plugins.jms.JMSContainerInvoker.getJMSProviderA
                    dapter(JMSContainerInvoker.java:196)
                    [Default]
                    [Default] at org.jboss.ejb.plugins.jms.JMSContainerInvoker.init(JMSContain
                    erInvoker.java:367)
                    [Default]
                    [Default] at org.jboss.ejb.MessageDrivenContainer.init(MessageDrivenContai
                    ner.java:157)
                    [Default]
                    [Default] at org.jboss.ejb.Application.init(Application.java:202)
                    [Default]
                    [Default] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:3
                    72)
                    [Default]
                    [Default] at org.jboss.ejb.ContainerFactory.deploy(ContainerFactory.java:3
                    04)
                    [Default]
                    [Default] at java.lang.reflect.Method.invoke(Native Method)
                    [Default]
                    [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
                    .java:1628)
                    [Default]
                    [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
                    .java:1523)
                    [Default]
                    [Default] at org.jboss.deployment.J2eeDeployer.startModules(J2eeDeployer.j
                    ava:494)
                    [Default]
                    [Default] at org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeploy
                    er.java:468)
                    [Default]
                    [Default] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:20
                    8)
                    [Default]
                    [Default] at java.lang.reflect.Method.invoke(Native Method)
                    [Default]
                    [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
                    .java:1628)
                    [Default]
                    [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl
                    .java:1523)
                    [Default]
                    [Default] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)
                    [Default]
                    [Default] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)
                    [Default]
                    [Default] at java.lang.Thread.run(Thread.java:484)
                    [Default]

                    Someone can help me?
                    Thanks

                    • 22. Re: SonicMQ intergration
                      makeshipgo

                      Woohoo! I'm up and running with SonicMQ v4 and jboss2.4.4 ;)

                      many many thanks to peter and calvin..

                      simon - i'm guessing here but check your settings for the broker url in the jboss.jcml

                      • 23. Re: SonicMQ intergration
                        simon


                        Thanks for the help, I've checked my setting for the broker url and I've found tcp://localhost:2506. It seems to be right.
                        I've tested my configuration with a stateful session bean which have a listener to a Sonic's queue. I use the JNDI Service of JBoss for lookup the queue and the queue connection factory. It's work fine and I don't understand why a can't deploy a message driven bean :(
                        I've tested to deploy my MDB in the JBoss not integrated with Sonic and it's work.

                        jboss.jcml:


                        SonicJMSProvider
                        org.jboss.jms.jndi.JBossMQProvider
                        SonicMQQueueConnectionFactory
                        SonicMQTopicConnectionFactory
                        tcp://localhost:2506


                        SampleQ1,SampleQ2,SampleQ3,SampleQ4



                        SonicJMSPool
                        org.jboss.jms.providers.sonic.SonicServerSessionPoolFactory



                        • 24. Re: SonicMQ intergration
                          makeshipgo

                          Did you add the sonicmq jars to the jboss/lib/ext folder?

                          I took a second look at your error and it looks like it is trying to load the class...

                          make sure you have the sonic jars where jboss can see them.

                          • 25. Re: SonicMQ intergration
                            simon

                            I have JBOSS_CLASSPATH with the path for the sonicmq jars.
                            The error exist again. It's strange the message 'no protocol '

                            • 26. Re: SonicMQ intergration
                              makeshipgo

                              I do not believe putting the jars in the JBOSS_CLASSPATH is the same thing as putting them in the lib/ext folder.

                              Try moving them to the lib ext folder and see what happens.

                              • 27. Re: SonicMQ intergration
                                simon

                                I've moved all jars file from %sonic_dir%\lib to %jboss_dir%\lib\ext but nothing is change :(
                                Some other idea?

                                • 28. Help on jboss-sonic.zip

                                  Where do I get jboss-sonic.zip? I have not found it with the JBoss 2.4.4 and 3.0 installations as well as SonicMQ installation?
                                  Please help.

                                  • 29. Re: Help on jboss-sonic.zip