[jboss-user] [EJB 3.0] - circular references

robert.geisler do-not-reply at jboss.com
Mon Jun 29 09:32:55 EDT 2009


hallo everybody...

i met some problems with circular ejb references and already read postings like* http://www.jboss.org/index.html?module=bb&op=viewtopic&t=149299,
  | * http://www.jboss.org/index.html?module=bb&op=viewtopic&t=148042
  | * and some others,that explain me what the problem is and how to solve it (@IgnoreDependency).

but my problem still occurs, because jaikiran always told us to remove the class level @EJB annotation. but if i only use @EJB on field level, than the corresponding ejb will always get injected, no matter if i will use it later.
but i would like to declare some references at class level and lookup later through local jndi (java:comp/env), just when i really need the corresponding ejb.

but i cannot do that without class level annotations, right?
so is there a solution to* ignore class level dependencies or* lazy inject field level dependencies?
thanks in advance
robert

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

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



More information about the jboss-user mailing list