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!

