Package org.springframework.mock.jndi

Examples of org.springframework.mock.jndi.SimpleNamingContextBuilder.bind()


        if (SimpleNamingContextBuilder.getCurrentContextBuilder() == null) {
            LOGGER.info("Setting up new Context");
            SimpleNamingContextBuilder builder = new SimpleNamingContextBuilder();

            ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(getTestContext());
            builder.bind("java:comp/env/jdbc/ptcollectDS", context.getBean("ptcollectDS"));
            builder.activate();
        }
    }

    /**
 
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.