1 2 Previous Next 16 Replies Latest reply on Dec 21, 2004 3:20 AM by vzilka

    MantaRay and JBoss

    vzilka

      Hi,

      I am trying to integrate JBoss with MantaRay (the open source JMS service). I want a JBoss MDB to listen to a MantaRay queue/topic.

      I have updated the required configuration files, but still, I get a ClassCastException, when JBoss is attempting to cast Destination into a SpyDestination. I saw that for OracleAQ and WebSphereMQ integration, a patch was released. Is there any news in this front? Any ideas on what I should do?

        • 1. Re: scalability of JMS on JBoss
          vzilka


          If you have on Queue per user login, and 1,000,000 users are concurrently connected to JMS, JBoss will at least create one socket and thread per queue. Depending on your operating system and your machine, it might be okay. Or might not work at all.

          If you're writing such an application, the first thing I would be to do would write a test harness.

          Java historically has used the one-client-one-socket-one-thread processing model. The java.nio library allows you to write code that requires less threads. Theoretically, you could write a JMS system that used a thread processing pool that could handle a million JMS clients. This is not the design JBoss/JMS uses, however.

          If you go with a load-balanced, multi-node configuration, JBoss/JMS doesn't have true load balancing yet.

          • 2. JBoss 4.x fails to create JMS_XXX tables at startup
            vzilka

            I'm observing some strange behaviour with JBossMQ when JMS persistance is configured to use MS SQL 2000 data source.

            Looks like org.jboss.mq.pm.jdbc2.PersistenceManager creates its tables just fine but org.jboss.mq.sm.jdbc.JDBCStateManager creates only JMS_USERS table. No errors on creation of those missing tables in the log.

            mssql-jdbc2-service.xml

             <mbean code="org.jboss.mq.pm.jdbc2.PersistenceManager"
             name="jboss.mq:service=PersistenceManager">
             <depends optional-attribute-name="ConnectionManager">jboss.jca:service=DataSourceBinding,name=jdbc/ejbPool_mssql4</depends>
             <attribute name="SqlProperties">
             BLOB_TYPE=BINARYSTREAM_BLOB
             INSERT_TX = INSERT INTO JMS_TRANSACTIONS (TXID) values(?)
             INSERT_MESSAGE = INSERT INTO JMS_MESSAGES (MESSAGEID, DESTINATION, MESSAGEBLOB, TXID, TXOP) VALUES(?,?,?,?,?)
             SELECT_ALL_UNCOMMITED_TXS = SELECT TXID FROM JMS_TRANSACTIONS
             SELECT_MAX_TX = SELECT MAX(TXID) FROM JMS_MESSAGES
             SELECT_MESSAGES_IN_DEST = SELECT MESSAGEID, MESSAGEBLOB FROM JMS_MESSAGES WHERE DESTINATION=?
             SELECT_MESSAGE = SELECT MESSAGEID, MESSAGEBLOB FROM JMS_MESSAGES WHERE MESSAGEID=? AND DESTINATION=?
             MARK_MESSAGE = UPDATE JMS_MESSAGES SET TXID=?, TXOP=? WHERE MESSAGEID=? AND DESTINATION=?
             UPDATE_MESSAGE = UPDATE JMS_MESSAGES SET MESSAGEBLOB=? WHERE MESSAGEID=? AND DESTINATION=?
             UPDATE_MARKED_MESSAGES = UPDATE JMS_MESSAGES SET TXID=?, TXOP=? WHERE TXOP=?
             UPDATE_MARKED_MESSAGES_WITH_TX = UPDATE JMS_MESSAGES SET TXID=?, TXOP=? WHERE TXOP=? AND TXID=?
             UPDATE_MESSAGE = UPDATE JMS_MESSAGES SET MESSAGEBLOB=? WHERE MESSAGEID=? AND DESTINATION=?
             UPDATE_MARKED_MESSAGES = UPDATE JMS_MESSAGES SET TXID=?, TXOP=? WHERE TXOP=?
             UPDATE_MARKED_MESSAGES_WITH_TX = UPDATE JMS_MESSAGES SET TXID=?, TXOP=? WHERE TXOP=? AND TXID=?
             DELETE_MARKED_MESSAGES_WITH_TX = DELETE FROM JMS_MESSAGES WHERE TXID IN (SELECT TXID FROM JMS_TRANSACTIONS) AND TXOP=?
             DELETE_TX = DELETE FROM JMS_TRANSACTIONS WHERE TXID = ?
             DELETE_MARKED_MESSAGES = DELETE FROM JMS_MESSAGES WHERE TXID=? AND TXOP=?
             DELETE_TEMPORARY_MESSAGES = DELETE FROM JMS_MESSAGES WHERE TXOP='T'
             DELETE_MESSAGE = DELETE FROM JMS_MESSAGES WHERE MESSAGEID=? AND DESTINATION=?
             CREATE_MESSAGE_TABLE = CREATE TABLE JMS_MESSAGES (MESSAGEID INTEGER NOT NULL, DESTINATION VARCHAR(150) NOT NULL, TXID INTEGER, TXOP CHAR(1), MESSAGEBLOB IMAGE, PRIMARY KEY (MESSAGEID, DESTINATION))
             CREATE_TX_TABLE = CREATE TABLE JMS_TRANSACTIONS (TXID INTEGER)
             CREATE_TABLES_ON_STARTUP = TRUE
             </attribute>
             </mbean>
            


            mssql-jdbc-state-service.xml
             <mbean code="org.jboss.mq.sm.jdbc.JDBCStateManager"
             name="jboss.mq:service=StateManager">
             <depends optional-attribute-name="ConnectionManager">jboss.jca:service=DataSourceBinding,name=jdbc/ejbPool_mssql4</depends>
             <attribute name="SqlProperties">
             CREATE_TABLES_ON_STARTUP = TRUE
             CREATE_USER_TABLE = CREATE TABLE JMS_USERS (USERID VARCHAR(32) NOT NULL, PASSWD VARCHAR(32) NOT NULL, \
             CLIENTID VARCHAR(128), PRIMARY KEY(USERID))
             CREATE_ROLE_TABLE = CREATE TABLE JMS_ROLES (ROLEID VARCHAR(32) NOT NULL, USERID VARCHAR(32) NOT NULL, \
             PRIMARY KEY(USERID, ROLEID))
             CREATE_SUBSCRIPTION_TABLE = CREATE TABLE JMS_SUBSCRIPTIONS (CLIENTID VARCHAR(128) NOT NULL, \
             SUBNAME VARCHAR(128) NOT NULL, TOPIC VARCHAR(255) NOT NULL, \
             SELECTOR VARCHAR(255), PRIMARY KEY(CLIENTID, SUBNAME))
             GET_SUBSCRIPTION = SELECT TOPIC, SELECTOR FROM JMS_SUBSCRIPTIONS WHERE CLIENTID=? AND SUBNAME=?
             LOCK_SUBSCRIPTION = SELECT TOPIC, SELECTOR FROM JMS_SUBSCRIPTIONS WHERE CLIENTID=? AND SUBNAME=?
             GET_SUBSCRIPTIONS_FOR_TOPIC = SELECT CLIENTID, SUBNAME, SELECTOR FROM JMS_SUBSCRIPTIONS WHERE TOPIC=?
             INSERT_SUBSCRIPTION = INSERT INTO JMS_SUBSCRIPTIONS (CLIENTID, SUBNAME, TOPIC, SELECTOR) VALUES(?,?,?,?)
             UPDATE_SUBSCRIPTION = UPDATE JMS_SUBSCRIPTIONS SET TOPIC=?, SELECTOR=? WHERE CLIENTID=? AND SUBNAME=?
             REMOVE_SUBSCRIPTION = DELETE FROM JMS_SUBSCRIPTIONS WHERE CLIENTID=? AND SUBNAME=?
             GET_USER_BY_CLIENTID = SELECT USERID, PASSWD, CLIENTID FROM JMS_USERS WHERE CLIENTID=?
             GET_USER = SELECT PASSWD, CLIENTID FROM JMS_USERS WHERE USERID=?
             </attribute>
             </mbean>
            


            Any ideas? Am I missing something?

            • 3. Re: MantaRay and JBoss
              genman


              The MantaRay folk probably know how this is done. If you have a CCException, why not post the stack trace? Shy?

              • 4. Re: MantaRay and JBoss
                vzilka

                YOu are of course correct :-)
                Anyway, the Manta guys don't have info on the JBoss integration (I checked with them first). The dump is (pasted from the server.log):

                2004-12-09 10:27:15,649 DEBUG [org.jboss.jms.asf.StdServerSession] initializing (pool, session, xaSession, useLocalTX): org.jboss.jms.asf.StdServerSessionPool@c47498, SpySession@31947175[tx=true txid=null XA RUNNING connection=Connection@14274282[token=ConnectionToken:ID:1/91aae44160d76c7774580ce95ef32c17 rcvstate=STOPPED]], SpySession@31947175[tx=true txid=null XA RUNNING connection=Connection@14274282[token=ConnectionToken:ID:1/91aae44160d76c7774580ce95ef32c17 rcvstate=STOPPED]], false
                2004-12-09 10:27:15,659 DEBUG [org.jboss.jms.asf.StdServerSessionPool] added server session to the pool: org.jboss.jms.asf.StdServerSession@1e3e7d2
                2004-12-09 10:27:15,659 DEBUG [org.jboss.jms.asf.StdServerSessionPool] initializing with connection: Connection@14274282[token=ConnectionToken:ID:1/91aae44160d76c7774580ce95ef32c17 rcvstate=STOPPED]
                2004-12-09 10:27:15,659 DEBUG [org.jboss.jms.asf.StdServerSession] initializing (pool, session, xaSession, useLocalTX): org.jboss.jms.asf.StdServerSessionPool@c47498, SpySession@25731975[tx=true txid=null XA RUNNING connection=Connection@14274282[token=ConnectionToken:ID:1/91aae44160d76c7774580ce95ef32c17 rcvstate=STOPPED]], SpySession@25731975[tx=true txid=null XA RUNNING connection=Connection@14274282[token=ConnectionToken:ID:1/91aae44160d76c7774580ce95ef32c17 rcvstate=STOPPED]], false
                2004-12-09 10:27:15,659 DEBUG [org.jboss.jms.asf.StdServerSessionPool] added server session to the pool: org.jboss.jms.asf.StdServerSession@1a81bd5
                2004-12-09 10:27:15,659 DEBUG [org.jboss.jms.asf.StdServerSessionPool] Server Session pool set up
                2004-12-09 10:27:15,659 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Server session pool: org.jboss.jms.asf.StdServerSessionPool@c47498
                2004-12-09 10:27:15,659 ERROR [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Starting failed jboss.j2ee:binding=message-driven-bean,jndiName=local/TestMDB,plugin=invoker,service=EJB
                java.lang.ClassCastException
                at org.jboss.mq.SpyConnectionConsumer.(SpyConnectionConsumer.java:91)
                at org.jboss.mq.SpyConnection.createConnectionConsumer(SpyConnection.java:166)
                at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:743)
                at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:767)
                at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
                at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
                at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
                at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:844)
                at $Proxy50.start(Unknown Source)
                at org.jboss.system.ServiceController.start(ServiceController.java:369)
                at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
                at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:170)
                at org.jboss.ejb.MessageDrivenContainer.startService(MessageDrivenContainer.java:251)
                at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
                at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
                at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
                at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:844)
                at $Proxy18.start(Unknown Source)
                at org.jboss.system.ServiceController.start(ServiceController.java:369)
                at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                at $Proxy48.start(Unknown Source)
                at org.jboss.ejb.EjbModule.startService(EjbModule.java:394)
                at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
                at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
                at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
                at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:844)
                at $Proxy18.start(Unknown Source)
                at org.jboss.system.ServiceController.start(ServiceController.java:369)
                at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                at $Proxy15.start(Unknown Source)
                at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:605)
                at org.jboss.deployment.MainDeployer.start(MainDeployer.java:863)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:674)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
                at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                at $Proxy7.deploy(Unknown Source)
                at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
                at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
                at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
                at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
                at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
                at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
                at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
                at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:844)
                at $Proxy0.start(Unknown Source)
                at org.jboss.system.ServiceController.start(ServiceController.java:369)
                at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                at $Proxy4.start(Unknown Source)
                at org.jboss.deployment.SARDeployer.start(SARDeployer.java:260)
                at org.jboss.deployment.MainDeployer.start(MainDeployer.java:863)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:674)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:621)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                at $Proxy5.deploy(Unknown Source)
                at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:387)
                at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
                at org.jboss.Main.boot(Main.java:151)
                at org.jboss.Main$1.run(Main.java:405)
                at java.lang.Thread.run(Thread.java:534)
                2004-12-09 10:27:16,060 WARN [org.jboss.system.ServiceController] Problem starting service jboss.j2ee:binding=message-driven-bean,jndiName=local/TestMDB,plugin=invoker,service=EJB
                java.lang.ClassCastException
                at org.jboss.mq.SpyConnectionConsumer.(SpyConnectionConsumer.java:91)
                at org.jboss.mq.SpyConnection.createConnectionConsumer(SpyConnection.java:166)
                at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:743)
                at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:767)
                at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
                at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
                at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
                at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:844)
                at $Proxy50.start(Unknown Source)
                at org.jboss.system.ServiceController.start(ServiceController.java:369)
                at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
                at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:170)
                at org.jboss.ejb.MessageDrivenContainer.startService(MessageDrivenContainer.java:251)
                at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
                at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
                at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
                at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:844)
                at $Proxy18.start(Unknown Source)
                at org.jboss.system.ServiceController.start(ServiceController.java:369)
                at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                at $Proxy48.start(Unknown Source)
                at org.jboss.ejb.EjbModule.startService(EjbModule.java:394)
                at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
                at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
                at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
                at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:844)
                at $Proxy18.start(Unknown Source)
                at org.jboss.system.ServiceController.start(ServiceController.java:369)
                at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                at $Proxy15.start(Unknown Source)
                at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:605)
                at org.jboss.deployment.MainDeployer.start(MainDeployer.java:863)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:674)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
                at sun.reflect.GeneratedMethodAccessor10.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                at $Proxy7.deploy(Unknown Source)
                at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
                at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
                at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
                at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
                at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
                at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
                at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
                at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:844)
                at $Proxy0.start(Unknown Source)
                at org.jboss.system.ServiceController.start(ServiceController.java:369)
                at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                at $Proxy4.start(Unknown Source)
                at org.jboss.deployment.SARDeployer.start(SARDeployer.java:260)
                at org.jboss.deployment.MainDeployer.start(MainDeployer.java:863)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:674)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
                at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:621)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:230)
                at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
                at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                at $Proxy5.deploy(Unknown Source)
                at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:387)
                at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
                at org.jboss.Main.boot(Main.java:151)
                at org.jboss.Main$1.run(Main.java:405)
                at java.lang.Thread.run(Thread.java:534)

                • 5. Re: MantaRay and JBoss
                  starksm64

                  Create a bug report with the details of the integration:
                  http://jira.jboss.com/jira/browse/JBAS

                  • 6. Re: MantaRay and JBoss
                    vzilka

                    Did that. Is version 3.2.6 still fixed? (I want to run on this version too, not just JBoss 4.0).

                    • 7. Re: MantaRay and JBoss
                      starksm64

                      I don't see any bug report, what is the link for it?

                      What do you mean by 3.2.6 being fixed?

                      • 8. Re: MantaRay and JBoss
                        starksm64

                        Yes, there will be a 3.2.7.
                        http://jira.jboss.com/jira/browse/JBAS

                        • 9. Re: MantaRay and JBoss
                          vzilka

                          The bug was closed. However, I still can't connect JBOss to the Manta topics.
                          I entered the following configuration in the jms-ds.xml file. Anything else I need to do?

                          <!-- The JMS provider loader -->

                           <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
                           name="jboss.mq:service=JMSProviderLoader,name=JMSProvider">
                           <attribute name="ProviderName">DefaultJMSProvider</attribute>
                           <attribute name="ProviderAdapterClass">
                           org.jboss.jms.jndi.JNDIProviderAdapter
                           </attribute>
                           <!-- The queue connection factory -->
                           <attribute name="QueueFactoryRef">mantaQCF</attribute>
                           <!-- The topic factory -->
                           <attribute name="TopicFactoryRef">mantaTCF</attribute>
                           <!-- Uncomment to use HAJNDI to access JMS
                           <attribute name="Properties">
                           java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
                           java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
                           java.naming.provider.url=localhost:1100
                           </attribute>
                           -->
                           </mbean>
                          

                          mantaQCF and mantaTCF are objects that were bound in the JNDI tree (using a SAR file) and are Manta relevant connection factories.

                          • 10. Re: MantaRay and JBoss
                            vzilka

                            OK. I understood my error right after posting the response. I've updated standardjboss.xml.
                            JBoss starts normally now.
                            However, the MDB does not recieve any messages, and the ejbCreate message does not run.
                            Also, JBoss hangs during shutdown (while trying to undeploy the MDB JAR file).
                            I'm checking the server.log file, and it seems ok - I don't get errors in the file.

                            Any ideas?

                            • 11. Re: MantaRay and JBoss
                              vzilka

                              Just to make sure, here is the code in the standardjboss.xml file.

                               <invoker-proxy-binding>
                               <name>Manta-message-driven-bean</name>
                               <invoker-mbean>jboss.mq:service=JMSProvierLoader,name=MantaJMSProvider</invoker-mbean>
                               <proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory>
                               <proxy-factory-config>
                               <JMSProviderAdapterJNDI>MantaMQ</JMSProviderAdapterJNDI>
                               <ServerSessionPoolFactoryJNDI>StdJMSPool</ServerSessionPoolFactoryJNDI>
                               <MinimumSize>1</MinimumSize>
                               <KeepAliveMillis>30000</KeepAliveMillis>
                               <MaximumSize>15</MaximumSize>
                               <MaxMessages>1</MaxMessages>
                               <MDBConfig>
                               <ReconnectIntervalSec>10</ReconnectIntervalSec>
                               <DLQConfig>
                               <DestinationQueue>queue/DLQ</DestinationQueue>
                               <MaxTimesRedelivered>10</MaxTimesRedelivered>
                               <TimeToLive>0</TimeToLive>
                               </DLQConfig>
                               </MDBConfig>
                               </proxy-factory-config>
                               </invoker-proxy-binding>
                              


                              and of course:

                              <container-configuration>
                               <container-name>Manta MDB support</container-name>
                               <call-logging>true</call-logging>
                               <invoker-proxy-binding-name>Manta-message-driven-bean</invoker-proxy-binding-name>
                               <container-interceptors>
                               <interceptor>org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor</interceptor>
                               <interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor>
                               <interceptor>org.jboss.ejb.plugins.RunAsSecurityInterceptor</interceptor>
                               <!-- CMT -->
                               <interceptor transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT</interceptor>
                               <interceptor transaction="Container" metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor>
                               <interceptor transaction="Container">org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor</interceptor>
                               <!-- BMT -->
                               <interceptor transaction="Bean">org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor</interceptor>
                               <interceptor transaction="Bean">org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT</interceptor>
                               <interceptor transaction="Bean" metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor>
                               <interceptor>org.jboss.resource.connectionmanager.CachedConnectionInterceptor</interceptor>
                               </container-interceptors>
                               <instance-pool>org.jboss.ejb.plugins.MessageDrivenInstancePool</instance-pool>
                               <instance-cache></instance-cache>
                               <persistence-manager></persistence-manager>
                               <container-pool-conf>
                               <MaximumSize>100</MaximumSize>
                               </container-pool-conf>
                              </container-configuration>
                              


                              • 12. Re: MantaRay and JBoss

                                 


                                However, the MDB does not recieve any messages, and the ejbCreate message does not run.
                                Also, JBoss hangs during shutdown (while trying to undeploy the MDB JAR file).
                                I'm checking the server.log file, and it seems ok - I don't get errors in the file.


                                Thread dump?

                                If you are not receiving messages, the problem will be in MantaRay's ConnectionConsumer

                                • 13. Re: MantaRay and JBoss
                                  vzilka

                                  I guessed that. But do you have any tips on checking what JBoss is doing when registering an MDB on topics?

                                  • 14. Re: MantaRay and JBoss

                                    No, I have no idea. :<P

                                    Fortunatley, my alter ego who doesn't get annoyed with time wasters
                                    created a post at the top of the forum cunningly entitled "READ THIS FIRST"
                                    where this is explained.

                                    For debugging Manta Ray, you are on your own.

                                    1 2 Previous Next