[jboss-user] [JBoss Seam] - Problem accessing stateles bean from entity bean

markbakker do-not-reply at jboss.com
Fri May 18 05:27:06 EDT 2007


Hello,

I try the following:
I have an @Statefull bean with @Name("index")

>From with I call
@In(value="#{profilerService}")
private transient Profiler profiler;
ProfilerService is an stateless bean

>From the ProfilerService I get an entity bean called Article.
In the article I call some function that uses an stateless bean referenced as:
@EJB
private transient  Profiler profiler;

I also tried

@In(value="#{profilerService}")

Both give me null pointer exceptions when I call the profilerservice.
Can someone give me a clue how to call an stateless bean from an entity bean?!

Kind regards,

Mark


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046740#4046740

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046740



More information about the jboss-user mailing list