All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.objectweb.jonas.jaxr.scout.JConnectionFactory Maven / Gradle / Ivy

The newest version!
/**
 * JOnAS : Java(TM) OpenSource Application Server
 * Copyright (C) 2005 Bull S.A.
 * Contact: [email protected]
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
 * USA
 *
 * --------------------------------------------------------------------------
 * $Id: JConnectionFactory.java 7251 2005-08-17 13:13:45Z sauthieg $
 * --------------------------------------------------------------------------
 */
package org.objectweb.jonas.jaxr.scout;

import javax.naming.NamingException;
import javax.naming.Reference;
import javax.resource.Referenceable;
import org.apache.ws.scout.registry.ConnectionFactoryImpl;

/**
 * JConnectionFactory is an extension of Scout ConnectionFactoryImpl.
 * It's used to store the Naming Reference used by the resource service to recreate the
 * ConnectionFactory instance.
 *
 * @author Guillaume Sauthier
 */
public class JConnectionFactory extends ConnectionFactoryImpl implements Referenceable {

    /**
     * UID
     */
    private static final long serialVersionUID = 3257569490513573686L;

    /**
     * stored Reference
     */
    private Reference ref = null;

    /**
     * @see javax.naming.Referenceable#getReference()
     */
    public Reference getReference() throws NamingException {
        return ref;
    }

    /**
     * @see javax.resource.Referenceable#setReference(javax.naming.Reference)
     */
    public void setReference(Reference ref) {
        this.ref = ref;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy