Announcement Announcement Module
Collapse
No announcement yet.
Error in integrating springMVC with EJB Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error in integrating springMVC with EJB

    Hello all.
    I am trying to call ejb portion through springMVC. But I am getting error as

    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
    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.
    My applicationContext.xml is
    Code:
    <bean id="Manager" class="org.springframework.jndi.JndiObjectFactoryBean" >
    		<property name="jndiName" value="ejb/Manager" />
    		
    	</bean>
    I m struggling with it for more then 1 week now

    I also changed my applicationContext.xml to
    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>
    and mapped it in implementation class through annotation @stateless(mappedName="ejb/Manager")
    But no success...........
    Last edited by abhish; Dec 20th, 2011, 11:27 PM. Reason: ADDING NEW MODIFICATION
Working...
X