users@glassfish.java.net

Re: Going Crazy with _at_EJB AppClient

From: <glassfish_at_javadesktop.org>
Date: Tue, 29 Apr 2008 11:15:58 PDT

In your appclient main class, the injection field has type FXCurveManagerService. What is it? Is it a supertype of FXCurveManagerServiceRemote and FXCurveManagerServiceLocal?

Your @EJB is missing something for the container to work. Try

@EJB(mappedName="FXCurveManagerService")
private static FXCurveManagerServiceRemote service;

Or,

@EJB(mappedName="FXCurveManagerService", beanInterface=FXCurveManagerServiceRemote.class)
private static FXCurveManagerService service;

You may not need mappedName attr.

-cheng
[Message sent by forum member 'cf126330' (cf126330)]

http://forums.java.net/jive/thread.jspa?messageID=272083