[ApacheDS] Getting a JNDI handle over a CoreSession instance

View: New views
3 Messages — Rating Filter:   Alert me  

[ApacheDS] Getting a JNDI handle over a CoreSession instance

by Ersin Er-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

Is it possible to get a JNDI handle via a CoreSession instance?

(If we cannot do that I don't know how we can let people write SPs without dealing with internal server constructs.)

Thanks.

--
Ersin ER

Re: [ApacheDS] Getting a JNDI handle over a CoreSession instance

by Emmanuel Lecharny :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

core-jndi.


On Fri, Jun 19, 2009 at 2:46 PM, Ersin ER <ersin.er@gmail.com> wrote:
Hello,

Is it possible to get a JNDI handle via a CoreSession instance?

(If we cannot do that I don't know how we can let people write SPs without dealing with internal server constructs.)

Thanks.

--
Ersin ER



--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com

Re: [ApacheDS] Getting a JNDI handle over a CoreSession instance

by Stefan Seelmann-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Ersin,

> Is it possible to get a JNDI handle via a CoreSession instance?

yes, you could use
org.apache.directory.server.core.jndi.CoreContextFactory as
INITIAL_CONTEXT_FACTORY, see [1].

Kind Regards,
Stefan


[1]
http://svn.apache.org/viewvc/directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/AbstractContextFactory.java?view=co