[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [equinox-dev] JNDI and OSGI
- From: Erik Bengtson <erik@xxxxxxxx>
- Date: Mon, 29 Jan 2007 10:17:14 -0800
- Delivered-to: email@example.com
- User-agent: Internet Messaging Program (IMP) 3.2.3
> >> I have a question regarding using JNDI (e.g. to look-up DataSources)
> >> and running equinox via a the servletbridge. I hope this is the right
> >> place to post it (if not my apologies, and please tell me where should
> >> ask).
> >> My question is simple. Is it possible to directly access JNDI resource
> >> from a bundle. I'm trying to access a DataSource defined in JBoss and I
> >> get a javax.naming.CommunicationException (with a nested timeout
> >> exception) .
A simple new InitialContext() should work. The cause, I would not search in