I have no problems with the callback server not being able to receive callbacks 
from other servers.

I have been trying to work out how to configure the  multiplex transport for 
jboss messaging and I have to admit I'm still a bit confused since there seem 
to be so many different ways it can be configured.

For the JMS scenario, we want the following:

Each JMS connection to map to one multiplex connection using it's own unique 
physical tcp connection.

Each JMS connection to be able to receive callbacks along the same tcp 
connection.

So far, I believe that can be configured in the following way:

1) Firstly on the jms server I start a connector:

Connector connector = new Connector();
InvokerLocator locator = new InvokerLocator("multiplex://jms-server:9090");
connector.setInvokerLocator(locator.getLocatorURI());
connector.create();
handler = new JBossMessagingInvocationHandler();
connector.addInvocationHandler("JMS", handler);
connector.start();

2) On the jms client, when a new JMS connection is created  I need to do two 
things:

a) Create a client that will be used for the jms client --> jms server 
synchronous invocations:

String locatorURI = 
"multiplex://jms-server:9090/?clientMultiplexId=connection1";
InvokerLocator locator = new InvokerLocator(locatorURI);
Client client = new Client(locator);

This will cause a multiplex connection to be created on a physical tcp 
connection from jms-client to jms-server.

I have added the parameter clientMultiplexId to identify this connection so 
that it can specified when creating the callback server so it knows to use the 
same multiplex connection for the callback server.

b) Create a callback server utilising the same multiplex connection created in 
a):

connector = new Connector();
String locatorURI = "multiplex://jms-client:xyz/?serverMultiplexId=connection1";
InvokerLocator locator = new InvokerLocator(locatorURI);
connector.setInvokerLocator(locator.getLocatorURI());
connector.create();
connector.start();

This will create a virtualserverinvoker on the client, utilising the same 
multiplex connection.

(Question: What port do I specify in xyz? Does this represent a real port? If I 
don't care can this be auto-allocated?)

Does that sound about right? Or I am I missing something here?

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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to