users@glassfish.java.net

Re: Can You Share Tips Debug EJB Client with Eclipse?

From: Sivakumar Thyagarajan <Sivakumar.Thyagarajan_at_Sun.COM>
Date: Tue, 27 Nov 2007 15:53:52 +0530

> Does anyone here debug the EJB client (i.e. ant appclient) with the Eclipse
> IDE? How does it work? For example how does one getting the JVM to pause until
> remote attachment of Eclipse Debugger?

The appclient script accepts a VMARGS environment variable to specify any VM
arguments that you would want to pass to it.

So, in *nix, you could try setting VMARGS to
> $ export VMARGS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=9009"

and then run the appclient and the appclient would pause until the eclipse
debugger is attached.
> $ ./publish/glassfish/bin/appclient
> Listening for transport dt_socket at address: 9009

For windows, set the VMARGS variable appropriately and it should ideally work.
Let us know if you face an issue.

Thanks
--Siva.


glassfish_at_javadesktop.org wrote:
> Hi
>
> If you examined the appclient.bat file then you will probably agree that replicate the contents it in Eclipse run time is too complicated.
>
> Does anyone here debug the EJB client (i.e. ant appclient) with the Eclipse IDE?
> How does it work? For example how does one getting the JVM to pause until remote attachment of Eclipse Debugger?
>
> I find that MyEclipse 6 redeploy does not work at all for GlassFish 2, at least for EJB / MDB applications. Instead I have to undeploy and manually deploy. Sometime even clean the project does the trick with the autodeployment.
> [Message sent by forum member 'peter_pilgrim' (peter_pilgrim)]
>
> http://forums.java.net/jive/thread.jspa?messageID=247144
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>