|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbea.jolt.beans.JoltSessionBean
The JoltSessionBean represents the Tuxedo session. It encapsulates the functionality of JoltSession, JoltSessionAttributes and JoltTransaction. The JoltSessionBean offers properties to set session attributes and methods to open and to close a Tuxedo session. It also sends a PropertyChange event for its "LoggedOn" property once the Tuxedo session is established. In addition, the JoltSessionBean provides methods to control transactions. The JoltSessionBean is an event source for JoltOutputEvents as well. These events are sent if an unsolicited message or Tuxedo user event notification arrives.
Constructor Summary | |
JoltSessionBean()
|
Method Summary | |
void |
addJoltOutputListener(JoltOutputListener listener)
Add a JoltOutputEvent listener. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
The specified PropertyChangeListener's propertyChange method is called each time the value of the loggedOn property is changed. |
void |
beginTransaction(int timeout)
Start a transaction. |
void |
clear()
This method clears all session attributes. |
void |
commitTransaction()
Commits the transaction. |
java.lang.String |
getAppAddress()
Gets the IP address (host name) and port number of the JSL or the Jolt Relay. |
java.lang.String |
getAppPassword()
Gets the Tuxedo application password to be used at logon. |
int |
getIdleTimeOut()
Gets the IDLETIMEOUT attribute. |
java.beans.PropertyChangeEvent |
getPropertyChangeEvent()
Constructor |
int |
getReceiveTimeOut()
Gets the RECVTIMEOUT attribute. |
int |
getSendTimeOut()
Gets the SENDTIMEOUT attribute. |
java.lang.String |
getSessionTimeOut()
Gets the SESSIONTIMEOUT attribute. |
java.lang.String |
getUserName()
Gets the Tuxedo user name to be used at logon. |
java.lang.String |
getUserPassword()
Gets the Tuxedo user password to be used at logon. |
java.lang.String |
getUserRole()
Gets the Tuxedo user role to be used at logon. |
boolean |
isInTransaction()
Returns true or false depending on whether there is a started transaction. |
boolean |
isLoggedOn()
Does the session exist? |
void |
logoff()
This method closes the session to Tuxedo. |
void |
logon()
This method opens a new session to Tuxedo. |
void |
removeJoltOutputListener(JoltOutputListener listener)
Remove a JoltOutputEvent listener. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Remove this PropertyChangeListener from the internal list. |
void |
rollbackTransaction()
Aborts the transaction. |
void |
setAppAddress(java.lang.String value)
Sets the IP address (host name) and port number of the JSL or the Jolt Relay. |
void |
setAppPassword(java.lang.String value)
Sets the Tuxedo application password to be used at logon. |
void |
setIdleTimeOut(int value)
Sets the IDLETIMEOUT attribute. |
void |
setReceiveTimeOut(int value)
Sets the RECVTIMEOUT attribute. |
void |
setSendTimeOut(int value)
Sets the SENDTIMEOUT attribute. |
void |
setUserName(java.lang.String value)
Sets the Tuxedo user name to be used at logon. |
void |
setUserPassword(java.lang.String value)
Sets the Tuxedo user password to be used at logon. |
void |
setUserRole(java.lang.String value)
Sets the Tuxedo user role to be used at logon. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JoltSessionBean()
Method Detail |
public java.beans.PropertyChangeEvent getPropertyChangeEvent()
public void addJoltOutputListener(JoltOutputListener listener)
listener
- Event listener to be added.public void removeJoltOutputListener(JoltOutputListener listener)
listener
- Event listener to be removed.public boolean isLoggedOn()
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l
- The PropertyChangeListener.public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l
- The PropertyChangeListener.public void logon() throws SessionException
SessionException
public void logoff() throws SessionException
SessionException
public void clear() throws SessionException
SessionException
public void beginTransaction(int timeout) throws TransactionException
timeout
- Transaction timeout.
TransactionException
public void commitTransaction() throws TransactionException
TransactionException
public void rollbackTransaction() throws TransactionException
TransactionException
public boolean isInTransaction()
public java.lang.String getAppAddress()
public void setAppAddress(java.lang.String value)
value
- The address of the application (APPADDRESS)
attribute.public int getIdleTimeOut()
public void setIdleTimeOut(int value)
value
- The new IDLETIMEOUT attribute value.public void setReceiveTimeOut(int value)
value
- The new RECVTIMEOUT attribute value.public int getReceiveTimeOut()
public void setSendTimeOut(int value)
value
- The new SENDTIMEOUT attribute value.public int getSendTimeOut()
public java.lang.String getSessionTimeOut()
public void setUserName(java.lang.String value)
value
- Tuxedo user name.public java.lang.String getUserName()
public void setUserRole(java.lang.String value)
value
- Tuxedo user role.public java.lang.String getUserRole()
public void setUserPassword(java.lang.String value)
value
- Tuxedo user password.public java.lang.String getUserPassword()
public void setAppPassword(java.lang.String value)
value
- Tuxedo application password.public java.lang.String getAppPassword()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |