"jason.greene(a)jboss.com" wrote :
| I would recommend creating an AS endpoint deployment/management service that manages all of the AS details. Then you can just delegate calls from the Endpoint API to the endpoint service instead of calling MainDeployer from the web container.
|
Sounds like a good idea let's start iterate on it. If it will be necessary I can fork another dev thread for it.
Could you describe your idea in more details Jason? What kind of service do you mean? How should the service deal with e.g. class loading issue?
We're talking about simple usecase: We'd like to publish POJO web service from servlet
Looking forward to yours and others ideas ;)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210048#4210048
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210048
The Endpoint API is really intended for out-of-container usage. The TCK for EE5 doesn't verify it any long since the test used to assume sun implementation details.
That said, to "fix" in container usage, I would recommend creating an AS endpoint deployment/management service that manages all of the AS details. Then you can just delegate calls from the Endpoint API to the endpoint service instead of calling MainDeployer from the web container.
-Jason
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210033#4210033
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210033
"richard.opalka(a)jboss.com" wrote : "kabir.khan(a)jboss.com" wrote :
| | If that doesn't work I think you need to create a ClassLoadingMetaData from the Module, and put that into the deployment as an attachment.
| We don't have the Module reference available :( As I said above, we're doing all the magic from servlet code (we're not in deployers processing chain when creating that "minimalistic Deployment") :(
You obviously have access to the ClassLoader, so:
"kabir.khan(a)jboss.com" wrote :
| If you have the deployment's ClassLoader, you can obtain the Module by calling
| org.jboss.classloading.spi.dependency.ClassLoading.getModuleForClassLoader()
| This method exists in the version of jboss-cl that exists in AS Branch_5_0.
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4209565#4209565
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4209565