You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Krishnakumar B <ww...@gmail.com> on 2007/01/22 14:18:00 UTC

Usage of ejb-ref from web application ( 2.0 SNAPSHOT )

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