User: chirino
Date: 01/11/11 21:32:00
Modified: src/main/org/jboss/mq/il/ha HAServerIL.java
HAServerILService.java
Log:
Fixed the mq HA IL. I was improperly cloning the serverIL. Added the
UnmarshalException to the list of exceptions that the HARMIClient proxy object
considers as a target failure.
Revision Changes Path
1.2 +33 -7 jbossmx/src/main/org/jboss/mq/il/ha/HAServerIL.java
Index: HAServerIL.java
===================================================================
RCS file: /cvsroot/jboss/jbossmx/src/main/org/jboss/mq/il/ha/HAServerIL.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- HAServerIL.java 2001/11/09 06:26:36 1.1
+++ HAServerIL.java 2001/11/12 05:32:00 1.2
@@ -8,19 +8,45 @@
import org.jboss.mq.server.JMSServer;
import org.jboss.mq.il.rmi.RMIServerIL;
+import org.jboss.mq.il.ServerIL;
/**
* The HA implementation of the ServerIL object
*
* @author Hiram Chirino ([EMAIL PROTECTED])
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
-public class HAServerIL extends RMIServerIL
-{
+public class HAServerIL extends RMIServerIL {
+ ServerIL haServerILProxy;
- public HAServerIL(JMSServer s)
- throws java.rmi.RemoteException
- {
+ public HAServerIL(JMSServer s) throws java.rmi.RemoteException {
super(s);
+ }
+
+ /**
+ * Gets the haServerILProxy
+ * @return Returns a ServerIL
+ */
+ public ServerIL getHaServerILProxy() {
+ return haServerILProxy;
+ }
+ /**
+ * Sets the haServerILProxy
+ * @param haServerILProxy The haServerILProxy to set
+ */
+ public void setHaServerILProxy(ServerIL haServerILProxy) {
+ this.haServerILProxy = haServerILProxy;
+ }
+
+ /**
+ * No need to clone because there are no instance variables tha can get
+ * clobbered. All Multiple connections can share the same JVMServerIL object
+ * We don't return ourself but the HA proxy.
+ *
+ * @return Description of the Returned Value
+ */
+ public ServerIL cloneServerIL()
+ {
+ return haServerILProxy;
}
-}
+}
\ No newline at end of file
1.4 +5 -4 jbossmx/src/main/org/jboss/mq/il/ha/HAServerILService.java
Index: HAServerILService.java
===================================================================
RCS file: /cvsroot/jboss/jbossmx/src/main/org/jboss/mq/il/ha/HAServerILService.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- HAServerILService.java 2001/11/12 03:16:29 1.3
+++ HAServerILService.java 2001/11/12 05:32:00 1.4
@@ -26,7 +26,7 @@
* object to make the object HA via the jboss cluster.
*
* @author Hiram Chirino ([EMAIL PROTECTED])
- * @version $Revision: 1.3 $
+ * @version $Revision: 1.4 $
*/
public class HAServerILService extends org.jboss.mq.il.ServerILJMXService
implements HAServerILServiceMBean {
@@ -92,10 +92,11 @@
partition = (HAPartition) new InitialContext().lookup("/HAPartition/" +
partitionName);
harmi = new HARMIServerImpl(partition, getConnectionFactoryJNDIRef(),
ServerIL.class, serverIL);
serverILProxy = (ServerIL) harmi.createHAStub((LoadBalancePolicy)
loadBalancePolicyClass.newInstance());
-
- log.debug("serverILProxy class=" + serverILProxy);
+ serverIL.setHaServerILProxy(serverILProxy);
+
bindJNDIReferences();
-
+
+ log.debug("HAServerILProxy=" + serverILProxy);
}
/**
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development