JNDI « EJB « JSP-Servlet Q&A





1. Cannot lookup EJB3 from ServletContextListener in JBoss 4.2.3    stackoverflow.com

I have created an EJB timer with a local interface and I am not able to do JNDI lookup for it from a ServletContextListener. Here is part of the EJB code:

@Stateless
@LocalBinding(jndiBinding = ...

2. Can not lookup EJB2 from other EJB2, but can do it from servlet    stackoverflow.com

I develop enterprise project in NetBeans on GlassFish (J2EE_1.4). There are some entity beans, a couple of session beans and message driven bean in my project. I use entity beans from servlet (in ...

4. jndi lookup for an ejb through a servlet.    coderanch.com

Try passing the fully qualified class name of the interface to the lookup method. Normally, the application server binds the session beans to its fully qualified class name in global scope when you don't specify the mappedName I am really not sure why you want a lookup in the JNDI since you are accessing the orb in the localhost. Therefore, you ...

8. No JNDI name found in EJB    coderanch.com

9. Problem in JNDI look up in ejb 3.0    coderanch.com





11. ejb jndi issue    coderanch.com

12. jndi connection in a FIN_WAIT_2 state during a remote EJB call on jboss (embedded).    coderanch.com

Hi all, I have a Connection time out problem while trying to connect to a remote ejb. Context configuration: ... InitialContext context = new InitialContext( ); context.addToEnvironment(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); context.addToEnvironment(Context.URL_PKG_PREFIXES, "org.jboss.naming: org.jnp.interfaces"); context.addToEnvironment(Context.PROVIDER_URL, "jnp://somehost:1099"); ... MyEjb ejb = (MyEjb) context.lookup("MyEjb"); ... The above piece of code is running on tomcat + jboss-embedded (Windows XP). "somehost" has the same server configuration but a ...

13. EJB JNDI look-up problem    coderanch.com

14. JNDI not creating for EJB Local interfaces example    coderanch.com

Hi Friends, I have created an EJB example with Local interfaces. My problem is its not creating a JNDI name inside JNDI tree. Its not showing any issues when i start the weblogic server. Other Session beans are deplolyed properly. Below i am giving the code. EJBLocal Interface: public interface CalculatorLocal extends EJBLocalObject { public double add(double arg1, double arg2); public ...

15. JNDI Name in EJB3    coderanch.com

@Stateless (mappedName = "CalculatorService") public class Calculator implements CalculatorRemote, CalculatorLocal { /** * Default constructor. */ public Calculator() { } public int add(int a, int b) { return a+b; } } Test Class :- public static void main(String[] args) { try { Hashtable ht = new Hashtable(); ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory"); ht.put(Context.PROVIDER_URL, "t3://localhost:7001"); InitialContext ic = new InitialContext(ht); Calculator c = ...

16. EJB JNDI Not Being Published    coderanch.com





17. jndi name in ejb3?    coderanch.com

i am using weblogic 10.3 as the application server!! i went through the jndi tree in weblogic...if i use the name mentioned as 'binding name' in weblogic jndi tree(Environments->Servers->Admin Server->view jndi tree) it gives 'ClassNotFound Exception'..... am i right in locating the default jndi name in the place i mentioned??....if not what is the format of default jndi name in weblogic ...

20. EJB JNDI NoInitialContext Exception    coderanch.com

hi,thanks for your reply. but still i couldn't solved it. iam using jndi properties file and passing it to the initial context.still do i have to write them in hash table also ? even though i changed the code to hash code i got exception called name not found exception at look up line. i have added the jars but i ...

21. JNDI not bound for EJB    coderanch.com