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.
如何在 Seam 中注入 JNDI 值?我读到您可以使用@Resource 或@JndiInject,但它不起作用。
如果您不需要将 EJB 作为 Seam 组件,只需使用标准 InitialContext().lookup("something")。
如果您想使用可以从 JNDI 访问的 EJB 并能够将其用作 Seam 组件,那么它会更加复杂。看到这个。