Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能告诉我如何为 WebSphere 7 中的 EJB 3.0 无状态(本地)会话 bean 组件提供自定义 JNDI 名称?我知道服务器正在为某些东西提供默认名称,例如ejblocal:<fully qualified interface name>. 但我不想在我的客户端查找中使用这个名称。
ejblocal:<fully qualified interface name>
我还想知道同样的方法是否也适用于 WebSphere 8.0?
interface @Remote public interface HellowWorldBeanRemote {} bean class import javax.ejb.Stateless; @Stateless(mappedName="HelloWorld") //Giving custom Jndi name to ejb public class HellowWorldBean implements HellowWorldBeanRemote {}