I've to implement a class as follows:
| import java.lang.reflect.Type;
| import javax.ejb.EJB;
| import javax.naming.Context;
| import javax.naming.InitialContext;
| import javax.naming.NamingException;
| import javax.ws.rs.ext.Provider;
| import
BTW, the whole deployment is in an EAR, the class EJBProvider (see above) is in
a web module, and the referenced EJB of course in an EJB module.
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4266914#4266914
Reply to the post :
Juergen.Zimmermann wrote :
| So my 1st problem is: how to get the jndi name when the interface of an EJB
is available?
|
Dunno, this is EJB question not MC. ;-)
Either ask on their forum or check Weld-int
where, afair, something similar had to be implemented.
Juergen.Zimmermann wrote :
Juergen.Zimmermann wrote : the class EJBProvider (see above) is in a web
module
You can use MC-int to get DeploymentUnit from ServletContext.
* http://anonsvn.jboss.org/repos/jbossas/projects/mc-int/trunk/servlet/
View the original post :
Thank you very much for your help!
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=4266918#4266918
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4266918
___
jboss-user mailing list
Actually that's not correct (hence my off the top of my head),
as Module/ClassLoader can be created from different/multiple (sub)deployments.
e.g. ear + jars
Why exactly do you need DeploymentUnit?
What is your environment - where do you want to access DU from?
Looks like class's classloader is