From 3ecb6b1a03c01a9a5d57be785e1aefebdf3cdb27 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Thu, 21 Jul 2011 09:51:34 +0000 Subject: [PATCH] refined JBoss 6.0 note --- .../classloading/jboss/JBossLoadTimeWeaver.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/org.springframework.context/src/main/java/org/springframework/instrument/classloading/jboss/JBossLoadTimeWeaver.java b/org.springframework.context/src/main/java/org/springframework/instrument/classloading/jboss/JBossLoadTimeWeaver.java index b5f5e16016..6a70a14470 100644 --- a/org.springframework.context/src/main/java/org/springframework/instrument/classloading/jboss/JBossLoadTimeWeaver.java +++ b/org.springframework.context/src/main/java/org/springframework/instrument/classloading/jboss/JBossLoadTimeWeaver.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2009 the original author or authors. + * Copyright 2002-2011 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -25,10 +25,14 @@ import org.springframework.util.ClassUtils; /** * {@link LoadTimeWeaver} implementation for JBoss's instrumentable ClassLoader. + * Supports JBoss AS 5 and 6. * - *

NOTE: Requires JBoss AS version 5.0.0 or higher. - * - *

Thanks to Ales Justin and Marius Bogoevici for the initial prototype.

+ *

NOTE: On JBoss 6.0, to avoid the container loading the classes before the + * application actually starts, one needs to add a WEB-INF/jboss-scanning.xml + * file to the application archive - with the following content: + *

<scanning xmlns="urn:jboss:scanning:1.0"/>
+ * + *

Thanks to Ales Justin and Marius Bogoevici for the initial prototype. * * @author Costin Leau * @since 3.0 @@ -70,4 +74,5 @@ public class JBossLoadTimeWeaver implements LoadTimeWeaver { public ClassLoader getThrowawayClassLoader() { return new SimpleThrowawayClassLoader(getInstrumentableClassLoader()); } -} \ No newline at end of file + +}