users@glassfish.java.net

Redeployment with embedded resources

From: <forums_at_java.net>
Date: Thu, 15 Nov 2012 12:50:32 -0600 (CST)

Our project needs application scope resources such as datasource. But
datasource could be changed e.g. connection pool settings, after that we need
to be able to hold these settings even after redeployment of the application.
But since we have embedded datasource we lose our changes after redeployment.
We managed to solve this problem on WebLogic using deployment plans. We save
setting to file and use it during re-deployment with deployment plan option,
but we can't find deployment plan analog in GlassFish. The only thing we
found is preserveAppScopedResources, it preserves already created datasources
but after we redeploy application we need to restart GF since we are getting
JNDI context exception NamingException. Dear community, has anybody solve
such problems with redeployment of the applications with embedded resources?
How can we manage NamingException without GF restart ? Maybe there is some
other approach to redeploy application with embedded resources than
preserveAppScopedResources=true GF 3.1.2.2 (build 4)

--
[Message sent by forum member 'enspam']
View Post: http://forums.java.net/node/892360