JNDINames.java
01 package com.bea.medrec.utils;
02 
03 /**
04  <p>Encapsulates all JNDI names for EJBs, JMS, JDBC, etc.</p>
05  *
06  @author Copyright (c) 2006 by BEA Systems. All Rights Reserved.
07  */
08 public class JNDINames {
09 
10  /**
11   * Catalog Home
12   */
13   public static final String CATALOG_HOME = "java:comp/env/";
14 
15  /**
16   * Entity EJB reference names
17   */
18   public static final String ADDRESS_LOCAL_HOME =
19    CATALOG_HOME+"ejb/local/address";
20   public static final String ADMIN_LOCAL_HOME =
21     CATALOG_HOME+"ejb/local/admin";
22   public static final String GROUP_LOCAL_HOME =
23     CATALOG_HOME+"ejb/local/group";
24   public static final String PATIENT_LOCAL_HOME =
25     CATALOG_HOME+"ejb/local/patient";
26   public static final String PHYSICIAN_LOCAL_HOME =
27     CATALOG_HOME+"ejb/local/physician";
28   public static final String PRESCRIPTION_LOCAL_HOME =
29     CATALOG_HOME+"ejb/local/prescription";
30   public static final String RECORD_LOCAL_HOME =
31     CATALOG_HOME+"ejb/local/record";
32   public static final String USER_LOCAL_HOME =
33     CATALOG_HOME+"ejb/local/user";
34   public static final String VITALSIGNS_LOCAL_HOME =
35     CATALOG_HOME+"ejb/local/vitalsigns";
36 
37  /**
38   * Session EJB reference names
39   */
40   public static final String ADMIN_SESSION_HOME =
41     CATALOG_HOME+"ejb/adminsession";
42   public static final String MAIL_SESSION_HOME =
43     CATALOG_HOME+"ejb/mailsession";
44   public static final String PATIENT_SESSION_HOME =
45     CATALOG_HOME+"ejb/patientsession";
46   public static final String RECORD_SESSION_HOME =
47     CATALOG_HOME+"ejb/recordsession";
48 
49  /**
50   * Remote EJB home names
51   */
52   public static final String ADMIN_SESSION_REMOTE_HOME =
53     "AdminSessionEJB.AdminSessionHome";
54   public static final String MAIL_SESSION_REMOTE_HOME =
55     "MailSessionEJB.MailSessionHome";
56   public static final String PATIENT_SESSION_REMOTE_HOME =
57     "PatientSessionEJB.PatientSessionHome";
58   public static final String RECORD_SESSION_REMOTE_HOME =
59     "RecordSessionEJB.RecordSessionHome";
60   public static final String PHYS_SESSION_REMOTE_HOME =
61     "PhysicianSessionEJB.PhysicianSessionHome";
62 
63  /**
64   * JMS connection and queue names
65   */
66   public static final String QUEUE_CONNECTION_FACTORY =
67    CATALOG_HOME+"jms/MedRecQueueConnectionFactory";
68   public static final String REGISTRATION_MDB_QUEUE =
69     CATALOG_HOME+"jms/REGISTRATION_MDB_QUEUE";
70   public static final String MAIL_MDB_QUEUE =
71     CATALOG_HOME+"jms/MAIL_MDB_QUEUE";
72   public static final String XML_UPLOAD_MDB_QUEUE =
73     CATALOG_HOME+"jms/XML_UPLOAD_MDB_QUEUE";
74 
75  /**
76   * JDBC connection and queue names
77   */
78   public static final String MEDREC_TX_DATASOURCE = "jdbc/MedRecTxDataSource";
79 
80  /**
81   * Mail session
82   */
83   public static final String MAIL_SESSION = "mail/MedRecMailSession";
84 }