This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
All code Compiles fine with Glassfish 2.1, nb6.5.1. I get the following error
WARNING: ACC003: Application threw an exception.
java.lang.NullPointerException at ejb3inaction.example.HelloUserClient.main(HelloUserClient.java:30) which is reffering to helloUserBean.sayHello("Curious George");
in HelloUserClient.main. Please could you help.
Please UseCodeTags. Unformatted code/config/etc. is difficult to read. You can edit your post to include them using the button or re-post the question with proper formatting.
You cannot inject EJBs in a "normal" client (without doing some more stuff). Looking up the remote reference via new InitialContext().lookup(..) is the solution.