5 Replies Latest reply on Dec 1, 2005 6:45 AM by akoval

    Remote connection ptoblem with JBoss-4.0.2

    akoval

      Sorru for my english.

      I'm developing a little application, that works with a JBoss AS by the using EJB entity beans and JMS.

      The client application is developed in the C++ (MSVC) as NT Service and for communicate with JBoss use the JNI (little java application, wraps the communication with the JBoss). This app can run in normal mode(as NT service), and in the debug mode - as normal application.

      The testing environment:
      PC Athlon 2600 (1Gb memory) Windows 2000 with VMware.
      JBoss+MySql installed on the Linux RedHat(256Mb memory) guests system and on my host system (with the different IPs).
      Client app installed on WindowsXP guest system.
      So, on the my PC I have the Windows 2000 and RedHat Linux+WindowsXP in VMware as guest systems (every system has its own IP and all systems may by accessed from others by HTTP/TCP/Telnet/etc).

      Whet I try to run my client app on guest XP with the JBoss, running on my host system (Windows2000)- all is OK (in the client debug mode and NTSErvice mode).
      When I try to run my client app with the JBoss, running on Linux, all is OK in the client debug mode and nothing in NTService mode. From the server side I check the moments of communications of client by the debug messages (System.out.println(...)) in the beans on the JBoss. What is wrong?
      I can say, that in this environment the client communicate with the JBoss on Linux very-very slow. May be, depend of this, I have the problem?

      Any suggestions?
      Thank You

        • 1. Re: Remote connection ptoblem with JBoss-4.0.2
          darranl

          You will need to provide information on errors you are getting at the moment we know the same as you.

          • 2. Re: Remote connection ptoblem with JBoss-4.0.2
            akoval

            Sorry, I can't do this, because from C++ I can check only success invocation of java-method in the my connector java-class. If the result of invocation is not success - I try write error message to stderr.
            I redirect stdout&stderr from C++ to log files.
            The messages from C++ about how works programm are writed to this files
            Nothing else not exists in my log files.

            May by I can set some connection properties (like timeout etc) on the client side, because in the same way, but with JBoss+MySql, running on my host system every things OK (and not sow slow connections).

            By the way, other java Application from my host works OK with the JBoss on the that Linux.

            • 3. Re: Remote connection ptoblem with JBoss-4.0.2
              darranl

              Unles you can find a way to log errors from the Java part of your application that is connecting to JBoss you will not be able to get any help.

              How about adding log4j to the 'little java app' to log what is happening and make sure any thrown Exceptions are logged.

              • 4. Re: Remote connection ptoblem with JBoss-4.0.2
                akoval

                I was try to use log4j some months ago, but unsuccessfully. Somthing was wrong.

                On the server side I have not any error message in the JBoss log file.

                I'll retry to use the log4j (or something else).

                Thank's for Your attention.

                • 5. Re: Remote connection ptoblem with JBoss-4.0.2
                  akoval

                  Thank's for all!

                  The problem was in the properties file with the server IP.
                  When app starts as NTSErvice this file(old version) was found in the system32 dir. Otherwise - in app start directory.