Posts Tagged ‘JBoss’

I found a need to debug JBoss with Eclipse. A search on google led me to ths page. I had to tweak a bit to get my local instance to work.

For example, I had to change the quote character from ” to “.

JAVA_OPTS="-Xdebug -Xnoagent
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n $JAVA_OPTS"

After that, JBOSS was able to load the new parameters correctly.

The post also have slightly different UI screen than what I see on my version of Eclipse. I did the following:

  1. Go to Run –> Debug Configurations … in the menu
  2. Rick click on Remote Java Application and choose New
  3. Choose the project of your choice. Change the address to 8787 to match the parameter specified for JBoss earlier. Change host name if necessary.
  4. Click Apply and then Debug

I was able to connect to the server and start debug the application. :)

Remote access to Jboss

Posted: August 10, 2011 in howto, Technology
Tags: ,

I didn’t realize that Jboss has a security “feature” to not allow remote connection by default until I read this post. Following the tip on that page helped me to access Jboss remotely. :)

While trying to setup JMS code, I encountered a few small issues and resolved them. Here are my notes:

Where in the world is ChapterExRepository? Here it is.

According to the following thread, one way to include log4j xml config file is to include the path to the file in the classpath.

Here are a few useful links that helped me to resolve a few issues. ;)