关于PET STORE中的疑问?
src\components\catalog\src\com\sun\j2ee\blueprints\catalog\util\中的JNDINames.java跟部署有关吗?哪位明白人给讲讲?我刚接触EJB不久,以前做JSP+SERVLET+BEAN,怎么吗这么不好明白? 代码如下:
package com.sun.j2ee.blueprints.catalog.util;
/**
* This class is the central location to store the internal
* JNDI names of various entities. Any change here should
* also be reflected in the deployment descriptors.
*/
public class JNDINames {
private JNDINames(){} // prevent instanciation
//
// JNDI names of EJB home objects
//
public static final String CATALOG_EJBHOME =
"java:comp/env/ejb/local/Catalog";
//
// JNDI Names of data sources.
//
public static final String CATALOG_DATASOURCE =
"java:comp/env/jdbc/CatalogDB";
//
// JNDI Names of application properties
//
public static final String USE_CATALOG_EJB =
"java:comp/env/ejb/catalog/useCatalogEJB";
public static final String CATALOG_DAO_CLASS =
"java:comp/env/param/CatalogDAOClass";
public static final String CATALOG_DAO_SQL_URL =
"java:comp/env/url/CatalogDAOSQLURL";
public static final String CATALOG_DAO_DATABASE =
"java:comp/env/param/CatalogDAODatabase";
}