?
Solved

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

Posted on 2008-01-28
4
Medium Priority
?
684 Views
Last Modified: 2008-02-03
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?
0
Comment
Question by:kevorkgt
1 Comment
 

Accepted Solution

by:
kevorkgt earned 0 total points
ID: 20781639
Solved my problem. It seems when you used @EJB in the glassfish ACC, the field that are injected have to be a static field.
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question