7 Replies Latest reply on Jun 15, 2009 9:26 AM by gaohoward

    JBoss 5.0.0 Messaging Samples

      Hello,
      Could you please tell me where i can download messaging samples of JBoss Application Server 5.0.0 which has embedded JBoss Messaging 1.4.3.
      I downloaded JBoss App server 5.0.0-src and browsed through
      JBoss5.0\jboss-5.0.0.GA-src\messaging\src\main\org\jboss\jms\server\destination.
      QueueMODefinition.java.
      My goal is to write client application which communicates with JBoss Queue
      and Message Driven bean to process messages in Queue using JBoss App server 5.0.0.Also I use EJB 3.0 for Message Driven Bean.

        • 1. Re: JBoss 5.0.0 Messaging Samples
          clebert.suconic

          Sorry about the incovenience. We are sorting out this with the Application Server team and we will provide the download package until this is sorted out.


          As for now you can download them from SVN at:

          svn co http://anonsvn.jboss.org/repos/messaging/tags/JBossMessaging_1_4_3_GA/docs/examples/


          • 2. Re: JBoss 5.0.0 Messaging Samples

            Thanks for the reply sir,
            But when I tried I get this error.
            Could you please check and tell.
            12:05:15,042 INFO [ServerImpl] Starting JBoss (Microcontainer)...
            12:05:15,042 INFO [ServerImpl] Release ID: JBoss [Morpheus] 5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812042120)
            12:05:15,042 INFO [ServerImpl] Bootstrap URL: null
            12:05:15,042 INFO [ServerImpl] Home Dir: C:\JBOSS5.0\jboss-5.0.0.GA
            12:05:15,042 INFO [ServerImpl] Home URL: file:/C:/JBOSS5.0/jboss-5.0.0.GA/
            12:05:15,042 INFO [ServerImpl] Library URL: file:/C:/JBOSS5.0/jboss-5.0.0.GA/lib/
            12:05:15,042 INFO [ServerImpl] Patch URL: null
            12:05:15,042 INFO [ServerImpl] Common Base URL: file:/C:/JBOSS5.0/jboss-5.0.0.GA/common/
            12:05:15,042 INFO [ServerImpl] Common Library URL: file:/C:/JBOSS5.0/jboss-5.0.0.GA/common/lib/
            12:05:15,042 INFO [ServerImpl] Server Name: default
            12:05:15,042 INFO [ServerImpl] Server Base Dir: C:\JBOSS5.0\jboss-5.0.0.GA\server
            12:05:15,042 INFO [ServerImpl] Server Base URL: file:/C:/JBOSS5.0/jboss-5.0.0.GA/server/
            12:05:15,042 INFO [ServerImpl] Server Config URL: file:/C:/JBOSS5.0/jboss-5.0.0.GA/server/default/conf/
            12:05:15,042 INFO [ServerImpl] Server Home Dir: C:\JBOSS5.0\jboss-5.0.0.GA\server\default
            12:05:15,042 INFO [ServerImpl] Server Home URL: file:/C:/JBOSS5.0/jboss-5.0.0.GA/server/default/
            12:05:15,042 INFO [ServerImpl] Server Data Dir: C:\JBOSS5.0\jboss-5.0.0.GA\server\default\data
            12:05:15,042 INFO [ServerImpl] Server Library URL: file:/C:/JBOSS5.0/jboss-5.0.0.GA/server/default/lib/
            12:05:15,042 INFO [ServerImpl] Server Log Dir: C:\JBOSS5.0\jboss-5.0.0.GA\server\default\log
            12:05:15,042 INFO [ServerImpl] Server Native Dir: C:\JBOSS5.0\jboss-5.0.0.GA\server\default\tmp\native
            12:05:15,057 INFO [ServerImpl] Server Temp Dir: C:\JBOSS5.0\jboss-5.0.0.GA\server\default\tmp
            12:05:15,057 INFO [ServerImpl] Server Temp Deploy Dir: C:\JBOSS5.0\jboss-5.0.0.GA\server\default\tmp\deploy
            12:05:15,993 INFO [ServerImpl] Starting Microcontainer, bootstrapURL=file:/C:/JBOSS5.0/jboss-5.0.0.GA/server/default/conf/bootstrap.xml
            12:05:16,790 INFO [VFSCacheFactory] Initializing VFSCache [org.jboss.virtual.plugins.cache.IterableTimedVFSCache]
            12:05:16,806 INFO [VFSCacheFactory] Using VFSCache [IterableTimedVFSCache{lifetime=1800, resolution=60}]
            12:05:17,164 INFO [CopyMechanism] VFS temp dir: C:\JBOSS5.0\jboss-5.0.0.GA\server\default\tmp
            12:05:17,164 INFO [ZipEntryContext] VFS force nested jars copy-mode is enabled.
            12:05:18,476 INFO [ServerInfo] Java version: 1.6.0_11,Sun Microsystems Inc.
            12:05:18,476 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 11.0-b16,Sun Microsystems Inc.
            12:05:18,476 INFO [ServerInfo] OS-System: Windows Vista 6.0,x86
            12:05:18,539 INFO [JMXKernel] Legacy JMX core initialized
            12:05:20,708 INFO [ProfileServiceImpl] Loading profile: default from: org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@e59e40(root=C:\JBOSS5.0\jboss-5.0.0.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
            12:05:20,708 INFO [ProfileImpl] Using repository:org.jboss.system.server.profileservice.repository.SerializableDeploymentRepository@e59e40(root=C:\JBOSS5.0\jboss-5.0.0.GA\server, key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default])
            12:05:20,708 INFO [ProfileServiceImpl] Loaded profile: ProfileImpl@1b2e44d{key=org.jboss.profileservice.spi.ProfileKey@143b82c3[domain=default,server=default,name=default]}
            12:05:22,440 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
            12:05:30,553 INFO [NativeServerConfig] JBoss Web Services - Stack Native Core
            12:05:30,553 INFO [NativeServerConfig] 3.0.4.SP1
            12:05:39,493 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@26819581{vfszip:/C:/JBOSS5.0/jboss-5.0.0.GA/server/default/deploy/MessageEAR.ear/MessageBean.jar}
            12:05:39,493 INFO [Ejb3DependenciesDeployer] Encountered deployment AbstractVFSDeploymentContext@26819581{vfszip:/C:/JBOSS5.0/jboss-5.0.0.GA/server/default/deploy/MessageEAR.ear/MessageBean.jar}
            12:05:43,222 INFO [JMXConnectorServerService] JMX Connector server: service:jmx:rmi://127.0.0.1/jndi/rmi://127.0.0.1:1090/jmxconnector
            12:05:44,206 INFO [MailService] Mail Service bound to java:/Mail
            12:05:46,406 WARN [JBossASSecurityMetadataStore] WARNING! POTENTIAL SECURITY RISK. It has been detected that the MessageSucker component which sucks messages from one node to another has not had its password changed from the installation default. Please see the JBoss Messaging user guide for instructions on how to do this.
            12:05:46,454 WARN [AnnotationCreator] No ClassLoader provided, using TCCL: org.jboss.managed.api.annotation.ManagementComponent
            12:05:46,734 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
            12:05:46,734 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
            12:05:47,093 INFO [TransactionManagerService] Initializing recovery manager
            12:05:47,436 INFO [TransactionManagerService] Recovery manager configured
            12:05:47,436 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
            12:05:47,469 INFO [TransactionManagerService] Starting transaction recovery manager
            12:05:49,122 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
            12:05:49,123 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
            12:05:49,123 INFO [StandardService] Starting service jboss.web
            12:05:49,123 INFO [StandardEngine] Starting Servlet Engine: JBoss Web/2.1.1.GA
            12:05:49,232 INFO [Catalina] Server startup in 195 ms
            12:05:49,279 INFO [TomcatDeployment] deploy, ctxPath=/web-console, vfsUrl=management/console-mgr.sar/web-console.war
            12:05:50,839 INFO [TomcatDeployment] deploy, ctxPath=/jbossws, vfsUrl=jbossws.sar/jbossws-management.war
            12:05:50,949 INFO [TomcatDeployment] deploy, ctxPath=/invoker, vfsUrl=http-invoker.sar/invoker.war
            12:05:51,230 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/JBOSS5.0/jboss-5.0.0.GA/server/default/deploy/jboss-local-jdbc.rar/META-INF/ra.xml
            12:05:51,261 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/JBOSS5.0/jboss-5.0.0.GA/server/default/deploy/jboss-xa-jdbc.rar/META-INF/ra.xml
            12:05:51,308 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/JBOSS5.0/jboss-5.0.0.GA/server/default/deploy/jms-ra.rar/META-INF/ra.xml
            12:05:51,339 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/JBOSS5.0/jboss-5.0.0.GA/server/default/deploy/mail-ra.rar/META-INF/ra.xml
            12:05:51,402 INFO [RARDeployment] Required license terms exist, view vfszip:/C:/JBOSS5.0/jboss-5.0.0.GA/server/default/deploy/quartz-ra.rar/META-INF/ra.xml
            12:05:51,558 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
            12:05:51,605 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
            12:05:51,605 INFO [RAMJobStore] RAMJobStore initialized.
            12:05:51,605 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
            12:05:51,605 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
            12:05:51,605 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
            12:05:53,274 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
            12:05:53,790 WARN [QuartzTimerServiceFactory] sql failed: CREATE TABLE QRTZ_JOB_DETAILS(JOB_NAME VARCHAR(80) NOT NULL, JOB_GROUP VARCHAR(80) NOT NULL, DESCRIPTION VARCHAR(120) NULL, JOB_CLASS_NAME VARCHAR(128) NOT NULL, IS_DURABLE VARCHAR(1) NOT NULL, IS_VOLATILE VARCHAR(1) NOT NULL, IS_STATEFUL VARCHAR(1) NOT NULL, REQUESTS_RECOVERY VARCHAR(1) NOT NULL, JOB_DATA BINARY NULL, PRIMARY KEY (JOB_NAME,JOB_GROUP))
            12:05:53,883 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
            12:05:53,899 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
            12:05:53,899 INFO [JobStoreCMT] Using db table-based data access locking (synchronization).
            12:05:53,914 INFO [JobStoreCMT] Removed 0 Volatile Trigger(s).
            12:05:53,914 INFO [JobStoreCMT] Removed 0 Volatile Job(s).
            12:05:53,914 INFO [JobStoreCMT] JobStoreCMT initialized.
            12:05:53,914 INFO [StdSchedulerFactory] Quartz scheduler 'JBossEJB3QuartzScheduler' initialized from an externally provided properties instance.
            12:05:53,914 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
            12:05:53,914 INFO [JobStoreCMT] Freed 0 triggers from 'acquired' / 'blocked' state.
            12:05:53,930 INFO [JobStoreCMT] Recovering 0 jobs that were in-progress at the time of the last shut-down.
            12:05:53,930 INFO [JobStoreCMT] Recovery complete.
            12:05:53,930 INFO [JobStoreCMT] Removed 0 'complete' triggers.
            12:05:53,930 INFO [JobStoreCMT] Removed 0 stale fired job entries.
            12:05:53,930 INFO [QuartzScheduler] Scheduler JBossEJB3QuartzScheduler_$_NON_CLUSTERED started.
            12:05:54,195 INFO [ServerPeer] JBoss Messaging 1.4.1.GA server [0] started
            12:05:54,382 INFO [QueueService] Queue[/queue/ExpiryQueue] started, fullSize=200000, pageSize=2000, downCacheSize=2000
            12:05:54,382 INFO [QueueService] Queue[/queue/DLQ] started, fullSize=200000, pageSize=2000, downCacheSize=2000
            12:05:54,493 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
            12:05:54,493 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@1fad8fe started
            12:05:54,493 WARN [ConnectionFactoryJNDIMapper] supportsFailover attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support failover
            12:05:54,493 WARN [ConnectionFactoryJNDIMapper] supportsLoadBalancing attribute is true on connection factory: jboss.messaging.connectionfactory:service=ClusteredConnectionFactory but post office is non clustered. So connection factory will *not* support load balancing
            12:05:54,524 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
            12:05:54,524 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@fb408e started
            12:05:54,524 INFO [ConnectionFactory] Connector bisocket://127.0.0.1:4457 has leasing enabled, lease period 10000 milliseconds
            12:05:54,524 INFO [ConnectionFactory] org.jboss.jms.server.connectionfactory.ConnectionFactory@a2596a started
            12:05:54,727 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
            12:05:54,758 INFO [TomcatDeployment] deploy, ctxPath=/, vfsUrl=ROOT.war
            12:05:55,023 INFO [TomcatDeployment] deploy, ctxPath=/jmx-console, vfsUrl=jmx-console.war
            12:05:56,021 INFO [JBossASKernel] Created KernelDeployment for: MessageBean.jar
            12:05:56,022 INFO [JBossASKernel] installing bean: jboss.j2ee:ear=MessageEAR.ear,jar=MessageBean.jar,name=EJB3MDBExample,service=EJB3
            12:05:56,022 INFO [JBossASKernel] with dependencies:
            12:05:56,022 INFO [JBossASKernel] and demands:
            12:05:56,022 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
            12:05:56,022 INFO [JBossASKernel] and supplies:
            12:05:56,022 INFO [JBossASKernel] jndi:null
            12:05:56,022 INFO [JBossASKernel] Class:javax.jms.MessageListener
            12:05:56,022 INFO [JBossASKernel] Added bean(jboss.j2ee:ear=MessageEAR.ear,jar=MessageBean.jar,name=EJB3MDBExample,service=EJB3) to KernelDeployment of: MessageBean.jar
            12:05:56,163 INFO [EJBContainer] STARTED EJB: com.messageprocess.EJB3MDBExample ejbName: EJB3MDBExample
            12:05:56,631 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
            12:05:56,740 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
            12:05:56,756 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812042120)] Started in 41s:699ms
            12:05:58,082 WARN [JmsActivation] Failure in jms activation org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@549d4(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter@13dd04a destination=queue/testQueue destinationType=javax.jms.Queue tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=10)
            javax.naming.NameNotFoundException: testQueue not bound
            at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
            at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
            at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
            at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
            at org.jnp.server.NamingServer.lookup(NamingServer.java:399)
            at sun.reflect.GeneratedMethodAccessor252.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
            at sun.rmi.transport.Transport$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Unknown Source)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
            at java.lang.Thread.run(Unknown Source)
            at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
            at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
            at sun.rmi.server.UnicastRef.invoke(Unknown Source)
            at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:713)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:673)
            at javax.naming.InitialContext.lookup(Unknown Source)
            at org.jboss.util.naming.Util.lookup(Util.java:222)
            at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDestination(JmsActivation.java:464)
            at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:352)
            at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:729)
            at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
            at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
            at java.lang.Thread.run(Unknown Source)
            12:06:08,145 INFO [JmsActivation] Attempting to reconnect org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@549d4(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter@13dd04a destination=queue/testQueue destinationType=javax.jms.Queue tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=10)
            12:06:08,145 ERROR [JmsActivation] Unable to reconnect org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@549d4(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter@13dd04a destination=queue/testQueue destinationType=javax.jms.Queue tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=10)
            javax.naming.NameNotFoundException: testQueue not bound
            at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
            at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
            at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
            at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
            at org.jnp.server.NamingServer.lookup(NamingServer.java:399)
            at sun.reflect.GeneratedMethodAccessor252.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
            at java.lang.reflect.Method.invoke(Unknown Source)
            at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
            at sun.rmi.transport.Transport$1.run(Unknown Source)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Unknown Source)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
            at java.lang.Thread.run(Unknown Source)
            at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
            at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
            at sun.rmi.server.UnicastRef.invoke(Unknown Source)
            at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:713)
            at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:673)
            at javax.naming.InitialContext.lookup(Unknown Source)
            at org.jboss.util.naming.Util.lookup(Util.java:222)
            at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDestination(JmsActivation.java:464)
            at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:352)
            at org.jboss.resource.adapter.jms.inflow.JmsActivation.handleFailure(JmsActivation.java:292)
            at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:733)
            at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
            at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
            at java.lang.Thread.run(Unknown Source)

            • 3. Re: JBoss 5.0.0 Messaging Samples
              gaohoward

              Hi ,

              AS 5.x doesn't have any queues deployed, you need to deploy the queues in order to run the examples.

              • 4. Re: JBoss 5.0.0 Messaging Samples

                Thanks,Could you please tell me how to deploy the queue.Is it through JBoss console manager.

                • 5. Re: JBoss 5.0.0 Messaging Samples
                  gaohoward

                  might be a good feature to add, but for now the simplest way to deploy the queues/topics should be by direct editing the destinations-service.xml. It's under the deploy/messaging dir.

                  For each queue, you need to add an entry in the file and restart the server.

                  • 6. Re: JBoss 5.0.0 Messaging Samples

                    Thanks for the reply.
                    But I have problems understanding the destination-service.xml file.
                    I mean the entry I have to put.Could you please check if this one is correct.

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


                    • 7. Re: JBoss 5.0.0 Messaging Samples
                      gaohoward

                      It's not ok. Take a look at the destination-service.xml file, there are some entries and you can just copy and paste, making some modification, that all. Here is a simple example entry fyi:

                       <mbean code="org.jboss.jms.server.destination.QueueService"
                       name="jboss.messaging.destination:service=Queue,name=testQueue"
                       xmbean-dd="xmdesc/Queue-xmbean.xml">
                       <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
                       <depends>jboss.messaging:service=PostOffice</depends>
                       <attribute name="SecurityConfig">
                       <security>
                       <role name="guest" read="true" write="true"/>
                       <role name="publisher" read="true" write="true" create="false"/>
                       <role name="noacc" read="false" write="false" create="false"/>
                       </security>
                       </attribute>
                       </mbean>