I am building a project whereby I have a Singleton Bean that I want to fire up when the .jar is deployed in the EJB container, thus I have it annotated as follows:
package com.ryanchapin.ejbTest
@Startup
@Singleton
public class SingletonTest{}
Of course, I have the requisite Local and Remote interfaces set, up, I’ve just left that off for brevity. I am attempting to do a JNDI lookup, from a Servlet in the same JVM using the Local interface which results → Continue reading “Accessing an EJB 3.1 Singleton Bean with @Startup from a Servlet in the Same JVM Instance”