[jboss-user] [Microcontainer] - Re: Locating the current DeploymentUnit

2009-06-08 Thread adr...@jboss.org
You can't use a thread local because 1) the deployers/micrcontainer can cause other deployments/contexts to be processed when dependencies are satisfied. e.g. deploying the transaction manager will cause many other other services to start. 2) Outside the deployment framework callbacks there wi

[jboss-user] [Microcontainer] - Re: Locating the current DeploymentUnit

2009-06-08 Thread bob.mcwhirter
fwiw, TorqueBox (jboss-rails) is one of those that has a DU that creates another DU. Something stack-ish would be appropriate in my use-case, perhaps. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4236052#4236052 Reply to the post : http://www.jboss.org/in

[jboss-user] [Microcontainer] - Re: Locating the current DeploymentUnit

2009-06-08 Thread alesj
"david.ll...@jboss.com" wrote : OK how about this. What is the mechanism to find the DeploymentUnit that a Class belongs to? Does jboss-cl give us something which does this? You can do this: (1) Get CL for the class (2) Get the Module for CL (3) Search all DUs for matching Module --> the one th

[jboss-user] [Microcontainer] - Re: Locating the current DeploymentUnit

2009-06-03 Thread jaikiran
"david.ll...@jboss.com" wrote : | | This will be necessary to make per-deployment logging setups work right. >From what i remember, in AS-4.x this was done with a TCL log4j filter (not >sure how credible that used to work). How is this being done in AS-5? View the original post : http://

[jboss-user] [Microcontainer] - Re: Locating the current DeploymentUnit

2009-06-01 Thread david.ll...@jboss.com
OK how about this. What is the mechanism to find the DeploymentUnit that a Class belongs to? Does jboss-cl give us something which does this? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234507#4234507 Reply to the post : http://www.jboss.org/index.html?

[jboss-user] [Microcontainer] - Re: Locating the current DeploymentUnit

2009-05-28 Thread david.ll...@jboss.com
One challenge will be if and when one deployment unit calls into another. Maybe a reflection-based stack introspection would be better, but I don't believe there's a portable API to accomplish that. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4234016#42340