You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by christina <ch...@eurodyn.com> on 2014/02/20 09:13:05 UTC

Persistent JNDI names / aliases

I am creating a JNDI alias in Karaf using the jndi:alias command and have
noticed that this alias is not persistent between Karaf restarts. The same
is true when using the jndi:bind command to directly bind an OSGi service to
the JNDI context. I assume that this is because the underlying OSGi service
is un-registered and re-registered in the meantime, but I would expect to be
somehow able to bind OSGi services to the JNDI in a persistent way since
otherwise I can't really use the JNDI asmy service won't be there after
restarting Karaf. Am I perhaps missing something? Is there a way to create a
JNDI alias in a persistent way?



--
View this message in context: http://karaf.922171.n3.nabble.com/Persistent-JNDI-names-aliases-tp4031846.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Persistent JNDI names / aliases

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Christina,

The JNDI context is for now in-memory (using xbean-naming). It means 
that jndi:name/jndi:bind are not persistent when you restart.

I plan to implement a properties persistence adapter (AFAIR, I created a 
Jira assigned to me).

On the other hand, the JNDI names defined as OSGi service properties are 
persistent.

Regards
JB

On 02/20/2014 09:13 AM, christina wrote:
> I am creating a JNDI alias in Karaf using the jndi:alias command and have
> noticed that this alias is not persistent between Karaf restarts. The same
> is true when using the jndi:bind command to directly bind an OSGi service to
> the JNDI context. I assume that this is because the underlying OSGi service
> is un-registered and re-registered in the meantime, but I would expect to be
> somehow able to bind OSGi services to the JNDI in a persistent way since
> otherwise I can't really use the JNDI asmy service won't be there after
> restarting Karaf. Am I perhaps missing something? Is there a way to create a
> JNDI alias in a persistent way?
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/Persistent-JNDI-names-aliases-tp4031846.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com