Hello dear OpenEJB folks,

I am experiencing some difficulties in trying to switch the value of the
deployment id format. I am starting my OpenEJB remote server with the
following command:
openejb start "-Dopenejb.deploymentId.format={ejbClass}"

Thus, i expect for a bean named "com.recursion.test.openejb.MyStatelessBean"
to have a deployment id with the same value -
"com.recursion.test.openejb.MyStatelessBean". But this doesn't happen!

Let me tell you about what i get from the server.
When i deploy a sample application, i get :

D:\openejb-3.1.1\bin>openejb deploy TestEJB.jar
Application deployed successfully at "TestEJB.jar"
App(id=D:\openejb-3.1.1\apps\TestEJB.jar)
    EjbJar(id=TestEJB.jar, path=D:\openejb-3.1.1\apps\TestEJB.jar)
        Ejb(ejb-name=MyBean, id=org.apache.openejb.jee.StatelessBean)
            Jndi(name=org.apache.openejb.jee.StatelessBeanRemote)

It obviously has done smth very wrong - instead of setting the deployment id
of MyBean to be its ejbClass, it has set it to the value
"org.apache.openejb.jee.StatelessBean". What is this ?! Some bean that
OpenEJB uses internally ? I don't understand it....

And when i try to deploy another application, i get :

Application failed to deploy "app_0_0.ear".  Check server logs for more
details.
org.apache.openejb.OpenEJBException: Jar
D:\openejb-3.1.1\apps\app_0_0\ejb_test_jar.jar cannot be loaded.  The
Deployment ID org.apache.openejb.jee.StatefulBean is already in use.  Please
redeploy this jar and assign a different deployment ID to the bean with the
ejb-name StatefulTxBean.

Please give me some hints how to proceed! Is it a bug ?

I have experimented with other combinations and they don't work either. For
example, starting with 
openejb start "-Dopenejb.deploymentId.format={interfaceClass}{ejbName}", i
get a deployment-id of 
"interfaceClassMyBean" for a bean with beanName=MyBean. This means, that
{interfaceClass} was not processed at all and was just appended to the
beanName as a string constant.

Best Regards,
recursion.
-- 
View this message in context: 
http://www.nabble.com/Problem-with-changing-the-deployment-id-format-tp24270118p24270118.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to