I finally added a basic implementation of the javax.naming.event.EventContext interface to the org.jnp.interfaces.NamingContext so that one can register a javax.naming.event.NamingListener with an EventContext and receive its events. This will be in the 5.0.0.CR3 release of jnpserver/client that I'll cut this week.
This currently only supports listeners registered within the same vm and the jndi server. I don't plan on adding remote event support until 5.1.0.
I'm trying to register the NamingListener witht the NamingContext, but i don't receive any events. I get the namingContext that is the lookup of initialContext.lookup("java:") and then i call ctx.addNamingListener("",EventContext.OBJECT_SCOPE, listener). I don't seem to receive any events when i delete or add ejb jars to the deploy dir of jboss. Can you please point me in the right direction?
I would first try to reproduce (and debug) in the actual jnpserver project -- via test case.
As I doubt full implementation is available / done.
|Retrieving data ...|