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);
remotingClient.connect();
callbackServerConnector = new Connector();
callbackServerConnector.setInvokerLocator(locator.getLocatorURI());
callbackServerConnector.start(
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....
https://issues.jboss.org/browse/JBREM-480?page=com.atlassian.jira.plugin....
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);
remotingClient.connect();
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,
Matt
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/576013#576013]
Start a new discussion in JBoss Remoting at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]