3 Replies Latest reply on Oct 24, 2006 4:04 PM by Chengfu Yao

    How to confgure JBoss app server for JBoss ESB client

    Chengfu Yao Newbie

      Hi,

      I've installed JBoss application server JBoss-4.0.4.GA and JBossESB4.0Beta1, and I've successfully run the JBoss ESB client example TestJBossESB which came with the JBoss ESB installation. Currently the client and the server are running on the same PC, and in the file deployment.properties under JBoss ESB's config folder there is a line specifying the root directory of JBoss application server. In my case the line is
      org.jboss.esb.appserver.home=d:\JBoss\JBoss-4.0.4.GA
      My question is if the server is running on a remote mechine, how do I configure the server location for the client? Thanks!

      cfyao

        • 1. Re: How to confgure JBoss app server for JBoss ESB client
          Burr Sutter Master

          I believe the line you are referring to is so the ESB can be deployed to the AppServer and/or so your applications can be compiled.

          Just out some of the other examples at:
          http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossESBQuickStart

          I'll try to setup a test using the quick start examples.

          Burr

          [/url]

          • 2. Re: How to confgure JBoss app server for JBoss ESB client
            Burr Sutter Master

            I spent some time getting the BasicFileListener Quick Start example to work on a machine without the Application Server. Essentially a "serverless" execution. JBoss ESB Beta 1 MP 1 uses Application Server services (requires deployment to the AS) when using persistence and/or notification. The BasicFileListener is essentially Hello World for ESB and it doesn't use those services.

            Simply modify your classpath so that it contains the following JARs:
            .;
            C:\Tools\JBossESB-4.0Beta1MP1\lib\jbossesb-listeners.jar;
            C:\Tools\JBossESB-4.0Beta1MP1\lib\jbossesb-common.jar;
            C:\Tools\libs\log4j.jar;
            C:\Tools\libs\jbossall-client.jar;

            log4j.jar and jbossall-client.jar were pulled from the "client" directory of the application server (4.0.4.GA_EJB3).

            You can then run java howto.MyFileWatcher from the command line. Just make sure it has access to log4j.xml and BasicFileListenerConfig.xml.

            Burr

            • 3. Re: How to confgure JBoss app server for JBoss ESB client
              Chengfu Yao Newbie

              Hi, Burr,

              I tried quick start examples BasicFileListenerJMS and BasicJMSListener with server running on the host. The two examples worked well. I notice that in file BasicJMSListenerConfig.xml there is a line: listenJndiURL="localhost". Then I shut down the local server and ran the remote server on a remote machine. I modified the line listenJndiURL="localhost" to listenJndiURL="ip_addr:port_number". What port number I should use? I tried 1099 and got the error [java] 11:19:52,043 ERROR [GpListener] Cannot launch <org.jboss.soa.esb.listeners.JmsQueueListener>. Changed port number to 1098 and BasicJMSListener ran without error, but no message was received. I guess I should modified file BasicFileListenerJMSConfig.xml so that will BasicFileListenerJMS will establish a connection with the remote server. If my guess is right, how do I do that?

              Thanks a lot for your help.

              cfyao