users@glassfish.java.net

Re: Deploy Problems

From: <glassfish_at_javadesktop.org>
Date: Wed, 15 Aug 2007 02:43:07 PDT

Hi Hong and Tim,

I've subscribed to the mailing list. Thanks for the address.

I've incorporated the injection solution in our project, which deploys fine now. Funny thing, I only injected the first 3 referenced facades (we have over 20 at the moment), but ALL facades can now be found. The rest are found with lookup().

All of our facade calls are hidden in pojo classes (in our "base" project). The variable for the facade is always static, and each class method that calls a facade method first calls a method that fills the static facade variable (with lookup()) if its null. This has worked since day one in NetBeans (including debugging), but wasn't deployable. When i added the injection into the main class, the debugging didnt work anymore. Hence, the P.S. in the last post.

In the meantime, I've added a second main class that uses injection and fills the static variables for the facades. This main class then calls the original main class (which doesnt use injection). In the app-client single project, the original main class is still being used to run and debug, everything works, but not deployable. In the EAR application, the second main class is used (the one with injection). This way, the application is debuggable with NetBeans and the EAR is deployable.

I know this is only a workaround, but it works. Our project timetable is mean and lean, and we have another milestone coming up (1st week of September). I just installed a Dell Quad-CPU Server with Win2003 Server in Terminal-Server mode, using NetBeans 5.5.1 bundled with Sun AS. All developers are using this server and each developer has his own domain. With this new server, the time for starting/stopping NetBeans is neglible, as is starting/stopping Sun AS. Multi-Domains on one computer with Sun AS / Glassfish work fine.

I would like to make a clean solution for debugging with NetBeans, but my boss doesn't agree. "The workaround works, get to work on more important things!" (quote from my boss).

Thanks for your efforts and time. I really appreciate it,

Danny.
[Message sent by forum member 'dsmith9094' (dsmith9094)]

http://forums.java.net/jive/thread.jspa?messageID=230940