Not directly.  The only ways to plug into the JNDI tree are:
  * bind entries directly into the default context which is writable
  * register a  javax.naming.spi.InitialContextFactoryBuilder object
in OSGi that will replace the default one

I would suggest to use the first way by creating a spring BeanFactory
that takes a map in a property and bind all entries in the map into
the JNDI tree in its afterPropertiesSet() method.

On Mon, Mar 30, 2009 at 17:37, cmoulliard <[email protected]> wrote:
>
> Can we use org.apache.xbean.spring.jndi.DefaultContext
> (http://servicemix.apache.org/jndi-configuration.html) for that ?
>
>
> gnodet wrote:
>>
>> The default context is writable so you should be able to bind any
>> entry you want.
>> Unfortunately, spring won't help here, as it does not provide any
>> support for binding objects to the jndi tree, so you'll have to write
>> a bean factory yourself i think.
>>
>> On Mon, Mar 30, 2009 at 17:10, cmoulliard <[email protected]> wrote:
>>>
>>> Hi,
>>>
>>> The following page explains that we can retrieve using lokkup command
>>> (osgi:service) from the JNDI context created using the nmr naming bundle.
>>>
>>> http://servicemix.apache.org/SMX4NMR/7-jndi-integration.html
>>>
>>> My question is simple : How can I publish an entry in the context like by
>>> example java:comp/UserTransaction ?
>>>
>>> Regards,
>>>
>>>
>>>
>>> -----
>>> Charles Moulliard
>>> SOA Architect
>>>
>>> My Blog :  http://cmoulliard.blogspot.com/
>>> http://cmoulliard.blogspot.com/
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Can-we-publish-a-reference-in-the-JNDI-context-%28SMX-NMR%29---tp22785420p22785420.html
>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>>
>> --
>> Cheers,
>> Guillaume Nodet
>> ------------------------
>> Blog: http://gnodet.blogspot.com/
>> ------------------------
>> Open Source SOA
>> http://fusesource.com
>>
>>
>
>
> -----
> Charles Moulliard
> SOA Architect
>
> My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/
> --
> View this message in context: 
> http://www.nabble.com/Can-we-publish-a-reference-in-the-JNDI-context-%28SMX-NMR%29---tp22785420p22785989.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Reply via email to