...
Simplify the issue of searching for annotated applications by adding an ejb-jar.xml like this to your app:
Code Block | |||||||
---|---|---|---|---|---|---|---|
| |||||||
<ejb-jar/> |
OpenEJB will find the app in the classpath and deploy it along with any annotated beans it may contain.
...
The value of this property is a regular expression and therefore can be absolute or relative. For example the path "/Users/dblevins/work/swizzle/swizzle-stream/target/classes" which contains the class files of an application you wish to test could be included in any of the following values to the "openejb.deployments.classpath.include" property:
- "file:///Users/dblevins/work/swizzle/swizzle-stream/target/classes/" (an absolute path)
- "file:///Users/dblevins/work/swizzle/.*" (relative)
- ".*swizzle-stream.*" (very relative)
- ".*(swizzle-stream|swizzle-jira|acme-rocket-app).*" (including several paths)
Note the filtering is done on URLs in the classpath, so forward slashes should always be used even on OSs using backslash ("\").
...