[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: http://jira.jboss.org/jira/browse/JBMESSAGING-861
ron.sigal@jboss.com
do-not-reply at jboss.com
Fri Jun 8 16:01:04 EDT 2007
Hmm. I was about to say that serverSocketClass is only used by the server and therefore doesn't need to be on the InvokerLocator. But when JBM uses the bisocket transport, there is a callback server on the client side which uses the serverSocketClass parameter to create socket wrappers.
It turns out that the reason things work is that both serverSocketClass and clientSocketClass are configured by JMSRemotingConnection:
| metadata.put(MicroSocketClientInvoker.CLIENT_SOCKET_CLASS_FLAG,
| "org.jboss.jms.client.remoting.ClientSocketWrapper");
| metadata.put(SocketServerInvoker.SERVER_SOCKET_CLASS_FLAG,
| "org.jboss.jms.server.remoting.ServerSocketWrapper");
|
So adding clientSocketClass to the InvokerLocator, i.e., setting isParam=true, is redundant. The point is that nothing is broken, but ideally both clientSocketClass and serverSocketClass would be treated the same. Sorry I didn't notice this before.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052733#4052733
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052733
More information about the jboss-dev-forums
mailing list