i am using the Persistent COS Naming service for binding objects in Java IDL .
By the feature of Persistent Naming service ,
even after you restart either Server application or
orbd
your Naming graph is intact on naming service so client can still access the object and its operations (methods) I referred this COS Naming
So my question is the state of the object is stored in naming sevice or object reference itself ?
Neither. It is up to you to persist your object. The thing in the Naming Service is only a reference.