|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.weblogic.helper.WebLogicHelper
Single point of access to the application server. This should make it easy to swap out servers, and processes.
Field Summary | |
protected static WebLogicHelper |
cc
Singleton instance. |
static int |
CLIENT_SIDE
Startup mode for client. |
protected static boolean |
debug
Compile out the debug code. |
static int |
SERVER_SIDE
Startup mode for server. |
protected java.lang.String |
serverUrl
The weblogic server url. |
protected weblogic.common.T3ServicesDef |
t3Services
Handle to the Weblogic T3 client class. |
Fields inherited from interface com.beasys.util.ToolkitConstants |
DEFAULT_ID_CACHE,
DEFAULT_ID_PROCEDURE,
DEFAULT_JDBC_POOL_NAME,
DEFAULT_LOGGING_LEVEL,
DEFAULT_WEBLOGIC_HOST,
DEFAULT_WEBLOGIC_PORT,
ID_CACHE,
ID_PROCEDURE,
JDBC_POOL_NAME,
LOG_DEBUG,
LOG_ERROR,
LOG_FATAL,
LOG_INFO,
LOG_SECURITY,
LOG_WARNING,
LOGGING_LEVEL,
WEBLOGIC_HOST,
WEBLOGIC_PORT |
Constructor Summary | |
protected |
WebLogicHelper()
Default constructor. |
Method Summary | |
void |
finalize()
Destructor. |
int |
getBuild()
Get the WebLogic version. |
java.sql.Connection |
getConnection()
Get a connection to a pooled database connection in Weblogic. |
weblogic.event.common.EventServicesDef |
getEvents()
Get the T3 events service. |
static WebLogicHelper |
getInstance()
Get the singleton instance. |
java.math.BigDecimal |
getNewId()
Get a schema wide unique id. |
PortalProperties |
getProperties()
Get the TI properties. |
java.lang.Object |
getService(java.lang.String aLookupName)
Connect to a reference in JNDI referred to by the lookup name. |
protected weblogic.common.T3ServicesDef |
getT3Services()
Get the services. |
weblogic.time.common.TimeServicesDef |
getTime()
Get the T3 time service. |
java.lang.String |
getWebLogicProperty(java.lang.String aPropertyName)
Helper method for getting a weblogic property. |
java.lang.String |
getWebLogicProperty(java.lang.String aPropertyName,
java.lang.String aDefault)
Helper method for getting a weblogic property. |
protected void |
init()
Init the connections to the app server. |
void |
log(int aLevel,
java.lang.String aMsg)
Write to the weblogic logs, with extra information added. |
void |
log(int aLevel,
java.lang.String appName,
java.lang.String aMsg)
Write to the weblogic logs, with extra information added. |
void |
log(java.lang.String aMsg)
Write to the weblogic logs, with extra information added. |
static void |
setStartupMode(int aMode)
How should the singleton be set up. |
void |
setupConnection()
creates a T3Client connection to the Tengah server, creates a jndi context to lookup the TRVClientServices object, and creates a TRVClient |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int SERVER_SIDE
public static final int CLIENT_SIDE
protected static final boolean debug
protected static WebLogicHelper cc
protected weblogic.common.T3ServicesDef t3Services
protected java.lang.String serverUrl
Constructor Detail |
protected WebLogicHelper()
Method Detail |
public void finalize() throws java.lang.Throwable
public static void setStartupMode(int aMode)
int
- the modepublic static WebLogicHelper getInstance()
protected weblogic.common.T3ServicesDef getT3Services()
public weblogic.event.common.EventServicesDef getEvents()
public weblogic.time.common.TimeServicesDef getTime()
protected void init()
public void setupConnection() throws ToolkitException
public java.lang.Object getService(java.lang.String aLookupName) throws ToolkitException
String
- the lookup name.public PortalProperties getProperties()
public void log(java.lang.String aMsg)
String
- the message, if null it will ignore.public void log(int aLevel, java.lang.String aMsg)
int
- aLevel Possible error levels are:
FrameworkConstants.LOG_DEBUG
FrameworkConstants.LOG_INFO
FrameworkConstants.LOG_WARNING
FrameworkConstants.LOG_ERROR
FrameworkConstants.LOG_FATAL
FrameworkConstants.LOG_SECURITYString
- the message, if null it will ignore.public int getBuild()
public void log(int aLevel, java.lang.String appName, java.lang.String aMsg)
int
- aLevel Possible error levels are:
FrameworkConstants.LOG_DEBUG
FrameworkConstants.LOG_INFO
FrameworkConstants.LOG_WARNING
FrameworkConstants.LOG_ERROR
FrameworkConstants.LOG_FATAL
FrameworkConstants.LOG_SECURITYappName
- the name of the application logging the messageString
- the message, if null it will ignore.public java.sql.Connection getConnection() throws ToolkitException, java.sql.SQLException
public java.math.BigDecimal getNewId() throws ToolkitException
public java.lang.String getWebLogicProperty(java.lang.String aPropertyName, java.lang.String aDefault)
the
- property name.public java.lang.String getWebLogicProperty(java.lang.String aPropertyName)
the
- property name.
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |