User: d_jencks
Date: 01/11/11 22:52:16
Modified: src/main/org/jboss/jms/asf ServerSessionPoolLoader.java
Log:
Changes to move toward eliminating init and destroy from Service interface, and make
J2eeDeployer use mbean-refs. (2nd try at committing - is cvs acting weird?
Revision Changes Path
1.5 +6 -17 jboss/src/main/org/jboss/jms/asf/ServerSessionPoolLoader.java
Index: ServerSessionPoolLoader.java
===================================================================
RCS file:
/cvsroot/jboss/jboss/src/main/org/jboss/jms/asf/ServerSessionPoolLoader.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ServerSessionPoolLoader.java 2001/08/30 03:10:54 1.4
+++ ServerSessionPoolLoader.java 2001/11/12 06:52:16 1.5
@@ -38,7 +38,7 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Peter Antman</a>.
* @author <a href="mailto:[EMAIL PROTECTED]">Jason Dillon</a>
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
public class ServerSessionPoolLoader
extends ServiceMBeanSupport
@@ -121,22 +121,6 @@
return name;
}
- /**
- * Initialize the service.
- *
- * <p>Setup the pool factory.
- *
- * @throws ClassNotFoundException Could not find pool factory class.
- * @throws Exception Failed to create pool factory instance.
- */
- protected void initService() throws Exception
- {
- Class cls = Class.forName(poolFactoryClass);
- poolFactory = (ServerSessionPoolFactory)cls.newInstance();
- poolFactory.setName(name);
-
- log.debug("initalized with pool factory: " + poolFactory);
- }
/**
* Start the service.
@@ -147,6 +131,11 @@
*/
protected void startService() throws Exception
{
+ Class cls = Class.forName(poolFactoryClass);
+ poolFactory = (ServerSessionPoolFactory)cls.newInstance();
+ poolFactory.setName(name);
+
+ log.debug("initialized with pool factory: " + poolFactory);
InitialContext ctx = new InitialContext();
String name = poolFactory.getName();
String jndiname = "java:/" + name;
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development