Hello all.
I am trying to call ejb portion through springMVC. But I am getting error as
I know there is some problem inJNDI look up.My app is not adding EJB portion in JNDI. Can ay one suggest me what to do.Code:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'Manager' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: ejb not bound
My applicationContext.xml is
I m struggling with it for more then 1 week nowCode:<bean id="Manager" class="org.springframework.jndi.JndiObjectFactoryBean" > <property name="jndiName" value="ejb/Manager" /> </bean>
I also changed my applicationContext.xml to
and mapped it in implementation class through annotation @stateless(mappedName="ejb/Manager")Code:<bean id="Manager" class="org.springframework.ejb.access.SimpleRemoteStatelessSessionProxyFactoryBean"> <property name="jndiName"> <value>ejb/Manager</value> </property> <property name="resourceRef"> <value>false</value> </property> <property name="businessInterface"> <value>com.ICL.EJB.serviceImpl.ManagerImpl</value> </property> </bean>
But no success...........


Reply With Quote
