-
1. Re: How do I deploy the JBoss Remoting examples in JBoss AS 5.1?
zoo9000 Sep 7, 2010 12:33 PM (in response to zoo9000)I think no one is active on Jboss Remote forums
-
2. Re: How do I deploy the JBoss Remoting examples in JBoss AS 5.1?
zoo9000 Sep 12, 2010 7:46 PM (in response to zoo9000)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-samplesWhich 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
-
3. Re: How do I deploy the JBoss Remoting examples in JBoss AS 5.1?
ron_sigal Sep 27, 2010 11:56 AM (in response to zoo9000)Hi Ken,
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 5.1.1.3. "Declarative configuration: POJOs" for a discussion of the xml configuration file.
-Ron