2 Replies Latest reply on May 17, 2008 11:01 AM by Jose Alvarez de Lara

    Call a console client inside an ear file

    Jose Alvarez de Lara Novice

      I have an ear file with two jar files deployed on JBoss 4.0.0. One jar file for the ejb and the other one for the client that is a console client with a main method. I don't know how to call the client.

      Any idea?

        • 1. Re: Call a console client inside an ear file
          Sascha Effert Newbie

          At the moment I do not understand why you deployed the console client to the server. I guess you have an EAR containing an application. further there is a console client that should be used outside the server and connect to a EJB inside your EAR. Is that right?

          • 2. Re: Call a console client inside an ear file
            Jose Alvarez de Lara Novice

            Well, I had the idea that you have to put all the jar files, included the jar client file inside the ear.

            Now, I can use the client in debugging mode from Eclipse and it works.
            This was with a BMP.

            Now I am trying with CMP and it does not work. First I try with Roster CMP example against MySQL and the server responses with an exception regarding datasource not found and I have configured the descriptor mysql-ds.xml as the tutorial explain. In fact the tutorial explains how to use MySQL with Roster CMP example.

            If you know what I am talking about, will you post me the descriptors of the application.

            Thanking you in advance,

            Jose Lara