[jboss-user] [Installation, Configuration & Deployment] - Prevent EJB deployment with sar
do-not-reply at jboss.com
Wed Nov 18 15:54:12 EST 2009
I have a jar file, lets call it ejb.jar, that contains both the interface and implementation of several stateless session beans. I typically deploy ejb.jar and one other jar containing stateless session beans in an ear. I am now working on a sar file that contains a single MBean, this MBean makes use of some of the stateless session beans in the ejb.jar. The sar that deploys my MBean can't be bundled in the ear with ejb.jar because it has to be flexible so that it can use the stateless session beans locally or talk to them remotely if they are deployed in a separate JBoss instance.
Since the sar may be running on a separate machine, it at least needs to have the interfaces for my EJBs on the classpath, so it has ejb.jar in the root of the sar. My problem is that when trying to deploy the sar, JBoss wants to deploy the EJBs also but fails because there is no persistence unit definition (it's usually found in the ear's META-INF). So is there a way to tell JBoss not to deploy the stateless session beans that it is finding in the sar? If not then I guess my next alternative would be to deploy this as a war, but that's not ideal in this case.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266401#4266401
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4266401
More information about the jboss-user