User: d_jencks
Date: 01/11/10 13:38:03
Modified: src/main/org/jboss/mq/pm PersistenceManager.java
Added: src/main/org/jboss/mq/pm PersistenceManagerMBean.java
Log:
Changed mbean dependencies to work directly by mbean-references: eliminated depends
tag from *service.xml files
Revision Changes Path
1.4 +21 -11 jbossmq/src/main/org/jboss/mq/pm/PersistenceManager.java
Index: PersistenceManager.java
===================================================================
RCS file: /cvsroot/jboss/jbossmq/src/main/org/jboss/mq/pm/PersistenceManager.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- PersistenceManager.java 2001/10/28 01:27:00 1.3
+++ PersistenceManager.java 2001/11/10 21:38:03 1.4
@@ -14,9 +14,12 @@
import org.jboss.mq.ConnectionToken;
import org.jboss.mq.SpyDestination;
+import org.jboss.mq.server.JMSDestination;
+import org.jboss.mq.server.JMSServer;
import org.jboss.mq.SpyMessage;
import org.jboss.mq.xml.XElement;
import org.jboss.mq.server.MessageReference;
+import org.jboss.mq.server.MessageCache;
/**
* This class allows provides the base for user supplied persistence packages.
@@ -24,18 +27,19 @@
* @author Hiram Chirino ([EMAIL PROTECTED])
* @author Paul Kendall ([EMAIL PROTECTED])
* @created August 16, 2001
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
*/
public interface PersistenceManager {
+
+ public MessageCache getMessageCacheInstance();
-
/**
* Create and return a unique transaction id.
*
* @return Description of the Returned Value
* @exception javax.jms.JMSException Description of Exception
*/
- public abstract Tx createPersistentTx()
+ public Tx createPersistentTx()
throws javax.jms.JMSException;
/**
@@ -44,7 +48,7 @@
* @param txId Description of Parameter
* @exception javax.jms.JMSException Description of Exception
*/
- public abstract void commitPersistentTx( Tx txId )
+ public void commitPersistentTx( Tx txId )
throws javax.jms.JMSException;
/**
@@ -53,7 +57,7 @@
* @param txId Description of Parameter
* @exception javax.jms.JMSException Description of Exception
*/
- public abstract void rollbackPersistentTx( Tx txId )
+ public void rollbackPersistentTx( Tx txId )
throws javax.jms.JMSException;
@@ -68,7 +72,7 @@
* @param txId Description of Parameter
* @exception javax.jms.JMSException Description of Exception
*/
- public abstract void add( MessageReference message, Tx txId )
+ public void add( MessageReference message, Tx txId )
throws javax.jms.JMSException;
/**
@@ -77,7 +81,7 @@
* @param dest Description of Parameter
* @exception javax.jms.JMSException Description of Exception
*/
- public abstract void destroyQueue( SpyDestination dest )
+ public void destroyQueue( SpyDestination dest )
throws javax.jms.JMSException;
/**
@@ -86,7 +90,13 @@
* @param dest Description of Parameter
* @exception javax.jms.JMSException Description of Exception
*/
- public abstract void initQueue( SpyDestination dest )
+ //public abstract void initQueue( SpyDestination dest )
+ // throws javax.jms.JMSException;
+
+ //public void initQueue( JMSDestination dest )
+ //throws javax.jms.JMSException;
+
+ public void restoreQueue(JMSDestination jmsDest, SpyDestination dest)
throws javax.jms.JMSException;
/**
@@ -97,13 +107,13 @@
* @param txId Description of Parameter
* @exception javax.jms.JMSException Description of Exception
*/
- public abstract void remove( MessageReference message, Tx txId )
+ public void remove( MessageReference message, Tx txId )
throws javax.jms.JMSException;
/**
* @param server org.jboss.mq.server.JMSServer
* @exception javax.jms.JMSException The exception description.
*/
- void restore( org.jboss.mq.server.JMSServer server )
- throws javax.jms.JMSException;
+ //void restore( org.jboss.mq.server.JMSServer server )
+ //throws javax.jms.JMSException;
}
1.1 jbossmq/src/main/org/jboss/mq/pm/PersistenceManagerMBean.java
Index: PersistenceManagerMBean.java
===================================================================
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.mq.pm;
import javax.management.ObjectName;
/**
* PersistenceManagerMBean.java
*
*
* Created: Wed Nov 7 19:30:11 2001
*
* @author <a href="mailto:[EMAIL PROTECTED]">david jencks</a>
* @version
*/
public interface PersistenceManagerMBean
{
public final static String OBJECT_NAME = "JBOSSMQ:service=PersistenceManager";
//methods needed for JBossMQService to set up connections
//and to require the MessageCache.
PersistenceManager getInstance();
ObjectName getMessageCache();
void setMessageCache(ObjectName messageCache);
}// PersistenceManagerMBean
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development