Results 1 to 1 of 1

Thread: Error in integrating springMVC with EJB

Threaded View

  1. #1
    Join Date
    Sep 2011
    Posts
    11

    Angry 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 at 11:27 PM. Reason: ADDING NEW MODIFICATION

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •