[jboss-user] [JBoss Remoting] - Re: How do I deploy the JBoss Remoting examples in JBoss AS 5.1?

Ken Williams do-not-reply at jboss.com
Wed Sep 15 06:04:59 EDT 2010

Ken Williams [http://community.jboss.org/people/zoo9000] created the discussion

"Re: How do I deploy the JBoss Remoting examples in JBoss AS 5.1?"

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

I have now deployed the 'jboss-remoting-samples.jar' file into $JBOSS-5.1.0/server/default/deploy,
(The jboss-remoting-samples.jar file contains the SimpleServer.class file),
and the server output this text;

INFO [JBossASKernel] Created KernelDeployment for: jboss-remoting-samples.jar
INFO [JBossASKernel] installing bean: jboss.j2ee:jar=jboss-remoting-samples.jar,name=jboss-remoting-samples,service=EJB3
INFO [JBossASKernel] with dependencies:
INFO [JBossASKernel] and demands:
INFO [JBossASKernel] and supplies:
INFO [JBossASKernel] Aded bean (jboss.j2ee:jar=jboss-remoting-samples.jar,name=jboss-remoting-samples,service=EJB3) to KernelDeployment of: jboss-remoting-samples.jar
INFO [ClientENCInjectionContainer] STARTED CLIENT ENC CONTAINER: jboss-remoting-samples

Which looks good. So now I try to run the simple socket client,

    ant run-simple-client

but it throws an exception (org.jboss.remoting.CannotConnectException : Can not get connection to server),
and there is nothing listening on port 5400 (the port specified in SimpleServer.java).

I'm guessing I need to change one of the .xml config files but which one ? I copied the
<mbean> code for the 'socket' transport from the example-service.xml file included in
the remoting distribution into the jboss-service.xml file and restarted JBoss but
it threw several pages of errors. There is no service.xml file, as mentioned in
the documentation. Should I try and configure it in the remoting-jboss-beans.xml file
instead ? Am I doing the right thing ??

Surely someone must be know how to deploy and run the simple examples in JBoss ??

How do the rest of you run your programs ??


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/20100915/8f10926b/attachment.html 

More information about the jboss-user mailing list