On Jan 5, 2008 11:04 AM,  <[EMAIL PROTECTED]> wrote:
> Author: dblevins
> Date: Sat Jan  5 02:04:19 2008
> New Revision: 609116
>
> URL: http://svn.apache.org/viewvc?rev=609116&view=rev
> Log:
> Ability to output deployment descriptors via openejb.descriptors.output 
> property

Very handy feature! Just used it to pinpoint an issue with
interceptors and let openejb spit out the ejb-jar.xml. I skimmed over
the change yesterday and didn't think I could use it so early. It
certainly deserves a short article.

Run it as follows and see what happens:

[EMAIL PROTECTED] /cygdrive/c/oss/openejb3/container/openejb-core
$ mvn -Dopenejb.descriptors.output=true test -Dtest=StatelessInterceptorTest
...
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running org.apache.openejb.core.stateless.StatelessInterceptorTest
INFO - Configuring Service(id=Default JDK 1.3 ProxyFactory,
type=ProxyFactory, provider-id=Default JDK 1.3 ProxyFactory)
INFO - Creating ProxyFactory(id=Default JDK 1.3 ProxyFactory)
INFO - Configuring Service(id=Default Transaction Manager,
type=TransactionManager, provider-id=Default Transaction Manager)
INFO - Creating TransactionManager(id=Default Transaction Manager)
INFO - Configuring Service(id=Default Security Service,
type=SecurityService, provider-id=Default Security Service)
INFO - Creating SecurityService(id=Default Security Service)
INFO - Configuring Service(id=Default Stateless Container,
type=Container, provider-id=Default Stateless Container)
INFO - Creating Container(id=Default Stateless Container)
INFO - Configuring app: test
WARN - Unable to scrape for @Stateful, @Stateless or @MessageDriven
annotations. EjbModule URL not valid: test
INFO - Dumping Generated ejb-jar.xml to:
c:\DOCUME~1\JLASKO~1\LOCALS~1\Temp\ejb-jar-59009StatelessInterceptorTest.xml
INFO - Dumping Generated openejb-jar.xml to:
c:\DOCUME~1\JLASKO~1\LOCALS~1\Temp\openejb-jar-59010StatelessInterceptorTest.xml
INFO - Loaded Module: test
INFO - Assembling app: test
INFO - Jndi(name=Target2BeanLocal) --> Ejb(deployment-id=Target2Bean)
INFO - Jndi(name=TargetBeanLocal) --> Ejb(deployment-id=TargetBean)
INFO - Created Ejb(deployment-id=Target2Bean, ejb-name=Target2Bean,
container=Default Stateless Container)
INFO - Created Ejb(deployment-id=TargetBean, ejb-name=TargetBean,
container=Default Stateless Container)
INFO - Deployed Application(path=test)

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

Reply via email to