User: kimptonc
Date: 01/02/12 10:31:13
Modified: src/main/org/jboss/ejb/plugins/jaws/jdbc
JDBCFindEntitiesCommand.java
Log:
changed to use container clas sloader to load beans and hence the custom finder
Revision Changes Path
1.8 +5 -2
jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCFindEntitiesCommand.java
Index: JDBCFindEntitiesCommand.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/ejb/plugins/jaws/jdbc/JDBCFindEntitiesCommand.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- JDBCFindEntitiesCommand.java 2001/01/02 22:43:48 1.7
+++ JDBCFindEntitiesCommand.java 2001/02/12 18:31:13 1.8
@@ -32,7 +32,7 @@
* @author <a href="mailto:[EMAIL PROTECTED]">Marc Fleury</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Joe Shevland</a>
* @author <a href="mailto:[EMAIL PROTECTED]">Justin Forder</a>
- * @version $Revision: 1.7 $
+ * @version $Revision: 1.8 $
*/
public class JDBCFindEntitiesCommand implements JPMFindEntitiesCommand
{
@@ -51,7 +51,10 @@
// defined and automatic finders.
Class ejbClass = null;
try {
- ejbClass =
Class.forName(factory.getMetaData().getEntity().getEjbClass());
+ ejbClass =
+ factory.getContainer()
+ .getClassLoader()
+ .loadClass(factory.getMetaData().getEntity().getEjbClass());
Method[] customMethods = ejbClass.getMethods();