hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stanczak Group <>
Subject Re: Access JNDI from Hivemind?
Date Sat, 06 Jan 2007 04:24:36 GMT
Looks like I need to be using hivemind.lib.NameLookup with a custom 
service instead. I'll do that, if someone knows a better way then let me 
know. thanks.

Stanczak Group wrote:
> How do I access JNDI from Hivemind? I've looked and tried what the 
> docs say, but no luck. I'm accessing a Jackrabbit repository using 
> this for normal code outside Hivemind.
> InitialContext context = new InitialContext();
> Context environment = (Context) context.lookup("java:comp/env");
> Repository jrRepository = (Repository) 
> environment.lookup("jcr/repository");
> I've tried several thinks with no luck, anyone know or have example to 
> do this?

Justin Stanczak
Stanczak Group

"All that is necessary for the triumph of evil is that good men do nothing."
Edmund Burke

View raw message