General J2EE: making jndi app server independent

  1. making jndi app server independent (1 messages)

    How can I use same jndi name/property file to be used for all major app servers?so that same jar can be deployed on any of these?
  2. making jndi app server independent[ Go to top ]

    Unfortunately, you can't define JNDI names in a server-independent way. Each server has a different configuration file for defining the JNDI names of resources like EJBs and DataSources.

    The best you can do is to include all the different custom configuration files for the various servers in your JAR.