Skip to content

Commit 3ecb6b1

Browse files
committed
refined JBoss 6.0 note
1 parent 6b92f66 commit 3ecb6b1

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

org.springframework.context/src/main/java/org/springframework/instrument/classloading/jboss/JBossLoadTimeWeaver.java

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2009 the original author or authors.
2+
* Copyright 2002-2011 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -25,10 +25,14 @@
2525

2626
/**
2727
* {@link LoadTimeWeaver} implementation for JBoss's instrumentable ClassLoader.
28+
* Supports JBoss AS 5 and 6.
2829
*
29-
* <p><b>NOTE:</b> Requires JBoss AS version 5.0.0 or higher.
30-
*
31-
* <p>Thanks to Ales Justin and Marius Bogoevici for the initial prototype.</p>
30+
* <p><b>NOTE:</b> On JBoss 6.0, to avoid the container loading the classes before the
31+
* application actually starts, one needs to add a <tt>WEB-INF/jboss-scanning.xml</tt>
32+
* file to the application archive - with the following content:
33+
* <pre>&lt;scanning xmlns="urn:jboss:scanning:1.0"/&gt;</pre>
34+
*
35+
* <p>Thanks to Ales Justin and Marius Bogoevici for the initial prototype.
3236
*
3337
* @author Costin Leau
3438
* @since 3.0
@@ -70,4 +74,5 @@ public ClassLoader getInstrumentableClassLoader() {
7074
public ClassLoader getThrowawayClassLoader() {
7175
return new SimpleThrowawayClassLoader(getInstrumentableClassLoader());
7276
}
73-
}
77+
78+
}

0 commit comments

Comments
 (0)