0 Replies Latest reply on Jul 22, 2007 3:40 AM by Thomas Rausch

    JMS only partly functions

    Thomas Rausch Newbie

      Hello,

      First, sorry, my English is not good. For errors please Google thanks. ;)

      I use embedded-jboss-beta2.zip.

      Thus I wrote an application of tests (in the same application), which a Topic opens and by Listener for messages waits. Now several Listener announce themselves to and with each message are also correctly processed.

      But:

      Now I start application 2 times and both applications go on the same data base, but on different of ports. And now only the Listener of the same program, but not those of the other one answers. What there wrong do I make?

      bootstrap/deploy/mysql-ds.xml

      <jndi-name>DefaultDS</jndi-name>
      
       <connection-url>jdbc:mysql://localhost:3306/head</connection-url>
       <driver-class>com.mysql.jdbc.Driver</driver-class>
       <user-name>nova</user-name>
       <password>mysql</password>
       <min-pool-size>0</min-pool-size>
       <max-pool-size>20</max-pool-size>
       <idle-timeout-minutes>0</idle-timeout-minutes>
       <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
       </local-tx-datasource>

      and
      bootstrap/deploy/messaging/remoting-service.xml
      <mbean code="org.jboss.remoting.transport.Connector"
       name="jboss.messaging:service=Connector,transport=bisocket"
       display-name="Bisocket transport Connector">
       <attribute name="Configuration">
       <config>
       <invoker transport="bisocket">
       <attribute name="marshaller" isParam="true">org.jboss.jms.server.remoting.JMSWireFormat</attribute>
       <attribute name="unmarshaller" isParam="true">org.jboss.jms.server.remoting.JMSWireFormat</attribute>
       <!-- Serialization type must be jms - do not change! -->
       <attribute name="serializationtype" isParam="true">jms</attribute>
       <attribute name="dataType" isParam="true">jms</attribute>
       <attribute name="socket.check_connection" isParam="true">false</attribute>
       <attribute name="timeout">0</attribute>
       <attribute name="serverBindAddress">${jboss.bind.address}</attribute>
       <attribute name="serverBindPort">4458</attribute>
       <attribute name="leasePeriod">10000</attribute>
       <attribute name="callbackStore">org.jboss.remoting.callback.CallbackStore</attribute>
       <attribute name="clientSocketClass" isParam="true">org.jboss.jms.client.remoting.ClientSocketWrapper</attribute>
       <attribute name="serverSocketClass">org.jboss.jms.server.remoting.ServerSocketWrapper</attribute>
       <attribute name="callbackErrorsAllowed">1</attribute>
       <attribute name="numberOfRetries" isParam="true">1</attribute>
       <attribute name="NumberOfCallRetries" isParam="true">2</attribute>
       <attribute name="clientMaxPoolSize" isParam="true">50</attribute>
       </invoker>
       <handlers>
       <handler subsystem="JMS">org.jboss.jms.server.remoting.JMSServerInvocationHandler</handler>
       </handlers>
       </config>
       </attribute>
       <depends>jboss.messaging:service=NetworkRegistry</depends>
       </mbean>

      My Topic-Service:
      <mbean code="org.jboss.jms.server.destination.TopicService"
       name="jboss.messaging.destination:service=Topic,name=TerminalDienst"
       xmbean-dd="xmdesc/Topic-xmbean.xml">
       <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
       <depends>jboss.messaging:service=PostOffice</depends>
       </mbean>