geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Krishnakumar B" <www....@gmail.com>
Subject Usage of ejb-ref from web application ( 2.0 SNAPSHOT )
Date Mon, 22 Jan 2007 13:18:00 GMT
Hi,

I am trying to get a reference to Session EJB from the web application.

It works if i give the ejb-ref like this in geronimo-web.xml

<ejb-ref xmlns="http://geronimo.apache.org/xml/ns/naming-1.1">
<ref-name>ejb/TestBean</ref-name>
<pattern>
      <name>TestBean</name>
</pattern>
</ejb-ref>

If i add groupId, artifactid and version it throws a error

<ejb-ref xmlns="http://geronimo.apache.org/xml/ns/naming-1.1">
<ref-name>ejb/TestBean</ref-name>
<pattern>
      <groupId>default</groupId>
     <artifactId>tomcatejb</artifactId>
     <name>TestBean</name>
</pattern>
</ejb-ref>

<ejb-ref xmlns="http://geronimo.apache.org/xml/ns/naming-1.1">
<ref-name>ejb/TestBean</ref-name>
<pattern>
      <groupId>default</groupId>
     <artifactId>tomcatejb</artifactId>
     <version>1.0</version>
     <name>TestBean</name>
</pattern>
</ejb-ref>

javax.naming.NameNotFoundException: Could not resolve abstract name query [/tomc
atejb//?name=TestBean#org.apache.openejb.RpcEjbDeployment] in configuration defa
ult/tomcat/1.0/car

Is this a bug or the usage is not correct?

Regards
Krish

Mime
View raw message