Need a step by step example for how to create and run an EJB remote client on Glassfish using its Application Client Container.

I am trying to create a simple J2EE Application using Glassfish container. I successfully created and deploy a simple Stateless Session Bean. I was able to successfully run the client remotely using the JNDI lookup and by adding appserv-rt.jar and j2ee.jar to the classpath. So, I'm sure that I did the server part correctly.  My problem is when I tried to run the client jar file using appclient, I got the following error message:
com.sun.enterprise.InjectionException: Exception attempting to inject Unresolved Ejb-Ref ejb/Test@jndi: test.server.TestServer@null@test.server.TestServer@Session@null into class test.client.TestClient
Anybody know how to fix this error or any step by step example of how to create and run an eJB remote client on Glassfish using their ACC?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kevorkgtAuthor Commented:
Solved my problem. It seems when you used @EJB in the glassfish ACC, the field that are injected have to be a static field.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.