JBoss Community

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

created by Ken Williams in JBoss Remoting - View the full discussion

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 ??

 

Ken

Reply to this message by going to Community

Start a new discussion in JBoss Remoting at Community