Hi,
I have used both Visual Cafe 4.0 Enterprise and JBuilder 3.5 Enterprise to
debug EJBs within WebLogic server 5.1.
To debug EJBs in WebLogic (or for any server for that matter) you must run
WebLogic using a debug enabled Java virtual machine, rather than the
standard one. Visual Cafe uses debugvm.exe and JBuilder uses Java.exe with
extra options.
A debug enabled virtual machine runs Java applications in the usual fashion
except that it has far greater control over tha application's execution.
For example: usually when launching WebLogic one might use
"c:\jdk1.2.2\bin\java -classpath .... weblogic.Server", however, one should
use "c:\vc\java2\bin\debugvm -classpath ... weblogic.Server" when debugging
with Visual Cafe. Once WebLogic has started successfully simply use the
"attach to VM" option within Visual Cafe. Visual Cafe then attaches to the
running WebLogic server and starts its debugger and bingo: you are debugging
WebLogic. Note that Visual Cafe needs to know where all your source files
are for your EJBs so that you can step through your code.
JBuilder provides debugging in a similar way.
Note that you do not need an EJB aware debugger - as far as I know there is
no such thing. A debugger that can connect to a running JVM in debug mode
is all you need as an EJB is simply a collection of Java files like with any
application. I would read up on the docs of both JBuilder and VisualCafe.
Debugging in this way (remote debugging) is very powerful and very useful
but can be quite a challenge to set up at first.
Myles
> -----Original Message-----
> From: Catherine Jung [SMTP:[EMAIL PROTECTED]]
> Sent: 27 November 2000 11:48
> To: [EMAIL PROTECTED]
> Subject: Debugging EJBs
>
> Hi, I was wondering about how you go about debugging an
> EJB? Is it possible to set breakpoints etc as for normal
> code using a standard debugger? Or do you need some kind
> of EJB aware debugger?
>
> I'd be trying to debug EJBs running in jBoss, maybe
> using some kind of IDE like JBuilder - or maybe not, I'm
> just trying to establish the best way to do it. So I'd
> welcome any suggestions/ideas from people.
>
> PS. I'm a little uncertain about the whole thing - I've
> never bothered with a debugger before, so I don't really
> know what I'm looking for in one and what bugs I'm expecting
> to find that I couldn't using test code and logging....
>
> Catherine
>
> ==========================================================================
> =
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".