i have apps.. 1st apps having ejb services which i am using it into the 2nd apps. how do i calling my ejb services: in apps2 i have property file where i have defined the ejb reference and related jndi name (which points to app1). now my problem is when ever i will restart my app1, aap2 will keep the garbage collected instance of ebj and thats why it is failing so, each time i also need to restart my app2 as well. is there any solution where i can avoid such thing ?