Mark
We debug remotely using
java_g -debug sun.tools.debug.EmptyApp
To start the VM and get a password. From there we use the IDE to debug.
Works fine on unix.
Tony
----
Reprint permission by Symantec Corporation, Visual Cafe 1998
Mark Cassidy wrote:
>
> I read January thread about debugging (mostly IDEs)
> and liked the idea of starting WebLogic's t3 and
> catching exceptions.
>
> My question is, IDE's and unit testing aside, -- you
> are running beans in development/production -- let's
> say in Unix --, there are problems, you'd like to get
> some idea of what is happening. You will need to have
> written some code to help debug/trace what is
> happening in the server. It would be nice to switch
> it on by bean type or turn it on globally without
> having to bring down production.
>
> Any ideas on how to do this? I thought of writing a
> utility to read through our .java files finding only
> ones that implement SessionBean or EntityBean and then
> adding a method call at the start of most methods if
> it wasn't already there. The method call would
> include the method name as a string and other helpful
> info.
>
> But what should the method check? Could the list of
> bean types to debug be kept in a properites file?
> Keeping it in a database would be ok but might slow
> down things quite a bit.
>
> If the method is static then concurency problems could
> be introduced, so perhaps it should be added as a
> local private method by the utility? Should it talk
> to one of a number of stateless Session beans that log
> the timestamped trace to its open file?
>
> Are there any other ideas that people have used to
> help debug what the environment as a whole is doing
> and what's happening as things slow down/stop/etc?
>
> I'm guessing that a number of implemenations have
> built some debugging/tracing facilities into their
> code. Care to share a tip?
>
> Thanks,
> - Mark
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
> ===========================================================================
> 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".
--
Tony Holderith | Interactive Business Solutions
[EMAIL PROTECTED] | NetCentric Solutions
http://www.interactivebusiness.com | Business Objects
voice: 310.414.6760, 805.389.4503 | fax: 310.414.6759
Don't connect to the Internet - be there. IBS
===========================================================================
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".