Package org.jboss.as.naming

Examples of org.jboss.as.naming.NamingStore.rebind()


        store = new InMemoryNamingStore();

        try {
            final Reference globalReference = GlobalNamespaceObjectFactory.createReference(name, (Context) store.lookup(new CompositeName()));
            final NamingStore javaContext =  this.javaContext.getValue();
            javaContext.rebind(null, NameParser.INSTANCE.parse(name), globalReference, Reference.class.getName());
        } catch (NamingException e) {
            throw new StartException("Failed to bind EE context: java:" + name, e);
        }
    }
View Full Code Here


    public synchronized void start(StartContext startContext) throws StartException {
        final Reference appReference = NamespaceObjectFactory.createReference(name);
        final NamingStore javaContext = this.javaContext.getValue();
        try {
            javaContext.rebind(null, NameParser.INSTANCE.parse(name), appReference, Reference.class.getName());
        } catch (NamingException e) {
            throw new StartException("Failed to bind EE context: java:" + name, e);
        }
    }
View Full Code Here

        store = new InMemoryNamingStore();

        try {
            final Reference globalReference = GlobalNamespaceObjectFactory.createReference(name, (Context) store.lookup(new CompositeName()));
            final NamingStore javaContext =  this.javaContext.getValue();
            javaContext.rebind(NameParser.INSTANCE.parse(name), globalReference, Reference.class);
        } catch (NamingException e) {
            throw new StartException("Failed to bind EE context: java:" + name, e);
        }
    }
View Full Code Here

    public synchronized void start(StartContext startContext) throws StartException {
        final Reference appReference = NamespaceObjectFactory.createReference(name);
        final NamingStore javaContext = this.javaContext.getValue();
        try {
            javaContext.rebind(NameParser.INSTANCE.parse(name), appReference, Reference.class);
        } catch (NamingException e) {
            throw new StartException("Failed to bind EE context: java:" + name, e);
        }
    }
View Full Code Here

        store = new InMemoryNamingStore();

        try {
            final Reference globalReference = GlobalNamespaceObjectFactory.createReference(name, (Context) store.lookup(new CompositeName()));
            final NamingStore javaContext =  this.javaContext.getValue();
            javaContext.rebind(NameParser.INSTANCE.parse(name), globalReference, Reference.class);
        } catch (NamingException e) {
            throw new StartException("Failed to bind EE context: java:" + name, e);
        }
    }
View Full Code Here

    public synchronized void start(StartContext startContext) throws StartException {
        final Reference appReference = NamespaceObjectFactory.createReference(name);
        final NamingStore javaContext = this.javaContext.getValue();
        try {
            javaContext.rebind(NameParser.INSTANCE.parse(name), appReference, Reference.class);
        } catch (NamingException e) {
            throw new StartException("Failed to bind EE context: java:" + name, e);
        }
    }
View Full Code Here

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.