This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
The following hello world program is not running and it is giving Null Pointer exception. I understand that EJB is not initialized but did not get, why it is not initialized.
I am using Netbean's and Glassfish server.Please help me.
before pringing my name.......
in test funnnnnnnnnnnnn
Exception in thread "main" java.lang.NullPointerException at Myprint.testfun(Myprint.java:36)
Hey, Thanks a lot. Actually I read about this ACC and to avoide that problem I created Servlet and but by mistakenly from servlet i am calling again this stand alone java program. Now after seeing your replying I recalled the mistake i did and now I could see output . Thank you very much.