java Programming Glossary: javax.naming.initialcontext
ejb lookup failing with NamingException http://stackoverflow.com/questions/1473939/ejb-lookup-failing-with-namingexception NamingManager.java 533 at javax.naming.InitialContext.getURLOrDefaultInitCtx InitialContext.java 279 at javax.naming.InitialContext.lookup.. InitialContext.java 279 at javax.naming.InitialContext.lookup InitialContext.java 351 at gov.hud.pih.eiv.web.EjbClient.EjbClient.getUserManager.. p.put Context.PROVIDER_URL jnp 127.0.0.1 1099 return new javax.naming.InitialContext p Or the following whether you are using Sun Application Server..
JDBC MySql Connection Pooling practices http://stackoverflow.com/questions/2313197/jdbc-mysql-connection-pooling-practices javax.sql.DataSource import javax.naming.Context import javax.naming.InitialContext import javax.naming.NamingException public class DatabaseBean..
Inject a EJB into JAX-RS (RESTfull service) http://stackoverflow.com/questions/3027834/inject-a-ejb-into-jax-rs-restfull-service import javax.ejb.EJB import javax.naming.Context import javax.naming.InitialContext import javax.ws.rs.ext.Provider import java.lang.reflect.Type..
How to portably read configuration data from a servlet http://stackoverflow.com/questions/3804396/how-to-portably-read-configuration-data-from-a-servlet in your servlet you can read the JNDI parameter import javax.naming.InitialContext import javax.naming.NamingException ... public Object readJndi..
Generic JSF entity converter http://stackoverflow.com/questions/4268179/generic-jsf-entity-converter import javax.faces.convert.FacesConverter import javax.naming.InitialContext import javax.naming.NamingException @FacesConverter forClass..
How do I connect to a Websphere Datasource with a given JNDI name? http://stackoverflow.com/questions/7167212/how-do-i-connect-to-a-websphere-datasource-with-a-given-jndi-name private Connection getConnection throws SQLException javax.naming.InitialContext ctx null javax.sql.DataSource ds null System.out.println Attempting.. Attempting connection... DateUtil.now try ctx new javax.naming.InitialContext ds javax.sql.DataSource ctx.lookup java comp env jdbc db connection..
|