detecting JPA usage in AS7 applications...
by Scott Marlow
Currently, we are injecting JPA related module dependencies into
applications that have valid persistence units in persistence.xml.
This is wrong I think. We probably only need to look for the presence
of @PersistenceUnit @PersistenceContext and same in deployment
descriptors (which we currently also do).
I don't want to inject the JPA dependencies just because there is
persistence unit definition (we can still parse it and have it available
for use).
This might help us deploy native Hibernate applications that don't use
EE JPA.
Scott
13 years, 3 months
How should META-INF/services be dealt with in modules?
by Scott Stark
So I have been looking at what the minimum is for a reasteasy based war
to work with an application/xml content type since the providers for
that are bundled in the as7 modules, but the providers are not getting
registered by default. The war does not include any of the resteasy jars
in its WEB-INF/lib as it looks like everything should already be
included in the as7 modules.
In order for this to work, I have to register all of the
javax.ws.rs.ext.Provider annotated classes from the
resteasy-jaxb-provider-2.1.0.GA.jar in my resteasy Application:
import javax.ws.rs.core.Application;
public class StatusApplication extends Application {
@Override
public Set<Class<?>> getClasses() {
Class<?>[] classes = {
org.jboss.resteasy.plugins.providers.jaxb.JAXBXmlSeeAlsoProvider.class,
org.jboss.resteasy.plugins.providers.jaxb.JAXBXmlRootElementProvider.class,
org.jboss.resteasy.plugins.providers.jaxb.JAXBElementProvider.class,
org.jboss.resteasy.plugins.providers.jaxb.JAXBXmlTypeProvider.class,
org.jboss.resteasy.plugins.providers.jaxb.CollectionProvider.class,
org.jboss.resteasy.plugins.providers.jaxb.MapProvider.class,
org.jboss.resteasy.plugins.providers.jaxb.XmlJAXBContextFinder.class
};
for(Class<?> c : classes)
providers.add(c);
return providers;
}
Normally resteasy is expecting that it can locate these via the jar
META-INF/services/javax.ws.rs.ext.Providers mechanism, but when the
resteasy framework does the following call while processing the application:
Enumeration<URL> en =
Thread.currentThread().getContextClassLoader().getResources("META-INF/services/"
+ Providers.class.getName());
all it sees is the
resteasy-jaxrs-2.1.0.GA.jar/META-INF/services/javax.ws.rs.ext.Providers
resources. It looks like many of the other resteasy provider modules
would not be loaded simply because they are purely extension modules
with implementations.
What is the correct way to integrate a collection of services using the
META-INF/services mechanism?
13 years, 4 months
Help adding a native Hibernate 3.x unit test
by Scott Marlow
Hi,
I'd like to hack together a unit test that packages a 3.6.x version of
Hibernate and references a class that only lives in 3.6.x (not in
Hibernate 4.0).
Is there anything built directly into Arquillian for obtaining a test
jar from an external repo? I assume not but wanted to ask anyway. :)
Just looking for the simplest way to handle this test.
Thanks,
Scott
13 years, 5 months
Recent profile changes
by Heiko Braun
The recently introduced split into "ha", "default" and "web-base" profiles,
excludes a lot of the subsystems (messaging, ws, etc)
Would it make sense to introduce a full blown "all" profile,
that provides all capabilities out of the box?
If not been used it would at least act as a configuration preset for people
that would like to include one of it's subsystems in a profile subset
(i.e. adding ”messaging" to profile "web-base").
Currently it looks like we ship an app server w/o these functionalities.
This is at least what the average user will perceive, IMO.
Ike
13 years, 5 months
7.0.0.CR1 "White Rabbit" is Released
by Jason T. Greene
I am happy to announce the candidate release for AS7!
In this release we closed a whopping 350 issues and made several notable
changes including
- More spec coverage!
- Clustering (Infinispan + HTTP Session Replication)
- CLI, Console, and management improvements
- Switched to EE Web Profile + JCA + JAX-RS/Resteasy + OSGi as default
config
+ JMS + WS are available in the "preview" profile
+ Each also has an HA profile with clustering
We would appreciate you taking it for a spin, and reporting any issues
you run into.
Before we hit final we are going to be putting energy towards adding
documentation (contributions welcome!). You can see an early starting
point here:
https://docs.jboss.org/author/display/AS7/Documentation
Thanks!
--
Jason T. Greene
JBoss, a division of Red Hat
13 years, 6 months
Please vote for SUREFIRE-750
by Rostislav Svoboda
Hi.
Please vote for changes in maven surefire plugin - http://jira.codehaus.org/browse/SUREFIRE-750
It's necessary change to differentiate xml report files because we need to run the same tests against AS7 with different configurations (for example cluster tests on UDP vs. on TCP). This change is needed for EAP6 testsuite.
--
Rostislav Svoboda
JBoss QA, Brno
Red Hat Czech s.r.o.
Purkynova 99, 612 45, Brno
Czech Republic
13 years, 6 months