Hi all, I have a scenario where I need to create a singleton pojo class that will be deployed in smx (as OSGI service?) and could be started and stopped from management command. This class would contain a hashmap of some business entities reading from the database and cache in memory. The memory will be refreshed re-reading again on a notification send to the bean ( Not sure yet, how to do this part though)
I have 2 more service assemblies deployed and they need to lookup entity by calling the above singleton bean class. My knowledge with SA and OSGI is not very clear. I have questions below 1)Should I create a serviceassemby containg one su having the smx-bean defined in it? or should I create an OSGI service wrapping up a POJO class? 2)Can one su inside a SA call another su deployed inside another SA? 3)When I list my SAs from karaf console by "list" command. Thay do not have "started" status though my SAs work as expected. Does that mean SA do not have service life cycle ? Please suggest -- View this message in context: http://old.nabble.com/smx4.2-singleton-bean-class-with-its-own-service-life-cycle-tp28462815p28462815.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
