5 Replies Latest reply: May 1, 2012 8:28 PM by leonardo w RSS

Remote EJB 2.1 in Jboss 7.1

leonardo w Newbie

I tried to deploy an EJB 2.1 from jboss 4.2.3 to jboss 7.1.

I need to keep the JNDI name as fallows because it´s a legacy application.

In old jboss.xml:

<session>
   <ejb-name>WidgetEJB</ejb-name>
   <jndi-name>com.company.app.ejb/WidgetEJB</jndi-name>
</session>

 

The new way I´ve tried (jboss-ejb3.xml):

 

<session>
   <ejb-name>WidgetEJB</ejb-name>
   <ejb-ref>
       <ejb-ref-name>WidgetEJB</ejb-ref-name>
       <lookup-name>com.company.app.ejb/WidgetEJB</lookup-name> (I tried with look-up and jndi-name, but no way it worked)
       <jndi-name>com.company.app.ejb/WidgetEJB</jndi-name>          
   </ejb-ref>            
</session>

In this case the jboss didn´t find the jndi in the lookup command.

 

Is It possible? How?

I have already researched for it but I have not had success

Thanks in advance