Injection, NullPointerException

I'm new to J2EE. I wrote a little test app in NetBeans with an application client talking to a session bean. It works fine if I run it from NetBeans, but when I try to run the jar outside of NetBeans I get a NullPointerException when trying to access the bean. I have not found anywhere to specify the hostname of the J2EE server to the client app, could this be a problem? I know JNDI is supposed to allow the client to find the bean, but doesn't the app-client need to know where too look for the JNDI service? Again, I'm new to this. I got a 1200 page book on J2EE I've been thumbing through, but it's going to take me a while to get through it!

[660 byte] By [sumGuya] at [2007-11-26 16:52:53]
# 1

How are you starting the application client JVM? Are you using the appclient command?

That's the command within the Java EE SDK / glassfish that is used to run an Application

Client component.You can find some common questions on Remote EJB access in our

faq here :

https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html

If you're still stuck, please post the stack trace and the relevant client source code snippet.

--ken

ksaksa at 2007-7-8 23:20:34 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
Great! Thanks. I didn't know about appclient. I also didn't know that NetBeans also enabled Java Web Start for the client application. That's perfect. Thanks again.
sumGuya at 2007-7-8 23:20:34 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...