About context listener

1-10 of 200Refresh
Tutorial
425

Step 3: Add a Context Listener Class

closing that EntityManagerFactory. To register a ServletContextListener: Open the [New Listener] dialog ... > Other... > Web > Listener and clicking Next. The Java package name should be guest. Enter GuestListener ... All to enable the Finish button. Click Finish to create the new listener class. Now replace the content
Tutorial
422

Step 3: Add a Context Listener Class

> Other... Select Web > Web Application Listener and click Next. Enter GuestListener as the class name - use ... the new listener class. Now replace the content of the new source file with the following code ... attribute in the servlet context - when the web application starts (contextInitialized). Retrieves
Tutorial
363

Step 3: Add a Context Listener Class [2011-02-11]

closing that EntityManagerFactory. To register a ServletContextListener: Open the [New Listener] dialog ... > Other... > Web > Listener and clicking Next. The Java package name should be guest. Enter GuestListener ... All to enable the Finish button. Click Finish to create the new listener class. Now replace the content
Tutorial
363

Step 3: Add a Context Listener Class [2019-01-27]

closing that EntityManagerFactory. To register a ServletContextListener: Open the [New Listener] dialog ... > Other... > Web > Listener and clicking Next. The Java package name should be guest. Enter GuestListener ... All to enable the Finish button. Click Finish to create the new listener class. Now replace the content
Tutorial
363

Step 3: Add a Context Listener Class [2019-01-27]

closing that EntityManagerFactory. To register a ServletContextListener: Open the [New Listener] dialog ... > Other... > Web > Listener and clicking Next. The Java package name should be guest. Enter GuestListener ... All to enable the Finish button. Click Finish to create the new listener class. Now replace the content
Tutorial
360

Step 3: Add a Context Listener Class [2011-02-11]

> Other... Select Web > Web Application Listener and click Next. Enter GuestListener as the class name - use exactly ... the new listener class. Now replace the content of the new source file with the following code: package ... context - when the web application starts (contextInitialized). Retrieves the EntityManagerFactory
JDO Doc
82

JDO External Listeners

The following types can be used to implement external listener classes for JDO lifecycle events: Listener objects can be bound to one or more persistence capable classes by invoking the addInstanceLifecycleListner method either at the PersistenceManagerFactory level or the PersistenceManager level.
JDO Doc
50

javax.jdo.listener.LoadCallback

javax.jdo.listener Interface LoadCallback Subinterfaces: InstanceCallbacks This interface is used to notify instances of load events. Since: JDO 2.0 void jdoPostLoad() Called after the values ... in this method. The context in which this call is made does not allow access to other persistent JDO instances. Since: JDO 2.0
JDO Doc
50

javax.jdo.listener.StoreCallback

javax.jdo.listener Interface StoreCallback Subinterfaces: InstanceCallbacks This interface is used to notify instances of store events. Since: JDO 2.0 void jdoPreStore() Called before the values ... to persistent fields will be reflected in the data store. The context in which this call is made allows
JDO Doc
35

Constants.INSTANCE_LIFECYCLE_LISTENER_ATTRIBUTE_LISTENER

Static Field javax.jdo.Constants String INSTANCE_LIFECYCLE_LISTENER_ATTRIBUTE_LISTENER The name of the instance lifecycle listener element's "listener" attribute. Since: JDO 2.1