Package org.jboss.jms.wireformat

Source Code of org.jboss.jms.wireformat.ConnectionStartRequest

/*    */ package org.jboss.jms.wireformat;
/*    */
/*    */ import java.io.DataInputStream;
/*    */ import java.io.DataOutputStream;
/*    */ import org.jboss.jms.delegate.ConnectionEndpoint;
/*    */
/*    */ public class ConnectionStartRequest extends RequestSupport
/*    */ {
/*    */   public ConnectionStartRequest()
/*    */   {
/*    */   }
/*    */
/*    */   public ConnectionStartRequest(String objectId, byte version)
/*    */   {
/* 50 */     super(objectId, 204, version);
/*    */   }
/*    */
/*    */   public void read(DataInputStream is) throws Exception
/*    */   {
/* 55 */     super.read(is);
/*    */   }
/*    */
/*    */   public ResponseSupport serverInvoke() throws Exception
/*    */   {
/* 60 */     ConnectionEndpoint endpoint = (ConnectionEndpoint)Dispatcher.instance.getTarget(this.objectId);
/*    */
/* 63 */     if (endpoint == null)
/*    */     {
/* 65 */       throw new IllegalStateException("Cannot find object in dispatcher with id " + this.objectId);
/*    */     }
/*    */
/* 68 */     endpoint.start();
/*    */
/* 70 */     return null;
/*    */   }
/*    */
/*    */   public void write(DataOutputStream os) throws Exception
/*    */   {
/* 75 */     super.write(os);
/*    */
/* 77 */     os.flush();
/*    */   }
/*    */ }

/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/jboss-embedded-all.jar
* Qualified Name:     org.jboss.jms.wireformat.ConnectionStartRequest
* JD-Core Version:    0.6.0
*/
TOP

Related Classes of org.jboss.jms.wireformat.ConnectionStartRequest

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.