5 Replies Latest reply: Apr 15, 2008 12:49 AM by jwenting RSS

    Settup up JBoss with Netbeans IDE

      I am new to java programming. I am trying to write a stand-alone 'java' application which uses JBoss Message queue to look for incoming message and does some string processing and sends the message back to output message queue.

      So after installed jboss installation files, I created java simple application, first line i have is
      import javax.jms.*; i got error message saying javax.jms not bound , i added all jar files there is in jboss/lib folder, still no luck. Any clues?

        • 1. Re: Settup up JBoss with Netbeans IDE
          Wow, that's a bit aggressive for beginning java....

          Not bound doesn't have anything to do with your imports. If your imports don't work, that's a compile time problem.

          Sounds like you have a naming resource problem with your JMS implementation. You've set up your JMS server and have it running etc....?
          • 2. Re: Settup up JBoss with Netbeans IDE
            Yes. I have JBoss running in console.

            I followed these steps to run jboss
            # Download jboss-4.2.1.GA.zip and unzip it.
            # To start JBoss application server, execute


            # Open the browser and go to the JBoss start page or http://localhost:8080/.
            So I can see JBoss page at above url.

            Then I have -
            import javax.jms.JMSException;
            import javax.jms.Message;
            import javax.jms.MessageListener;
            import javax.jms.Queue;
            import javax.jms.QueueConnection;
            import javax.jms.QueueConnectionFactory;
            import javax.jms.QueueReceiver;
            import javax.jms.QueueSender;
            import javax.jms.QueueSession;
            import javax.jms.TextMessage;
            import javax.naming.InitialContext;
            import javax.naming.NamingException;

            so those import stmts are not working, yes does not compile.
            • 3. Re: Settup up JBoss with Netbeans IDE
              do i need package stmt at the top, before those import stmts? I search for javax.jms string in all jboss files, no such interface.

              I was following this example -


              I really wish if he started out with linking the jar files or setting up in the example, to make our (newbies) life easier.
              • 4. Re: Settup up JBoss with Netbeans IDE
                Well, the example says -
                Which JARS JMS requires: These include concurrent.jar, jbossmq-client.jar, jboss-common-client.jar, jboss-system-client.jar, jnp-client.jar and log4j.jar.

                May be I am not linking the right jar files. I will give that a try.
                • 5. Re: Settup up JBoss with Netbeans IDE
                  or just use jbossclient-all.jar ...

                  But that won't help the kid, as the error he's getting is a runtime error returned by JNDI because he requests something that doesn't exist.