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

Reply via email to