7 Replies Latest reply on Feb 10, 2005 5:43 PM by Adrian Brock

    multiple inbound resource adapter instances

    jj_ht Newbie

      Hi,

      Does anyone know how to make multiple instances of an inbound resource adapter work in JBOSS?

      I have one resource adapter inbound package (RAR), and has four endpoints (MDB) and each has its own activation properties defined, which means I want to have four resource adapter INSTANCES running and each will delivery certain message to its endpoint. I have the EAR deployed in JBOSS, however only one inbound resource adapter instance is up running after deployment instead of four.

      Any idea?

      Thanks a lot in advance,
      JJ

        • 1. Re: multiple inbound resource adapter instances
          Adrian Brock Master

          Moderated: Ignored due to lack of information.

          Logging, config files, etc.

          Please anything except "IT DOES NOT WORK".

          • 2. Re: multiple inbound resource adapter instances
            jj_ht Newbie

            In JBOSS server.log, I noticed some difference:
            for the started inbound RA instance, the debug message is from [org.jboss.ejb.plugins.MessageDrivenInstancePool]
            for the un-started inbound RA instance, the debug message is from [org.jboss.system.ServiceController]

            Here are the deployment descriptors for the started inbound RA instance:

            ejb-jar.xml:
            <?xml version="1.0" encoding="UTF-8"?>
            <ejb-jar version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
            <display-name>FileConnectorWSHF_MDB1</display-name>
            <enterprise-beans>
            <message-driven>
            <ejb-name>FileMessageListenerMDB1</ejb-name>
            <ejb-class>com.sybase.test.transport.file.appserver.mdb1.FileMessageListenerTestMDB</ejb-class>
            <messaging-type>com.sybase.soa.services.j2ca.transport.file.message.listener.FileMessageListener</messaging-type>
            <transaction-type>Container</transaction-type>
            <activation-config>
            <activation-config-property>
            <activation-config-property-name>FileDirectory</activation-config-property-name>
            <activation-config-property-value>D:/fileConnector/test/in</activation-config-property-value>
            </activation-config-property>
            </activation-config>
            </message-driven>
            </enterprise-beans>
            </ejb-jar>

            jboss.xml:
            <?xml version="1.0" encoding="UTF-8"?>
            <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd">

            <enterprise-beans>
            <message-driven>
            <ejb-name>FileMessageListenerMDB1</ejb-name>
            <destination-jndi-name>theFileMessageListener1</destination-jndi-name>
            <resource-adapter-name>FileConnector.ear#FileConnector_RA.rar</resource-adapter-name>
            </message-driven>
            </enterprise-beans>
            <resource-managers/>


            And here are the deployment descriptors for one of the un-started inbound RA instances:

            ejb-jar.xml:
            <?xml version="1.0" encoding="UTF-8"?>
            <ejb-jar version="2.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd">
            <display-name>FileConnectorWSHF_MDB2</display-name>
            <enterprise-beans>
            <message-driven>
            <ejb-name>FileMessageListenerMDB2</ejb-name>
            <ejb-class>com.sybase.test.transport.file.appserver.mdb2.FileMessageListenerTestMDB</ejb-class>
            <messaging-type>com.sybase.soa.services.j2ca.transport.file.message.listener.FileMessageListener</messaging-type>
            <transaction-type>Container</transaction-type>
            <activation-config>
            <activation-config-property>
            <activation-config-property-name>FileDirectory</activation-config-property-name>
            <activation-config-property-value>D:/fileConnector/test/in2</activation-config-property-value>
            </activation-config-property>
            </activation-config>
            </message-driven>
            </enterprise-beans>
            </ejb-jar>

            jboss.xml:

            <?xml version="1.0" encoding="UTF-8"?>
            <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd">

            <enterprise-beans>
            <message-driven>
            <ejb-name>FileMessageListenerMDB2</ejb-name>
            <destination-jndi-name>theFileMessageListener2</destination-jndi-name>
            <resource-adapter-name>FileConnector.ear#FileConnector_RA.rar</resource-adapter-name>
            </message-driven>
            </enterprise-beans>
            <resource-managers/>


            Please let me know if you need any other information.

            Thanks,
            JJ


            • 3. Re: multiple inbound resource adapter instances
              Adrian Brock Master

               

              "jj_ht" wrote:
              In JBOSS server.log, I noticed some difference:
              for the started inbound RA instance, the debug message is from org.jboss.ejb.plugins.MessageDrivenInstancePool
              for the un-started inbound RA instance, the debug message is from org.jboss.system.ServiceController

              <snip/>

              Please let me know if you need any other information.


              Is that a rhetorical question or do you really think we have any idea what this means?

              • 4. Re: multiple inbound resource adapter instances
                jj_ht Newbie

                Since the server.log is pretty big, I preprocessed it and give the difference I noticed for the started RA instance and un-started RA instance. It seems definitely not working for you, sorry about that.

                Since there is not enough space I can post the whole server log here, here is the logging related to the started RA instance:
                2005-02-10 09:24:44,601 DEBUG [org.jboss.deployment.EARDeployer] Extracted deployable content: FileConnectorWSHF_MDB1.jar
                2005-02-10 09:24:44,842 DEBUG [org.jboss.deployment.EARDeployer] Deployment Info: org.jboss.deployment.DeploymentInfo@b75b6623 { url=file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB1.jar }
                deployer: null
                status: null
                state: CONSTRUCTED
                watch: file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB1.jar
                altDD: null
                lastDeployed: 0
                lastModified: 0
                mbeans:
                , isDirectory: false
                2005-02-10 09:24:45,432 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB1.jar
                2005-02-10 09:24:45,442 DEBUG [org.jboss.ejb.EJBDeployer] init, FileConnectorWSHF_MDB1.jar
                2005-02-10 09:24:45,463 DEBUG [org.jboss.ejb.EJBDeployer] looking for nested deployments in : file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB1.jar
                2005-02-10 09:24:45,463 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] Added url: file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB1.jar, to ucl: org.jboss.mx.loading.UnifiedClassLoader3@18ff27{ url=file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear ,addedOrder=33}
                2005-02-10 09:24:45,463 DEBUG [org.jboss.deployment.MainDeployer] new manifest entry for sdi at FileConnectorWSHF_MDB1.jar entry is FileConnector_RA.rar
                2005-02-10 09:24:45,463 DEBUG [org.jboss.deployment.MainDeployer] new manifest entry for sdi at FileConnectorWSHF_MDB1.jar entry is filewshfmdb.jar
                2005-02-10 09:24:45,463 DEBUG [org.jboss.deployment.MainDeployer] new manifest entry for sdi at FileConnectorWSHF_MDB1.jar entry is ServiceArtifacts.jar
                2005-02-10 09:24:45,463 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB1.jar
                2005-02-10 09:24:45,853 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB1.jar
                2005-02-10 09:24:45,853 DEBUG [org.jboss.ejb.EJBDeployer] create, FileConnectorWSHF_MDB1.jar
                2005-02-10 09:24:45,973 DEBUG [org.jboss.ejb.EJBDeployer] Verifying file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB1.jar
                2005-02-10 09:24:46,083 DEBUG [org.jboss.ejb.EJBDeployer.verifier] Bean checked: FileMessageListenerMDB1: Verified.
                2005-02-10 09:24:46,153 DEBUG [org.jboss.ejb.EJBDeployer] Deploying: file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB1.jar
                2005-02-10 09:24:46,153 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:module=FileConnectorWSHF_MDB1.jar,service=EjbModule
                2005-02-10 09:24:46,153 DEBUG [org.jboss.ejb.EjbModule] Creating jboss.j2ee:module=FileConnectorWSHF_MDB1.jar,service=EjbModule
                2005-02-10 09:24:46,164 INFO [org.jboss.ejb.EjbModule] Deploying FileMessageListenerMDB1
                2005-02-10 09:24:46,324 DEBUG [org.jboss.ejb.EjbModule] creating binding for FileMessageListenerMDB1:message-inflow-driven-bean
                2005-02-10 09:24:46,384 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:jndiName=local/FileMessageListenerMDB1,service=EJB
                2005-02-10 09:24:46,384 DEBUG [org.jboss.ejb.MessageDrivenContainer] Creating jboss.j2ee:jndiName=local/FileMessageListenerMDB1,service=EJB
                2005-02-10 09:24:46,404 DEBUG [org.jboss.ejb.MessageDrivenContainer] Mapped onMessage -167524250 to public void com.sybase.test.transport.file.appserver.mdb1.FileMessageListenerTestMDB.onMessage(byte[]) throws java.rmi.RemoteException
                2005-02-10 09:24:46,414 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:jndiName=local/FileMessageListenerMDB1,plugin=pool,service=EJB
                2005-02-10 09:24:46,424 DEBUG [org.jboss.ejb.plugins.MessageDrivenInstancePool] Creating jboss.j2ee:jndiName=local/FileMessageListenerMDB1,plugin=pool,service=EJB
                2005-02-10 09:24:46,424 DEBUG [org.jboss.ejb.plugins.MessageDrivenInstancePool] Created jboss.j2ee:jndiName=local/FileMessageListenerMDB1,plugin=pool,service=EJB
                2005-02-10 09:24:46,424 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.j2ee:jndiName=local/FileMessageListenerMDB1,plugin=pool,service=EJB dependents are: []
                2005-02-10 09:24:46,434 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/FileMessageListenerMDB1,plugin=invoker,service=EJB
                2005-02-10 09:24:46,434 DEBUG [org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory] Creating jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/FileMessageListenerMDB1,plugin=invoker,service=EJB
                2005-02-10 09:24:46,434 DEBUG [org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory] Created jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/FileMessageListenerMDB1,plugin=invoker,service=EJB
                2005-02-10 09:24:46,434 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/FileMessageListenerMDB1,plugin=invoker,service=EJB dependents are: []
                2005-02-10 09:24:46,434 DEBUG [org.jboss.ejb.MessageDrivenContainer] Created jboss.j2ee:jndiName=local/FileMessageListenerMDB1,service=EJB
                2005-02-10 09:24:46,434 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.j2ee:jndiName=local/FileMessageListenerMDB1,service=EJB dependents are: []
                2005-02-10 09:24:46,434 DEBUG [org.jboss.ejb.EjbModule] Bound jmxName=jboss.j2ee:jndiName=local/FileMessageListenerMDB1,service=EJB, hash=-1035768388into Registry
                2005-02-10 09:24:46,434 DEBUG [org.jboss.ejb.EjbModule] Bound jmxName=jboss.j2ee:jndiName=local/FileMessageListenerMDB1,service=EJB, hash=-1035768388into Registry
                2005-02-10 09:24:46,434 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.j2ee:module=FileConnectorWSHF_MDB1.jar,service=EjbModule dependents are: []
                2005-02-10 09:24:46,434 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying FileConnectorWSHF_MDB1.jar
                2005-02-10 09:24:47,505 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB1.jar
                2005-02-10 09:24:47,505 DEBUG [org.jboss.ejb.EJBDeployer] start application, deploymentInfo: org.jboss.deployment.DeploymentInfo@b75b6623 { url=file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB1.jar }
                deployer: org.jboss.ejb.EJBDeployer@1a7b0bf
                status: Starting
                state: START_DEPLOYER
                watch: file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB1.jar
                altDD: null
                lastDeployed: 1108052685463
                lastModified: 1108052684601
                mbeans:
                jboss.j2ee:jndiName=local/FileMessageListenerMDB1,service=EJB state: Created
                , short name: FileConnectorWSHF_MDB1.jar, parent short name: FileConnector.ear
                2005-02-10 09:24:47,505 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:module=FileConnectorWSHF_MDB1.jar,service=EjbModule
                2005-02-10 09:24:47,505 DEBUG [org.jboss.ejb.EjbModule] Starting jboss.j2ee:module=FileConnectorWSHF_MDB1.jar,service=EjbModule
                2005-02-10 09:24:47,505 DEBUG [org.jboss.ejb.EjbModule] startService, starting container: FileMessageListenerMDB1
                2005-02-10 09:24:47,505 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:jndiName=local/FileMessageListenerMDB1,service=EJB
                2005-02-10 09:24:47,505 DEBUG [org.jboss.ejb.MessageDrivenContainer] Starting jboss.j2ee:jndiName=local/FileMessageListenerMDB1,service=EJB
                2005-02-10 09:24:47,505 DEBUG [org.jboss.ejb.MessageDrivenContainer] Begin java:comp/env for EJB: FileMessageListenerMDB1
                2005-02-10 09:24:47,515 DEBUG [org.jboss.ejb.MessageDrivenContainer] Bound java:comp/ORB for EJB: FileMessageListenerMDB1
                2005-02-10 09:24:47,515 DEBUG [org.jboss.ejb.MessageDrivenContainer] Bound java:comp:/HandleDelegate for EJB: FileMessageListenerMDB1
                2005-02-10 09:24:47,515 DEBUG [org.jboss.ejb.MessageDrivenContainer] End java:comp/env for EJB: FileMessageListenerMDB1
                2005-02-10 09:24:47,515 DEBUG [org.jboss.ejb.plugins.local.BaseLocalProxyFactory] FileMessageListenerMDB1 cannot be Bound, doesn't have local and local home interfaces
                2005-02-10 09:24:47,515 DEBUG [org.jboss.ejb.plugins.MessageDrivenInstancePool] Starting jboss.j2ee:jndiName=local/FileMessageListenerMDB1,plugin=pool,service=EJB
                2005-02-10 09:24:47,515 DEBUG [org.jboss.ejb.plugins.MessageDrivenInstancePool] Started jboss.j2ee:jndiName=local/FileMessageListenerMDB1,plugin=pool,service=EJB
                2005-02-10 09:24:47,515 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:jndiName=local/FileMessageListenerMDB1,plugin=pool,service=EJB dependent components: []
                2005-02-10 09:24:47,515 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/FileMessageListenerMDB1,plugin=invoker,service=EJB
                2005-02-10 09:24:47,515 DEBUG [org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory] Starting jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/FileMessageListenerMDB1,plugin=invoker,service=EJB
                \2005-02-10 09:24:47,566 DEBUG [org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory] Started jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/FileMessageListenerMDB1,plugin=invoker,service=EJB
                2005-02-10 09:24:47,566 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/FileMessageListenerMDB1,plugin=invoker,service=EJB dependent components: []
                2005-02-10 09:24:47,566 DEBUG [org.jboss.ejb.MessageDrivenContainer] Started jboss.j2ee:jndiName=local/FileMessageListenerMDB1,service=EJB
                2005-02-10 09:24:47,566 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:jndiName=local/FileMessageListenerMDB1,service=EJB dependent components: []
                2005-02-10 09:24:47,566 DEBUG [org.jboss.ejb.EjbModule] Started jboss.j2ee:module=FileConnectorWSHF_MDB1.jar,service=EjbModule
                2005-02-10 09:24:47,566 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:module=FileConnectorWSHF_MDB1.jar,service=EjbModule dependent components: []
                2005-02-10 09:24:47,566 INFO [org.jboss.ejb.EJBDeployer] Deployed: file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB1.jar
                2005-02-10 09:24:47,696 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: FileConnectorWSHF_MDB1.jar


                And here is the logging related to the un-started RA instance:
                2005-02-10 09:24:44,611 DEBUG [org.jboss.deployment.EARDeployer] Extracted deployable content: FileConnectorWSHF_MDB2.jar
                2005-02-10 09:24:44,842 DEBUG [org.jboss.deployment.EARDeployer] Deployment Info: org.jboss.deployment.DeploymentInfo@b7697da4 { url=file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB2.jar }
                deployer: null
                status: null
                state: CONSTRUCTED
                watch: file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB2.jar
                altDD: null
                lastDeployed: 0
                lastModified: 0
                mbeans:
                , isDirectory: false
                2005-02-10 09:24:45,463 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB2.jar
                2005-02-10 09:24:45,473 DEBUG [org.jboss.ejb.EJBDeployer] init, FileConnectorWSHF_MDB2.jar
                2005-02-10 09:24:45,483 DEBUG [org.jboss.ejb.EJBDeployer] looking for nested deployments in : file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB2.jar
                2005-02-10 09:24:45,483 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] Added url: file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB2.jar, to ucl: org.jboss.mx.loading.UnifiedClassLoader3@18ff27{ url=file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear ,addedOrder=33}
                2005-02-10 09:24:45,483 DEBUG [org.jboss.deployment.MainDeployer] new manifest entry for sdi at FileConnectorWSHF_MDB2.jar entry is FileConnector_RA.rar
                2005-02-10 09:24:45,483 DEBUG [org.jboss.deployment.MainDeployer] new manifest entry for sdi at FileConnectorWSHF_MDB2.jar entry is filewshfmdb.jar
                2005-02-10 09:24:45,483 DEBUG [org.jboss.deployment.MainDeployer] new manifest entry for sdi at FileConnectorWSHF_MDB2.jar entry is ServiceArtifacts.jar
                2005-02-10 09:24:45,483 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB2.jar
                2005-02-10 09:24:46,434 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB2.jar
                2005-02-10 09:24:46,434 DEBUG [org.jboss.ejb.EJBDeployer] create, FileConnectorWSHF_MDB2.jar
                2005-02-10 09:24:46,504 DEBUG [org.jboss.ejb.EJBDeployer] Verifying file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB2.jar
                2005-02-10 09:24:46,524 DEBUG [org.jboss.ejb.EJBDeployer.verifier] Bean checked: FileMessageListenerMDB2: Verified.
                2005-02-10 09:24:46,534 DEBUG [org.jboss.ejb.EJBDeployer] Deploying: file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB2.jar
                2005-02-10 09:24:46,534 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:module=FileConnectorWSHF_MDB2.jar,service=EjbModule
                2005-02-10 09:24:46,534 DEBUG [org.jboss.ejb.EjbModule] Creating jboss.j2ee:module=FileConnectorWSHF_MDB2.jar,service=EjbModule
                2005-02-10 09:24:46,544 INFO [org.jboss.ejb.EjbModule] Deploying FileMessageListenerMDB2
                2005-02-10 09:24:46,554 DEBUG [org.jboss.ejb.EjbModule] creating binding for FileMessageListenerMDB2:message-inflow-driven-bean
                2005-02-10 09:24:46,564 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:jndiName=local/FileMessageListenerMDB2,service=EJB
                2005-02-10 09:24:46,564 DEBUG [org.jboss.ejb.MessageDrivenContainer] Creating jboss.j2ee:jndiName=local/FileMessageListenerMDB2,service=EJB
                2005-02-10 09:24:46,564 DEBUG [org.jboss.ejb.MessageDrivenContainer] Mapped onMessage -167524250 to public void com.sybase.test.transport.file.appserver.mdb2.FileMessageListenerTestMDB.onMessage(byte[]) throws java.rmi.RemoteException
                2005-02-10 09:24:46,564 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:jndiName=local/FileMessageListenerMDB2,plugin=pool,service=EJB
                2005-02-10 09:24:46,574 DEBUG [org.jboss.ejb.plugins.MessageDrivenInstancePool] Creating jboss.j2ee:jndiName=local/FileMessageListenerMDB2,plugin=pool,service=EJB
                2005-02-10 09:24:46,574 DEBUG [org.jboss.ejb.plugins.MessageDrivenInstancePool] Created jboss.j2ee:jndiName=local/FileMessageListenerMDB2,plugin=pool,service=EJB
                2005-02-10 09:24:46,574 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.j2ee:jndiName=local/FileMessageListenerMDB2,plugin=pool,service=EJB dependents are: []
                2005-02-10 09:24:46,574 DEBUG [org.jboss.system.ServiceController] Creating service jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/FileMessageListenerMDB2,plugin=invoker,service=EJB
                2005-02-10 09:24:46,574 DEBUG [org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory] Creating jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/FileMessageListenerMDB2,plugin=invoker,service=EJB
                2005-02-10 09:24:46,574 DEBUG [org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory] Created jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/FileMessageListenerMDB2,plugin=invoker,service=EJB
                2005-02-10 09:24:46,574 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/FileMessageListenerMDB2,plugin=invoker,service=EJB dependents are: []
                2005-02-10 09:24:46,574 DEBUG [org.jboss.ejb.MessageDrivenContainer] Created jboss.j2ee:jndiName=local/FileMessageListenerMDB2,service=EJB
                2005-02-10 09:24:46,574 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.j2ee:jndiName=local/FileMessageListenerMDB2,service=EJB dependents are: []
                2005-02-10 09:24:46,574 DEBUG [org.jboss.ejb.EjbModule] Bound jmxName=jboss.j2ee:jndiName=local/FileMessageListenerMDB2,service=EJB, hash=-1329171395into Registry
                2005-02-10 09:24:46,574 DEBUG [org.jboss.ejb.EjbModule] Created jboss.j2ee:module=FileConnectorWSHF_MDB2.jar,service=EjbModule
                2005-02-10 09:24:46,574 DEBUG [org.jboss.system.ServiceController] Creating dependent components for: jboss.j2ee:module=FileConnectorWSHF_MDB2.jar,service=EjbModule dependents are: []

                2005-02-10 09:24:46,574 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying FileConnectorWSHF_MDB2.jar
                2005-02-10 09:24:47,696 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB2.jar
                2005-02-10 09:24:47,696 DEBUG [org.jboss.ejb.EJBDeployer] start application, deploymentInfo: org.jboss.deployment.DeploymentInfo@b7697da4 { url=file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB2.jar }
                deployer: org.jboss.ejb.EJBDeployer@1a7b0bf
                status: Starting
                state: START_DEPLOYER
                watch: file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB2.jar
                altDD: null
                lastDeployed: 1108052685483
                lastModified: 1108052684611
                mbeans:
                jboss.j2ee:jndiName=local/FileMessageListenerMDB2,service=EJB state: Created
                , short name: FileConnectorWSHF_MDB2.jar, parent short name: FileConnector.ear
                2005-02-10 09:24:47,696 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:module=FileConnectorWSHF_MDB2.jar,service=EjbModule
                2005-02-10 09:24:47,696 DEBUG [org.jboss.ejb.EjbModule] Starting jboss.j2ee:module=FileConnectorWSHF_MDB2.jar,service=EjbModule
                2005-02-10 09:24:47,696 DEBUG [org.jboss.ejb.EjbModule] startService, starting container: FileMessageListenerMDB2
                2005-02-10 09:24:47,696 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:jndiName=local/FileMessageListenerMDB2,service=EJB
                2005-02-10 09:24:47,696 DEBUG [org.jboss.ejb.MessageDrivenContainer] Starting jboss.j2ee:jndiName=local/FileMessageListenerMDB2,service=EJB
                2005-02-10 09:24:47,696 DEBUG [org.jboss.ejb.MessageDrivenContainer] Begin java:comp/env for EJB: FileMessageListenerMDB2
                2005-02-10 09:24:47,706 DEBUG [org.jboss.ejb.MessageDrivenContainer] Bound java:comp/ORB for EJB: FileMessageListenerMDB2
                2005-02-10 09:24:47,706 DEBUG [org.jboss.ejb.MessageDrivenContainer] Bound java:comp:/HandleDelegate for EJB: FileMessageListenerMDB2
                2005-02-10 09:24:47,706 DEBUG [org.jboss.ejb.MessageDrivenContainer] End java:comp/env for EJB: FileMessageListenerMDB2
                2005-02-10 09:24:47,706 DEBUG [org.jboss.ejb.plugins.local.BaseLocalProxyFactory] FileMessageListenerMDB2 cannot be Bound, doesn't have local and local home interfaces
                2005-02-10 09:24:47,706 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:jndiName=local/FileMessageListenerMDB2,plugin=pool,service=EJB
                2005-02-10 09:24:47,706 DEBUG [org.jboss.ejb.plugins.MessageDrivenInstancePool] Starting jboss.j2ee:jndiName=local/FileMessageListenerMDB2,plugin=pool,service=EJB
                2005-02-10 09:24:47,706 DEBUG [org.jboss.ejb.plugins.MessageDrivenInstancePool] Started jboss.j2ee:jndiName=local/FileMessageListenerMDB2,plugin=pool,service=EJB
                2005-02-10 09:24:47,706 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:jndiName=local/FileMessageListenerMDB2,plugin=pool,service=EJB dependent components: []
                2005-02-10 09:24:47,706 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/FileMessageListenerMDB2,plugin=invoker,service=EJB
                2005-02-10 09:24:47,706 DEBUG [org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory] Starting jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/FileMessageListenerMDB2,plugin=invoker,service=EJB
                2005-02-10 09:24:47,726 DEBUG [org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory] Started jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/FileMessageListenerMDB2,plugin=invoker,service=EJB
                2005-02-10 09:24:47,726 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/FileMessageListenerMDB2,plugin=invoker,service=EJB dependent components: []
                2005-02-10 09:24:47,726 DEBUG [org.jboss.ejb.MessageDrivenContainer] Started jboss.j2ee:jndiName=local/FileMessageListenerMDB2,service=EJB
                2005-02-10 09:24:47,726 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:jndiName=local/FileMessageListenerMDB2,service=EJB dependent components: []
                2005-02-10 09:24:47,726 DEBUG [org.jboss.ejb.EjbModule] Started jboss.j2ee:module=FileConnectorWSHF_MDB2.jar,service=EjbModule
                2005-02-10 09:24:47,726 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:module=FileConnectorWSHF_MDB2.jar,service=EjbModule dependent components: []
                2005-02-10 09:24:47,726 INFO [org.jboss.ejb.EJBDeployer] Deployed: file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB2.jar
                2005-02-10 09:24:47,766 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: FileConnectorWSHF_MDB2.jar

                Thank you very much, and hope you have a better day.

                JJ

                • 5. Re: multiple inbound resource adapter instances
                  Adrian Brock Master

                   

                  "jj_ht" wrote:
                  Since the server.log is pretty big, I preprocessed it and give the difference I noticed for the started RA instance and un-started RA instance. It seems definitely not working for you, sorry about that.

                  Since there is not enough space I can post the whole server log here, here is the logging related to the started RA instance:

                  2005-02-10 09:24:47,515 DEBUG [org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory] Starting jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/FileMessageListenerMDB1,plugin=invoker,service=EJB
                  \2005-02-10 09:24:47,566 DEBUG [org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory] Started jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/FileMessageListenerMDB1,plugin=invoker,service=EJB
                  2005-02-10 09:24:47,566 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/FileMessageListenerMDB1,plugin=invoker,service=EJB dependent components: []
                  2005-02-10 09:24:47,566 DEBUG [org.jboss.ejb.MessageDrivenContainer] Started jboss.j2ee:jndiName=local/FileMessageListenerMDB1,service=EJB
                  2005-02-10 09:24:47,566 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:jndiName=local/FileMessageListenerMDB1,service=EJB dependent components: []
                  2005-02-10 09:24:47,566 DEBUG [org.jboss.ejb.EjbModule] Started jboss.j2ee:module=FileConnectorWSHF_MDB1.jar,service=EjbModule
                  2005-02-10 09:24:47,566 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:module=FileConnectorWSHF_MDB1.jar,service=EjbModule dependent components: []
                  2005-02-10 09:24:47,566 INFO [org.jboss.ejb.EJBDeployer] Deployed: file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB1.jar
                  2005-02-10 09:24:47,696 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: FileConnectorWSHF_MDB1.jar


                  And here is the logging related to the un-started RA instance:

                  2005-02-10 09:24:47,706 DEBUG [org.jboss.system.ServiceController] starting service jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/FileMessageListenerMDB2,plugin=invoker,service=EJB
                  2005-02-10 09:24:47,706 DEBUG [org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory] Starting jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/FileMessageListenerMDB2,plugin=invoker,service=EJB
                  2005-02-10 09:24:47,726 DEBUG [org.jboss.ejb.plugins.inflow.JBossMessageEndpointFactory] Started jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/FileMessageListenerMDB2,plugin=invoker,service=EJB
                  2005-02-10 09:24:47,726 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:binding=message-inflow-driven-bean,jndiName=local/FileMessageListenerMDB2,plugin=invoker,service=EJB dependent components: []
                  2005-02-10 09:24:47,726 DEBUG [org.jboss.ejb.MessageDrivenContainer] Started jboss.j2ee:jndiName=local/FileMessageListenerMDB2,service=EJB
                  2005-02-10 09:24:47,726 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:jndiName=local/FileMessageListenerMDB2,service=EJB dependent components: []
                  2005-02-10 09:24:47,726 DEBUG [org.jboss.ejb.EjbModule] Started jboss.j2ee:module=FileConnectorWSHF_MDB2.jar,service=EjbModule
                  2005-02-10 09:24:47,726 DEBUG [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:module=FileConnectorWSHF_MDB2.jar,service=EjbModule dependent components: []
                  2005-02-10 09:24:47,726 INFO [org.jboss.ejb.EJBDeployer] Deployed: file:/D:/jboss-4.0.0/server/default/tmp/deploy/tmp48141FileConnector.ear-contents/FileConnectorWSHF_MDB2.jar
                  2005-02-10 09:24:47,766 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: FileConnectorWSHF_MDB2.jar



                  Your log shows both have started ok.

                  I would guess your rar is not responding to the endpointActivation request
                  correctly on the second request?

                  One thing your post does highlight is that JBoss JCA's RARDeployment
                  needs some TRACE logging so you can see what requests are passed to the RAR
                  http://jira.jboss.com/jira/browse/JBAS-1446

                  • 6. Re: multiple inbound resource adapter instances
                    jj_ht Newbie

                    If my understanding is right, there is only one ResourceAdapter instance for the case like this, however there will be multiple endpointActivation call to the same ResourceAdapter instance and passing in the different activation spec for different endpoint. Is that right?

                    Thank you very much,
                    Jihong