This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
HI, I was trying to use Local interfaces with WebSphere 5, specifically with WADS where I do all development. To generate entity beans I use bottom-up approach. WASD generated Local interfaces by default, with the associated JNDI names. I can use Universal Client to access beans' methods via the Local interfaces but the problem occures when I put the LOOKUP implementation code into the bean. In my case a session bean creates an entity bean inside one container. Apparently JNDI refused to work: NamingException was thrown, saying that the specified in the lookup JNDI name not found. I tryed different values for the JNDI name, which I can see in the descriptors but all unsuccessfully. The JNDI name got resolved only when I added remote interfaces to the entity bean. WSAD by default readdressed JNDI name in from local to the remote home interface. I am asking 1. How can I use local interfaces via JNDI service in WSAD and WAS 5 ? 2. How can I use JNDI service for remote and local interfaces for the same bean ? Regards Leonard
Dagnabit, I know the solution to this, but I don't have access to a WSAD or WAS environment to test it. I beleive you have to create a reference to the second bean in the descriptor for the first and then you will be able to reference it. Have a look at the reference tab in the deployment descriptor in WSAD and search around there. Not a great solution, but I hope it helps. Dave.