[jboss-user] [JBoss Microcontainer Users] - Re: How to get DeploymentUnit?

2009-11-22 Thread Juergen.Zimmermann
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

[jboss-user] [JBoss Microcontainer Users] - Re: How to get DeploymentUnit?

2009-11-22 Thread Juergen.Zimmermann
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 :

[jboss-user] [JBoss Microcontainer Users] - Re: How to get DeploymentUnit?

2009-11-22 Thread alesj
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 :

[jboss-user] [JBoss Microcontainer Users] - Re: How to get DeploymentUnit?

2009-11-22 Thread alesj
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 :

[jboss-user] [JBoss Microcontainer Users] - Re: How to get DeploymentUnit?

2009-11-22 Thread Juergen.Zimmermann
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

[jboss-user] [JBoss Microcontainer Users] - Re: How to get DeploymentUnit?

2009-11-21 Thread alesj
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