Hi all !

Thanks DashV for your reply. I've tried your solution, and the JMS provider was 
forced to connect to the ports of the cluster nodes. However the error persists 
even JMS Provider are accessing to correct cluster nodes.


  | javax.jms.JMSException: Error creating the dlq connection: Could not obtain 
connection to any of these urls: 192.168.24.13:1100,192.168.24.13:1200
  | 

and the root error is


  | javax.naming.CommunicationException: Failed to retrieve stub from server 
192.168.24.13:1200 [Root exception is java.io.StreamCorruptedException: 
unexpected block data]
  | 

Next I attach configuration of the JMS Provider, the standardjboss.xml and the 
jboss.xml portion of the MDB configuration. All these files are related to the 
jboss server that access to the remote cluster, and contains the MDBs.

JMS provider configuration in jms-ds.xml


  |   <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
  |      
name="jboss.mq:service=JMSProviderLoader,name=RemoteJMSProvider,server=remote">
  |     <attribute name="ProviderName">RemoteJMSProvider</attribute>
  |     <attribute 
name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
  |     <!-- The queue connection factory -->
  |     <attribute name="QueueFactoryRef">XAConnectionFactory</attribute>
  |     <!-- The topic factory -->
  |     <attribute name="TopicFactoryRef">XAConnectionFactory</attribute>
  |     <!-- Connect to HAJNDI on the host whatever -->
  |     <attribute name="Properties">
  |        jnp.disableDiscovery=true
  |        java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  |        java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  |        java.naming.provider.url=192.168.24.13:1100,192.168.24.13:1200
  |     </attribute>
  |   </mbean>
  | 

Remote proxy invoker binding configuration at standardjboss.xml


  |      <invoker-proxy-binding>
  |          <name>remote-driven-bean</name>
  |          <invoker-mbean>does-not-matter</invoker-mbean>
  |          
<proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory>
  |          <proxy-factory-config>
  |             
<JMSProviderAdapterJNDI>RemoteJMSProvider</JMSProviderAdapterJNDI>
  |             
<ServerSessionPoolFactoryJNDI>StdJMSPool</ServerSessionPoolFactoryJNDI>
  |             <MinimumSize>1</MinimumSize>
  |             <KeepAliveMillis>30000</KeepAliveMillis>
  |             <MaximumSize>15</MaximumSize>
  |             <MaxMessages>1</MaxMessages>
  |             <MDBConfig>
  |                <ReconnectIntervalSec>10</ReconnectIntervalSec>
  |                <DLQConfig>
  |                   <DestinationQueue>queue/DLQ</DestinationQueue>
  |                   <MaxTimesRedelivered>10</MaxTimesRedelivered>
  |                   <TimeToLive>0</TimeToLive>
  |                </DLQConfig>
  |             </MDBConfig>
  |          </proxy-factory-config>
  |       </invoker-proxy-binding>
  | 

Finally, the MDB configuration at jboss.xml


  |       <message-driven>
  |          <ejb-name>ServicioCalidad</ejb-name>
  |          <destination-jndi-name>/queue/testQueue</destination-jndi-name>
  |          <invoker-bindings>
  |             <invoker>
  |                
<invoker-proxy-binding-name>remote-driven-bean</invoker-proxy-binding-name>
  | 
  |             </invoker>
  |          </invoker-bindings>
  |       </message-driven>
  | 

I wish that anybody could help me

Regards,

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3864779#3864779

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3864779


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to