0 Replies Latest reply on Jul 12, 2005 12:50 PM by Ahmed Memon

    MDB access with client

    Ahmed Memon Newbie

      Hi,

      I am a newbie and have a question regarding my logic/understanding correctness of JMS-MDB. Any help will be appreciated.

      I deployed example MDB (over JBossMQ Wiki) MessageAccessBean.java

      And created XML for QUEUE under server/default/deploy

      <server>
      <mbean code="org.jboss.mq.server.jmx.Queue" name="jboss.mq.destination:service=Queue,name=example1">
       <depends optional-attribute-name="DestinationManager"> jboss.mq:service=DestinationManager </depends>
      </mbean>
      </server>


      Then, I ran the example client application from JBoss Wiki.

      PROBLEM:The problem is that I thought my client will send message to the QUEUE & MDB will answer it (via onMessage). But nothing appears over JBoss running DOS terminal.


      server.log
      2005-07-12 21:31:59,203 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/F:/stephen/jboss/jboss-4.0.2/server/default/deploy/MessageAccess.jar
      2005-07-12 21:31:59,203 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/F:/stephen/jboss/jboss-4.0.2/server/default/deploy/MessageAccess.jar
      2005-07-12 21:31:59,203 DEBUG [org.jboss.deployment.MainDeployer] Copying file:/F:/stephen/jboss/jboss-4.0.2/server/default/deploy/MessageAccess.jar -> F:\stephen\jboss\jboss-4.0.2\server\default\tmp\deploy\tmp38296MessageAccess.jar
      2005-07-12 21:31:59,234 DEBUG [org.jboss.deployment.JARDeployer] No xml files found
      2005-07-12 21:31:59,234 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.JARDeployer@1acd47
      2005-07-12 21:31:59,234 DEBUG [org.jboss.deployment.JARDeployer] looking for nested deployments in : file:/F:/stephen/jboss/jboss-4.0.2/server/default/deploy/MessageAccess.jar
      2005-07-12 21:31:59,234 DEBUG [org.jboss.deployment.DeploymentInfo] createLoaderRepository from config: LoaderRepositoryConfig(repositoryName: JMImplementation:service=LoaderRepository,name=Default, repositoryClassName: null, configParserClassName: null, repositoryConfig: null)
      2005-07-12 21:31:59,234 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url file:/F:/stephen/jboss/jboss-4.0.2/server/default/tmp/deploy/tmp38296MessageAccess.jar
      2005-07-12 21:31:59,234 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.UnifiedLoaderRepository3@1db7df8, cl=org.jboss.mx.loading.UnifiedClassLoader3@1f4c4a3{ url=file:/F:/stephen/jboss/jboss-4.0.2/server/default/tmp/deploy/tmp38296MessageAccess.jar ,addedOrder=0}
      2005-07-12 21:31:59,234 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.UnifiedLoaderRepository3@1db7df8, cl=org.jboss.mx.loading.UnifiedClassLoader3@1f4c4a3{ url=file:/F:/stephen/jboss/jboss-4.0.2/server/default/tmp/deploy/tmp38296MessageAccess.jar ,addedOrder=0}
      2005-07-12 21:31:59,234 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository3] Adding org.jboss.mx.loading.UnifiedClassLoader3@1f4c4a3{ url=file:/F:/stephen/jboss/jboss-4.0.2/server/default/tmp/deploy/tmp38296MessageAccess.jar ,addedOrder=0}
      2005-07-12 21:31:59,234 DEBUG [org.jboss.mx.loading.ClassLoaderUtils] Multiple class loaders found for pkg:
      2005-07-12 21:31:59,234 DEBUG [org.jboss.deployment.MainDeployer] found 0 subpackages of file:/F:/stephen/jboss/jboss-4.0.2/server/default/deploy/MessageAccess.jar
      2005-07-12 21:31:59,234 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/F:/stephen/jboss/jboss-4.0.2/server/default/deploy/MessageAccess.jar
      2005-07-12 21:31:59,234 DEBUG [org.jboss.deployment.MainDeployer] create step for deployment file:/F:/stephen/jboss/jboss-4.0.2/server/default/deploy/MessageAccess.jar
      2005-07-12 21:31:59,234 DEBUG [org.jboss.deployment.MainDeployer] Done with create step of deploying MessageAccess.jar
      2005-07-12 21:31:59,234 DEBUG [org.jboss.deployment.MainDeployer] Begin deployment start file:/F:/stephen/jboss/jboss-4.0.2/server/default/deploy/MessageAccess.jar
      2005-07-12 21:31:59,234 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: MessageAccess.jar
      2005-07-12 21:31:59,234 DEBUG [org.jboss.deployment.MainDeployer] Deployed package: file:/F:/stephen/jboss/jboss-4.0.2/server/default/deploy/MessageAccess.jar
      2005-07-12 21:31:59,234 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/F:/stephen/jboss/jboss-4.0.2/server/default/deploy/MessageAccess.jar -> file:/F:/stephen/jboss/jboss-4.0.2/server/default/deploy/MessageAccess.jar


      Please help me.