I think no one is active on Jboss Remote forums
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,
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 ??
What you're asking, I think, is how to get the AS to start up the Remoting server started by SimpleServer. I.e., you want to replace the code in SimpleServer.setupServer() with a file that causes the AS to start the same server. You want a file like $JBOSS_HOME/server/default/deploy/remoting-jboss-beans.xml, where the "UnifiedInvokerConnector" describes the Remoting server and "UnifiedInvokerConfiguration" configures it. You could call your file example-remoting-jboss-beans.xml, for example, put it in the same directory, and replace the connector and configuration beans with your own versions. For more about Remoting configuration, see Chapter 5 of the Remoting Guide (http://docs.jboss.org/jbossremoting/2.5.3.SP1/html/) for a description of the various configuration parameters, and, in particular, see Section 184.108.40.206. "Declarative configuration: POJOs" for a discussion of the xml configuration file.