tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cristic83 <>
Subject Application discovery via the classpath
Date Tue, 22 Feb 2011 09:03:28 GMT

Hi guys,

I have a package structure of my EJBs(sateless and MDBs) like this: test,
test.pdf and test.scheduling. The packages test.scheduling contains some
MDBs that I want to remove from being loaded into my container, so I wanted
to remove all the classes from the test.scheduling package but keep
everything else from the packages test, test.pdf and all other subpackages. 
In order to do so, I have been trying to use the including/excluding paths
approach as described here:

The code I used looks like this:

Properties p = new Properties();
p.put("openejb.deployments.classpath.filter.descriptors", "true");//use
ejb-jar for ejbs discovery p.put("openejb.deployments.classpath.exclude",

This doesn't seem to work because I get the following warning:
WARN - Jar not loaded. classpath.ear.  No provider available for
resource-ref 'null' of type 'javax.jms.Destination' for

MonthlyReportTrigger is one fo my MDBs from the test.scheduling package that
I expected to be excluded. 
After this, the code tries to lookup an ejb in the context which fails with
a NameNotFoundException exception.

Can you point me the right direction to go?(google didn't help ).
View this message in context:
Sent from the OpenEJB User mailing list archive at

View raw message