Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * $Id: DefaultMuleConnectionFactory.java 19191 2010-08-25 21:05:23Z tcarlson $
   * --------------------------------------------------------------------------------------
   * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
   *
   * The software in this package is published under the terms of the CPAL v1.0
   * license, a copy of which has been included with this distribution in the
   * LICENSE.txt file.
   */
 
 package org.mule.module.jca;
 
 
 import  javax.resource.ResourceException;
 import  javax.resource.spi.ConnectionManager;
 
DefaultMuleConnectionFactory an implementation of the MuleconnectionFactory interface used by clients of this ResourceAdapter to obtain a connection to Mule resources.
 
 {
    
Serial version
 
     private static final long serialVersionUID = 1552386015565975623L;

    
logger used by this class
 
     protected transient Log logger = LogFactory.getLog(this.getClass());
 
     private transient ConnectionManager manager;
     private transient MuleManagedConnectionFactory factory;
     private Reference reference;
     private MuleConnectionRequestInfo info;
 
                                         ConnectionManager manager,
                                         MuleConnectionRequestInfo info)
     {
         this. = factory;
         this. = manager;
         this. = info;
     }
 
     private void readObject(ObjectInputStream oisthrows ClassNotFoundExceptionIOException
     {
         ois.defaultReadObject();
         // TODO this is incomplete:
         // MuleManagedConnectionFactory is Serializable but marked transient?!
         this. = LogFactory.getLog(this.getClass());
     }
 
     public MuleConnection createConnection() throws ResourceException
     {
         return createConnection();
     }
 
     public MuleConnection createConnection(MuleConnectionRequestInfo infothrows ResourceException
     {
         // TODO try {
         return (MuleConnection).allocateConnection(info);
         // }
         // catch (ResourceException e) {
         //            
         // logger.warn("Connection could not be created: " + e.getMessage(), e);
         // throw new DefaultMuleException(e.getMessage());
         // }
     }
 
     public ConnectionManager getManager()
     {
         return ;
     }
 
     public void setManager(ConnectionManager manager)
     {
         this. = manager;
     }
 
     {
         return ;
     }
 
     public void setFactory(MuleManagedConnectionFactory factory)
     {
         this. = factory;
     }
 
     public Reference getReference()
    {
        return ;
    }
    public void setReference(Reference reference)
    {
        this. = reference;
    }
    {
        return ;
    }
    public void setInfo(MuleConnectionRequestInfo info)
    {
        this. = info;
    }
New to GrepCode? Check out our FAQ X