[jboss-user] [Remoting] - Re: Socket keep alive with client EJB and RMI over HTTP

ron.sigal@jboss.com do-not-reply at jboss.com
Wed Jun 25 18:23:59 EDT 2008


anonymous wrote : 
  | Is it possible to use the Jakarta common-httpclient with JBoss remoting.
  | 

Should be.

1. Unlike other Remoting transports, which expect to send and receive serialized Remoting objects, the http transport is able to send and receive Strings.  So I guess you could use HTTPClient to communicate with org.jboss.remoting.transport.coyote.CoyoteInvoker, which is the server side of the Remoting HTTP transport.  Never tried it, though.

2. If you just send application strings back and forth, you wouldn't have access to Remoting facilities like connection monitoring.  An alternative to using a "raw" HTTPClient would be to override the code in org.jboss.remoting.transport.http.HTTPClientInvoker that uses java.net.HttpURLConnection with code that uses HTTPClient.  In effect you would be creating your own transport.  For more information about how to do that, see Remoting Guide 2.4.0.GA "Chapter 6. Adding a New Transport" (http://www.jboss.org/jbossremoting/docs/guide/2.4/html/index.html).

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

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



More information about the jboss-user mailing list