Archive

Posts Tagged ‘Glassfish’

Application-scoped resources in GlassFish 3.1 (Milestone 4)

September 6th, 2010 devylon No comments

Glassfish 3.1 M4 has a new feature to bundle resources into JEE applications. This is pretty neat to have data-sources or custom JNDI resources defined local to the application scope.

Alexis MP created a short screen-cast to demonstrate the new function:

Original blog post on: http://blogs.sun.com/theaquarium/entry/new_screencast_application_scoped_resources

Categories: development Tags:

Redeploying Atmosphere on Glassfish v3.x

September 6th, 2010 devylon 2 comments

It took me half a day to figure out, why redeploying a Atmosphere war bundle always fails with a stacktrace. Atmosphere packages, e.g. the jersey into the war archive. This behavior could be changed by setting a JVM environment variable in Glassfish.

In the GF admin console, going to:

Configuration->JVM Settings

switch to the JVM Options tab and add this option:

-Dcom.sun.enterprise.overrideablejavaxpackages
=javax.ws.rs,javax.ws.rs.core,javax.ws.rs.ext
Categories: development Tags: ,