KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > edu > rice > rubis > beans > BeanConfig


1 package edu.rice.rubis.beans;
2
3 /**
4  * This class contains the configuration for the MDB
5  * like the topic connection factory name
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 BeanConfig
11 {
12
13   /**
14    * Creates a new <code>BeanConfig</code> instance.
15    *
16    */

17   BeanConfig()
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 = "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    * Return the UserTransaction name to look for since JBoss does not support full class names
37    * JOnAS looks like: utx = (javax.transaction.UserTransaction)initialContext.lookup("java:comp/UserTransaction");
38    * JBoss looks like: utx = (javax.transaction.UserTransaction)initialContext.lookup("UserTransaction");
39    */

40   public static final String JavaDoc UserTransaction = "UserTransaction";
41
42   /**
43    * Returns the context used by the web container for html files and servlets (this is the name of the war file).
44    * If no war file is used context is /EJB_HTML
45    */

46   public static final String JavaDoc context = "/ejb_rubis_web";
47 }
48
Popular Tags