That was fast.  I've succeeded, but not with the configuration I initially
invisioned.  I did the following to debug the interest example bean from the
jBoss examples (I used Karmira with Dave Halbakken's setup for Kawa):

ASSUME: JBOSS installed, jBoss EJB Demo InterestBean is deployed, Karmira
Debugger Installed, Windows NT/2000, debugging on local host

1) Edit %jboss-install%\bin\run.bat to start jBoss like this:

java -classic -Xdebug -Xnoagent
-Xrunjdwp:transport=dt_socket,server=y,address=7081,suspend=n
-Djava.compiler=NONE -classpath "%CLASSPATH%" -Dtomcat.home=%TOMCAT_HOME%
org.jboss.Main

Note -Xrunjdwp:transport=dt_socket,server=y,address=7081,suspend=n

2) Start Karmira and created a new project for the interest example
3) Add interest.jar and interest-client.jar to the project paths.
4) Put a breakpoint in the file InterestBean.class at the println
5) Start jBoss using the altered run.bat (should see "Classic VM" in fourth
output line)
6) Start a debug session using Debug/Remote/Attach...
7) Use your computer as socket host and 7081 as the port address
8) At this point the debugger connects to the VM
9) Run the client and the breakpoint is hit.

Cool.  The tools I don't mind paying for: debugger, editor, 4NT.  Now I'm
off...

Jeff Mc.

-----Original Message-----
From: Jeff McArthur [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 16, 2000 5:10 PM
To: '[EMAIL PROTECTED]'
Subject: [jBoss-User] Debugging EJB

...blah, blah, blah...

I feel I'm one step away from productivity.  My current goal is to set a
breakpoint inside of an EJB deployed in jBoss and inspect variables therein.
After that, I'm on my way.

...

QUESTIONS:
1) How do I debug a deployed bean using NetBeans and jBoss?

2) What is AN ideal environment for developing EJB (that doesn't cost
$3000)?

...blah, blah, blah...

Sincerely,
Jeff McArthur


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to