Using LotusScript to communicate with Java/Plug-ins

As many are aware, EventAdmin is a publish/subscribe event system that ships with Lotus Notes and is the primary communication mechanism used between OSGI plug-ins.  What is really missing in the Notes client is a pub/sub model to communicate between Lotus Script and the Eclipse Java world.  While you can certainly role your own through some creative coding the real answer would be to have the entire Notes core side (written in C) publish its various events to the Java side through the use of EventAdmin -this would allow any plug-in developer to plug in to the many events that happen in Notes (replication, new mail, document saved, etc).  Today you can do some interesting things with composite applications, the containers, and the property broker but that stuff only works in the context of a composite.  If you just want a view in the side shelf and have it be able to drive or communicate with other views in the perspective you will have to do something different – this is exactly where I think a LotusScript class for EventAdmin would be great.  You could register for any various topic or role your own topics on both sides of the Java/Notes Core fence.  This kind of thing can easily be done today using basic plug-in code with an LSX library installed.  I have heard of this requirement a lot in the labs and in the forums so I figured I would get some broader feedback on this through my blog – all 10 readers!

If you find this an interesting topics go ahead and email me or respond to this post so I can forward it on.

You can also check out the OpenNTF project I posted a while back that is an EventAdmin to PropertyBroker bridge for composites.  So if this was in fact enabled you could have property broker actions be called when something like new mail arrives…