[JBoss Seam] - Re: Can you merge multiple annotations in one?
by chuckadams
@Stateful isn't Seam's annotation to begin with, and most of the other annotations are pretty orthogonal to each other. @Role subsumes @Name and @Scope, and maybe they could make it suck up some of the other annotations too. You still need @Name though, or seam won't even pick it up as a component.
Consolidated annotations aren't really a panacea either -- look at Tapestry for how baroque those can get. Clearly we're screaming for real syntax macros, but I won't be holding my breath. Macro-haters do have one point -- textual source transformations suck when it comes to reasoning about code. There's some macro processors for Java, but I don't think any of them support annotations, and of course most IDEs will fight with them. Personally, I just make use of IDE templates to make the copying and pasting less arduous.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969298#3969298
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969298
19 years, 7 months
[JBossWS] - JBossWS as a sub deployment?
by Doug.Palmer
Hi
I'm having a bit of a problem deploying a war file with a JSR109 service in it. I have an MBean that builds a war file from an xml file and then deploys it. If I build the war file and then tell the main deployer to deploy the war file JBossWS processes the war and publishes the service. To deploy I use:
mainDeployer.deploy(warFile)
However, if I deploy the war file as a sub deployment. The war file is deployed by the Tomcat deployer and JBossWS doesn't process the war so the web service isn't published. To deploy as a sub deployment I use:
mainDeployer.deploy(new DeploymentInfo(new URL("file://"+warFile), di, server));
Why doesn't the JBossWS deployer process the deployment in the second case? Do I need to tag the DeploymentInfo with any extra info so that it is processed by JBossWS?
Regards
Doug
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969292#3969292
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969292
19 years, 7 months