hivemind-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stanczak Group <jus...@stanczakgroup.com>
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
812-735-3600

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


Mime
View raw message