Package org.apache.openejb.client

Examples of org.apache.openejb.client.RemoteInitialContextFactory


/**
* @version $Rev: 607077 $ $Date: 2007-12-27 08:55:23 -0600 (Thu, 27 Dec 2007) $
*/
public class javaURLContextFactory implements ObjectFactory {
    public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception {
        RemoteInitialContextFactory context = new RemoteInitialContextFactory();

        String serverUri = System.getProperty("openejb.server.uri");
        String moduleId = System.getProperty("openejb.client.moduleId");

        Properties props = new Properties();
        props.setProperty(Context.PROVIDER_URL, serverUri);
        props.setProperty("openejb.client.moduleId", moduleId);

        return context.getInitialContext(props);
    }
View Full Code Here


/**
* @version $Rev$ $Date$
*/
public class javaURLContextFactory implements ObjectFactory {
    public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception {
        RemoteInitialContextFactory context = new RemoteInitialContextFactory();

        String serverUri = System.getProperty("openejb.server.uri");
        String moduleId = System.getProperty("openejb.client.moduleId");

        Properties props = new Properties();
        props.setProperty(Context.PROVIDER_URL, serverUri);
        props.setProperty("openejb.client.moduleId", moduleId);

        return context.getInitialContext(props);
    }
View Full Code Here

/**
* @version $Rev: 607077 $ $Date: 2007-12-27 14:55:23 +0000 (Thu, 27 Dec 2007) $
*/
public class javaURLContextFactory implements ObjectFactory {
    public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception {
        RemoteInitialContextFactory context = new RemoteInitialContextFactory();

        String serverUri = System.getProperty("openejb.server.uri");
        String moduleId = System.getProperty("openejb.client.moduleId");

        Properties props = new Properties();
        props.setProperty(Context.PROVIDER_URL, serverUri);
        props.setProperty("openejb.client.moduleId", moduleId);

        return context.getInitialContext(props);
    }
View Full Code Here

*/
public class javaURLContextFactory implements ObjectFactory {

    @Override
    public Object getObjectInstance(final Object obj, final Name name, final Context nameCtx, final Hashtable<?, ?> environment) throws Exception {
        final RemoteInitialContextFactory context = new RemoteInitialContextFactory();

        final String serverUri = System.getProperty("openejb.server.uri");
        final String moduleId = System.getProperty("openejb.client.moduleId");

        final Properties props = new Properties();
        props.setProperty(Context.PROVIDER_URL, serverUri);
        props.setProperty("openejb.client.moduleId", moduleId);

        return context.getInitialContext(props);
    }
View Full Code Here

/**
* @version $Rev: 607077 $ $Date: 2007-12-27 06:55:23 -0800 (Thu, 27 Dec 2007) $
*/
public class javaURLContextFactory implements ObjectFactory {
    public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception {
        RemoteInitialContextFactory context = new RemoteInitialContextFactory();

        String serverUri = System.getProperty("openejb.server.uri");
        String moduleId = System.getProperty("openejb.client.moduleId");

        Properties props = new Properties();
        props.setProperty(Context.PROVIDER_URL, serverUri);
        props.setProperty("openejb.client.moduleId", moduleId);

        return context.getInitialContext(props);
    }
View Full Code Here

*/
public class javaURLContextFactory implements ObjectFactory {

    @Override
    public Object getObjectInstance(final Object obj, final Name name, final Context nameCtx, final Hashtable<?, ?> environment) throws Exception {
        final RemoteInitialContextFactory context = new RemoteInitialContextFactory();

        final String serverUri = System.getProperty("openejb.server.uri");
        final String moduleId = System.getProperty("openejb.client.moduleId");

        final Properties props = new Properties();
        props.setProperty(Context.PROVIDER_URL, serverUri);
        props.setProperty("openejb.client.moduleId", moduleId);

        return context.getInitialContext(props);
    }
View Full Code Here

*/
public class javaURLContextFactory implements ObjectFactory {

    @Override
    public Object getObjectInstance(final Object obj, final Name name, final Context nameCtx, final Hashtable<?, ?> environment) throws Exception {
        final RemoteInitialContextFactory context = new RemoteInitialContextFactory();

        final String serverUri = System.getProperty("openejb.server.uri");
        final String moduleId = System.getProperty("openejb.client.moduleId");

        final Properties props = new Properties();
        props.setProperty(Context.PROVIDER_URL, serverUri);
        props.setProperty("openejb.client.moduleId", moduleId);

        return context.getInitialContext(props);
    }
View Full Code Here

*/
public class javaURLContextFactory implements ObjectFactory {

    @Override
    public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception {
        RemoteInitialContextFactory context = new RemoteInitialContextFactory();

        String serverUri = System.getProperty("openejb.server.uri");
        String moduleId = System.getProperty("openejb.client.moduleId");

        Properties props = new Properties();
        props.setProperty(Context.PROVIDER_URL, serverUri);
        props.setProperty("openejb.client.moduleId", moduleId);

        return context.getInitialContext(props);
    }
View Full Code Here

/**
* @version $Rev: 607077 $ $Date: 2007-12-27 15:55:23 +0100 (Jeu, 27 déc 2007) $
*/
public class javaURLContextFactory implements ObjectFactory {
    public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception {
        RemoteInitialContextFactory context = new RemoteInitialContextFactory();

        String serverUri = System.getProperty("openejb.server.uri");
        String moduleId = System.getProperty("openejb.client.moduleId");

        Properties props = new Properties();
        props.setProperty(Context.PROVIDER_URL, serverUri);
        props.setProperty("openejb.client.moduleId", moduleId);

        return context.getInitialContext(props);
    }
View Full Code Here

TOP

Related Classes of org.apache.openejb.client.RemoteInitialContextFactory

Copyright © 2018 www.massapicom. 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.