dev@glassfish.java.net

JNDI Timing/OSGi bundle

From: Robert Weeks <RWeeks_at_ext-inc.com>
Date: Wed, 6 Apr 2011 13:15:18 -0700

Hello -

We are using OSGi bundles which are referencing some jms resources that were defined in the initial setup of GlassFish (3.1).

In 3.0.1 - when a restart of the domain took place, there was no issue with the lookup within the bundle, but it seems that in 3.1 - there is intermittent possibility of the lookup not being able to be found when the bundle is started - resulting in an exception being thrown.

If I do a simple refresh of the bundle id (in the gogo shell), it finds it OK. So it seems there is a timing issue now on when the custom lookups are available.

Has something changed with the jndi tree registering with 3.1 that would make this not be seen in time? This is worrisome because we need to make sure that the resources are available to us when the app is launched/re-launched.

Thanks for any information.



Robert Weeks
Senior Software Developer
EXTENSION, INC.
Email: rweeks_at_ext-inc.com
Office: 260-797-0200 x4228
General: 877-207-3753
www.OpenTheRedBox.com

Download the FREE EXTENSION Mobile App for iPhone and iPod Touch
http://www.opentheredbox.com/iPhone_appDemo.php

Email us at demo_at_ext-inc.com <mailto:demo_at_ext-inc.com> to pre-schedule a LIVE demo for our HealthAlert for Nurses solution at the AONE Conference in San Diego. Visit us at booth #118