Package ch.qos.logback.core.db

Examples of ch.qos.logback.core.db.JNDIConnectionSource


    private void chooseDelegate() {
        if (delegate != null) {
            return;
        }

        JNDIConnectionSource jndiCS = new JNDIConnectionSource();
        jndiCS.setJndiLocation(jndiLocation);
        try {
            Context ctx = new InitialContext();
            Object obj = ctx.lookup(jndiCS.getJndiLocation());

            PortableRemoteObject.narrow(obj, DataSource.class);

            delegate = jndiCS;
            addInfo("DataSource obtained from " + jndiLocation);
View Full Code Here


    private void chooseDelegate() {
        if (delegate != null) {
            return;
        }

        JNDIConnectionSource jndiCS = new JNDIConnectionSource();
        jndiCS.setJndiLocation(jndiLocation);
        try {
            Context ctx = new InitialContext();
            Object obj = ctx.lookup(jndiCS.getJndiLocation());

            PortableRemoteObject.narrow(obj, DataSource.class);

            delegate = jndiCS;
            addInfo("DataSource obtained from " + jndiLocation);
View Full Code Here

TOP

Related Classes of ch.qos.logback.core.db.JNDIConnectionSource

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.