FreeKB - Map an application to a JNDI during deployment
IBM WebSphere - Map an application to a JNDI during deployment

The web.xml and ibm-web-bnd.xml files can be used to map an application to a JNDI when the application is being deployed to a WebSphere application server. Both web.xml and ibm-web-bnd.xml are in the WEB-INF folder of the application. For example, let's say you want to map the application to a JNDI of "jdbc/mySQL".


First, you would define the resource reference in web.xml.



Then, you would use the following ibm-web-bnd.xml file.

<?xml version="1.0" encoding="UTF-8"?>

	<resource-ref name="jdbc/mySQL" binding-name="jdbc/mySQL" />




Add a Comment

We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.

Please enter dc95c in the box below so that we can be sure you are a human.


Web design by yours truely - me, myself, and I   |   |