Examples of JndiTemplate


Examples of org.springframework.jndi.JndiTemplate

    private static final String MESSAGE4 = "java:/comp/env/message4";

    public void doLookup() {
        String[] names = new String[] { MESSAGE1, MESSAGE2, MESSAGE3, MESSAGE4 };
       
        JndiTemplate template = new JndiTemplate();

        try {
            String[] messages = (String[]) template
                    .execute(new BulkLookupCallback(names));
        } catch (NamingException ex) {
            ex.printStackTrace();
        }
    }
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.