Moved this to User forum, where it should be in the first place. ;-)
What's the env you're running this?
Not necessarily as its a question of a new resource injection type. This will only be reasonably doable in jbossas5. Its not a question of startup ordering. Its an issue of a new resource type showing up in the component ENC.
We are currently adding sip servlets spec implementation on top of JBoss 4.2.2.GA as we are targeting the same version used by Mobicents (JAIN SLEE) to be able to bundle them together to provide full telco features.
There is no way at all to do it in a 4.x version ? Even if it's a bit hacky in waiting for Jboss 5 or through some kind of interceptors...
Ideally, we don't want to do any modifications into the jboss code just extend it to provide this feature, will Jboss 5 be easily extendable regarding this matter ?
Thanks a lot for your valuable feeback.
By something hacky I meant something like :
Let the EARDeployer deploys everything then iterate through all webapps/sipapps modules, get their SipFactory and inject them into the ENC of every other JEE modules (EJB, Web Service MDB and so on)...
Everything done in EARDeployer that might have access to ENC of deployed modules of the EAR and access to the webapps/sipapps contexts.
Just a thought even if not great