com.beasys.commerce.util
Class Helper
java.lang.Object
|
+--com.beasys.commerce.util.Helper
- public class Helper
- extends java.lang.Object
- implements java.lang.Runnable
Constructor Summary |
Helper()
Helper constructor comment. |
Method Summary |
static java.lang.String |
challenge(java.lang.String secret)
|
static javax.naming.Context |
getJndiContext()
|
static java.lang.String |
getJndiHomeName(javax.ejb.EJBContext beanContext)
Returns the JNDI name of the home of a bean |
static java.util.Properties |
getProperties()
|
static void |
initFromTheoryProperties()
Deprecated. in favor of com.beasys.commerce.axiom.util.helper.CommercePropertiesHelper
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY, "MyAppServer.jndi.MyJNDIContextFactory");
p.put(Context.URL, "myProtocol://127.0.0.1:8001");
com.beasys.commerce.util.Helper.init(p);
|
void |
run()
|
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
THEORY_PROPERTIES
public static final java.lang.String THEORY_PROPERTIES
BELONGING_HOME_CLASSNAME
public static final java.lang.String BELONGING_HOME_CLASSNAME
Helper
public Helper()
- Helper constructor comment.
challenge
public static final java.lang.String challenge(java.lang.String secret)
getJndiHomeName
public static java.lang.String getJndiHomeName(javax.ejb.EJBContext beanContext)
- Returns the JNDI name of the home of a bean
- Returns:
- String the JNDI name of the bean's home
getJndiContext
public static javax.naming.Context getJndiContext()
throws javax.naming.NamingException
initFromTheoryProperties
public static void initFromTheoryProperties()
throws java.lang.Exception
- Deprecated. in favor of com.beasys.commerce.axiom.util.helper.CommercePropertiesHelper
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY, "MyAppServer.jndi.MyJNDIContextFactory");
p.put(Context.URL, "myProtocol://127.0.0.1:8001");
com.beasys.commerce.util.Helper.init(p);
- All java client code must first call this in order to access TheoryCenter beans.
This version will look for a file "theory.properties" in the following locations.
- the system property "theory.properties"
- the current working directory's theory.properties
- the users home directory's theory.properties.
- Parameters:
p
- Properties that may include the following:
getProperties
public static java.util.Properties getProperties()
run
public void run()
- Specified by:
- run in interface java.lang.Runnable
Copyright © 2000 BEA Systems, Inc. All Rights Reserved