0 Replies Latest reply on Jul 11, 2011 6:02 PM by diegolovison

    remote queue working on jboss6

    diegolovison

      To connect on a remote host, and receive the queue posted, is need

      1. copy jms-ra.rar and past how jms-ra-principal.rar on your server client
      2. modify the ra.xml in this directory (use the jca-remote/server for example)
      3. add the ResourceAdapter in your MDB:

       

      @MessageDriven(name = "MDB_Queue",
                    activationConfig =
                          {
                             @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
                             @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/mdbQueue"),
                             @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge")
                          })
      @ResourceAdapter("jms-ra-principal.rar") // name of the resource
      

       

       

      ra.xml example in jca-remote

      <config-property-value>host=127.0.0.1;port=5446</config-property-value>
      

      change to: 5445 is the default port

      <config-property-value>host=127.0.0.1;port=5445</config-property-value>
      

       

      this work fine

      thanks Clebert to help me

      I think that this can be the doubt of many users.. Then I posted the solution..

       

       

       

      now my questions is:

      It's possible to add ra.xml into my ear, without create jms-ra-principal?

      I would like only put the modified ra.xml into my ear.. and the application work..

       

      thanks.