[jboss-user] [Remoting] - Re: About the usage of path in InvokerLocator

beve do-not-reply at jboss.com
Tue Feb 26 11:31:43 EST 2008


Hi,

sorry for highjacking your post but I have a similar question...

We are using JBossRemoting listeners in the JBossESB. There are both socket listeners and http listeners. 

We need to be able to have multiple of these listeners listen to the same host/port combination which we have solved by sharing Connectors and using subsystems to seperate the different listeners. This is so that we don't have to be opening a lot of ports, specially as we have quite a few webservices and more coming.

The issue we are having is that for webservices we need to have a way to determine which  subsystem a http request is for. 
This is easy when the calling client is a JBR client but not when the request is a http request. 

This is what I've been using up until now:
Code from ServerInvoker's invoke(InvocationRequest)

  | Map requestPayload = invocation.getRequestPayload();
  | if ( subsystem == null && requestPayload != null )
  | {
  |     String path = (String) requestPayload.get( HTTPMetadataConstants.PATH );
  |     subsystem = path.substring( path.indexOf( '/' ) + 1 );}
  | }
  | 
Is there some way we can achive this by configuration of by using some other class in remoting?

Thanks,

Daniel

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

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



More information about the jboss-user mailing list