I am trying to integrate spring3.0 with ejb3.0. below is the setup i have and using weblogic server 10.3
Interface, bean are in separate ejb project. controller, spring config file are in spring project
interface:
@Local
public interface TestBeanLocal {}
bean:
@Stateless(mappedName="HelloWorld")
public class TestBean implements TestBeanLocal {}
spring controller:
@Controller
@RequestMapping("/welcome")
public class WelcomeController {
@EJB
private TestBeanLocal testBeanLocal;
}
In spring config file:
<jee:jndi-lookup id="testBeanLocal" jndi-name="HelloWorld"/>
I am getting below exception:
javax.naming.NameNotFoundException: Unable to resolve 'HelloWorld'. Resolved ''; remaining name 'HelloWorld'
at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
at weblogic.jndi.internal.BasicNamingNode.lookupHere(BasicNamingNode.java:252)
at weblogic.jndi.internal.ServerNamingNode.lookupHere(ServerNamingNode.java:182)
at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:206)
at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
Any help would be appreciated.
[Message sent by forum member 'neiljohnson']
http://forums.java.net/jive/thread.jspa?messageID=478358