This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have three webapps app1, app2 and app3 using tomcat. app1 and app2 are web apps. app3 simply host singleton class which will be accessed by app1 and app2.
I am planning to use to `JNDI` lookup the singleton instance from app1 and app2. but i am not getting how to bind the singleton instance
with initial context on app3 and make it available to lookup from app1 and app2. Do i need to host the singleton instance as jmx service
first and then lookup? Sorry folks i am new to jndi and jmx service.But this is summary i get from lot of sites and blogs on net.
Just wanted to know how to host the singleton object as jmx service on app3?