hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stanczak Group <>
Subject Access JNDI from Hivemind?
Date Sat, 06 Jan 2007 03:52:00 GMT
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