KickJava   Java API By Example, From Geeks To Geeks.

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


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: RMIConnectionFactory
25    */

26   public static final String JavaDoc TopicConnectionFactoryName = "JTCF";
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 = "";
34
35   /**
36    * Returns the path to the directory where the HTML header and footer are stored.
37    */

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

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

51   public static final String JavaDoc UserTransaction = "java:comp/UserTransaction";
52 }
53
Popular Tags