KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > edu > rice > rubis > beans > servlets > Config


1 package edu.rice.rubis.beans.servlets;
2
3 /**
4  * This class contains the configuration for the servlets
5  * like the path of HTML files, etc ...
6  * @author <a HREF="mailto:cecchet@rice.edu">Emmanuel Cecchet</a> and <a HREF="mailto:julie.marguerite@inrialpes.fr">Julie Marguerite</a>
7  * @version 1.0
8  */

9
10 public class Config
11 {
12
13   /**
14    * Creates a new <code>Config</code> instance.
15    *
16    */

17   Config()
18   {
19   }
20
21   /**
22    * Return the TopicConnectionFactory name to lookup
23    * JOnAS looks like: JTCF
24    * JBoss looks like: RMIConnectionFactoryw
25    */

26   public static final String JavaDoc TopicConnectionFactoryName = "RMIConnectionFactory";
27
28   /**
29    * Return the prefix to add to the topic name at lookup time
30    * JOnAS looks like:
31    * JBoss looks like: topic/
32    */

33   public static final String JavaDoc PrefixTopicName = "topic/";
34
35   /**
36    * Returns the path to the directory where the HTML header and footer are stored.
37    */

38   //public static final String HTMLFilesPath = "/users/cecchet/RUBiS/EJB_HTML";
39
public static final String JavaDoc HTMLFilesPath = "/users/margueri/RUBiS/ejb_rubis_web";
40
41   /**
42    * Returns the context used by the web container for html files and servlets (this isthe name of the war file).
43    * If no war file is used context is /EJB_HTML
44    */

45   public static final String JavaDoc context = "/ejb_rubis_web";
46
47
48   /**
49    * Return the UserTransaction name to look for since JBoss does not support full class names
50    * JOnAS looks like: utx = (javax.transaction.UserTransaction)initialContext.lookup("java:comp/UserTransaction");
51    * JBoss looks like: utx = (javax.transaction.UserTransaction)initialContext.lookup("UserTransaction");
52    */

53   public static final String JavaDoc UserTransaction = "UserTransaction";
54 }
55
Popular Tags