Enterprise JavaBeans - EJB 2 into weblogic 8, help please.. how to invoke

hello

i have one ejb into weblogic, session ejb stateless.

the ejb-jar file has this:

<session>

<description><![CDATA[MiCallejeroSession Session]]></description>

<display-name>MiCallejeroSessionEJB</display-name>

<ejb-name>MiCallejeroSessionEJB</ejb-name>

<home>MiCallejeroEJB.MiCallejeroSessionEJB.MiCallejeroSessionHome</home>

<remote>MiCallejeroEJB.MiCallejeroSessionEJB.MiCallejeroSession</remote>

<ejb-class>MiCallejeroEJB.MiCallejeroSessionEJB.MiCallejeroSessionBean</ejb-class>

<session-type>Stateless</session-type>

<transaction-type>Container</transaction-type>

</session>

and into the weblogic-ejb.jar i have this:

<weblogic-enterprise-bean>

<ejb-name>MiCallejeroSessionEJB</ejb-name>

<stateless-session-descriptor>

<pool>

<max-beans-in-free-pool>50</max-beans-in-free-pool>

<initial-beans-in-free-pool>0</initial-beans-in-free-pool>

</pool>

<stateless-clustering></stateless-clustering>

</stateless-session-descriptor>

<transaction-descriptor>

</transaction-descriptor>

<jndi-name>Mi.MiCallejeroSessionEJB</jndi-name>

</weblogic-enterprise-bean>

when i want to referer to the ejb i think that i must to invoque the jndi name (Mi.MiCallejeroSessionEJB) but if i make this produces one error.

for running imust to invoke using the:

MiCallejeroEJB.MiCallejeroSessionEJB.MiCallejeroSessionHome. the home interface.

wich is my error? can you help me?

thanks

[1779 byte] By [mirentxua] at [2007-11-26 23:07:25]
# 1

You can invoke the SessionEJb without the JNDI name as

MiCallejeroSessionHome sessionhome=null;

InitialContext ctx = new InitialContext();

sessionhome=(MiCallejeroSessionHome)ctx.lookup("java:comp/env/MiCallejeroSessionEJB");

MiCallejeroSession session=null;

session=sessionhome.create();

I think we can invoke the EJBs without their JNDI names also.

honeyrekhaa at 2007-7-10 14:01:34 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...