[jboss-user] [JBoss Remoting] - Re: Using sockets from JBoss AS?

Matthew Browne do-not-reply at jboss.com
Tue Dec 14 17:53:59 EST 2010

Matthew Browne [http://community.jboss.org/people/mbrowne] created the discussion

"Re: Using sockets from JBoss AS?"

To view the discussion, visit: http://community.jboss.org/message/576013#576013

Thanks for the response...

I was able to determine that the socket is in fact being created (by creating a SocketCreationListener), but that I'm getting the error when invoke() is called. I wasn't using a Connector but rather an InvokerLocator (see my code below).

      InvokerLocator locator = new InvokerLocator(maxMspUri);
      remotingClient = new Client(locator);
      callbackServerConnector = new Connector();
The only thing I was able to find with respect to the "end of file" error message was this:
 https://issues.jboss.org/browse/JBREM-480?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel https://issues.jboss.org/browse/JBREM-480?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel

I don't really understand the versioning issues, and I'm just using the code from the manual...but that ticket does mention "unusable socket connections," so I'm guessing the socket connection I established is considered unusable for some reason?

I've tried using remoting-jboss-beans.xml for the configuration instead of doing programmatic configuration, but it doesn't seem to make any difference...then again, maybe I wasn't doing that part correctly.

My code is pretty simple; at this point I'd be happy to get any communication working at all from my Seam app using sockets. Here's my connection code:

       InvokerLocator locator = new InvokerLocator(maxMspUri);
remotingClient = new Client(locator);

And this is how I'm sending the invocation (request is just a simple DTO object):

     remotingClient.invoke(request, null);

Could this maybe have something to do with the Seam framework?

Thanks so much,

Reply to this message by going to Community

Start a new discussion in JBoss Remoting at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101214/76901ac9/attachment.html 

More information about the jboss-user mailing list