All Packages Class Hierarchy This Package Previous Next Index
Class bea.jolt.beans.JoltServiceBean
java.lang.Object
|
+----bea.jolt.beans.JoltServiceBean
- public class JoltServiceBean
- extends Object
- implements JoltInputListener, Serializable, PropertyChangeListener
The JoltServiceBean represents a remote TUXEDO service. It
- listens to JoltInputEvents from other beans to populate
its input buffer.
- offers the callService() method to invoke the service.
- populates the service output buffer after a successful
callService().
- is an event source for JoltOutputEvents which carry
information about output of the service. After a successful
callService() registered listener beans are notified via a
JoltOutputEvent which carries the reply message.
All getOutputValue/getOutputTextValue methods operate on
service output parameters only.
All setInputValue/setInputTextValue methods operate on
service input parameters only.
- See Also:
- JoltInputEvent, JoltOutputEvent
-
JoltServiceBean()
- Constructor
-
addJoltOutputListener(JoltOutputListener)
- Add a JoltOutputEvent listener.
-
callService()
- Invoke the remote service.
-
clear()
- This method clears the underlying input and output message buffers.
-
dataChanged(JoltInputEvent)
- Event handler method for JoltInputEvents.
-
getDebug()
- Get the value of the debug property.
-
getJoltOutputEvent()
- Get to the JoltOutputEvent object encapsulated by the
JoltServiceBean.
-
getOccurrenceCount(String)
- Get the number of occurrences of a field from the Jolt
output message buffer.
-
getOutputTextValue(String)
- Get the value of a field in the Jolt output message buffer
as a String.
-
getOutputTextValue(String, int)
- Get the value of one occurrence of a field in the Jolt
output message buffer as a String.
-
getOutputTextValues(String)
- Get all occurrences of a field in the Jolt output message
buffer as String.
-
getOutputValue(String)
- Get the value of a field in the Jolt output message buffer using
the field's native type.
-
getOutputValue(String, int)
- Get the value of one occurrence of a field in the Jolt
output message buffer using the field's native type.
-
getOutputValues(String)
- Get all occurrences of a field in the Jolt output message buffer
using the field's native type.
-
getServiceName()
- Gets the name of the remote service that this bean represents.
-
getSession()
- Get the JoltSessionBean object used by this JoltServiceBean.
-
getTransactional()
- Returns true if the bean is in transactional mode, otherwise
it returns false.
-
isTransactional()
- Returns true if the bean is in transactional mode, otherwise
it returns false.
-
propertyChange(PropertyChangeEvent)
- Event handler for PropertyChange events.
-
removeJoltOutputListener(JoltOutputListener)
- Remove a JoltOutputEvent listener.
-
setDebug(boolean)
- Set the debug property.
-
setInputTextValue(String, int, String)
- Set one occurrence of a field in the Jolt input message
buffer as a String.
-
setInputTextValue(String, String)
- Set the value of a field in the Jolt input message buffer as a String.
-
setInputTextValues(String, String[])
- Set all occurrences of a field in the Jolt input message
buffer as String.
-
setInputValue(String, int, Object)
- Set the value of one occurrence of a field in the Jolt
input message buffer using the field's native type.
-
setInputValue(String, Object)
- Set the value of a field in the Jolt input message buffer using
the field's native type.
-
setInputValues(String, Object[])
- Set all occurrences of a field in the Jolt input message buffer
using the field's native type.
-
setServiceName(String)
- Sets the name of the remote service that this bean represents.
-
setSession(JoltSessionBean)
- This method is used in cases when the JoltServiceBean is created
after the logon event.
-
setTransactional(boolean)
- Sets the transactional mode of the bean.
JoltServiceBean
public JoltServiceBean()
- Constructor
getJoltOutputEvent
public JoltOutputEvent getJoltOutputEvent()
- Get to the JoltOutputEvent object encapsulated by the
JoltServiceBean.
propertyChange
public void propertyChange(PropertyChangeEvent evt)
- Event handler for PropertyChange events. In this case the
JoltSessionBean will notify the JoltServiceBean when it logs
on and off by raising a PropertyChangeEvent about its
"LoggedOn" property.
Note that a logoff of a session other than the current session
will not affect the JoltServiceBean, but a logon of a
session other than the current session will change the session.
This method should not be called directly.
- Parameters:
- evt - The event object.
dataChanged
public void dataChanged(JoltInputEvent evt) throws JoltException
- Event handler method for JoltInputEvents.
The JoltServiceBean updates the input buffer field specified
in the JoltInputEvent to the value specified in the event.
This method should not be called directly.
- Parameters:
- evt - The event object.
setServiceName
public void setServiceName(String name)
- Sets the name of the remote service that this bean represents.
- Parameters:
- name - Service name.
getServiceName
public String getServiceName()
- Gets the name of the remote service that this bean represents.
- Returns:
- name of the TUXEDO service
isTransactional
public boolean isTransactional()
- Returns true if the bean is in transactional mode, otherwise
it returns false.
- Returns:
- true or false
setTransactional
public void setTransactional(boolean mode)
- Sets the transactional mode of the bean.
- Parameters:
- mode - true or false
getTransactional
public boolean getTransactional()
- Returns true if the bean is in transactional mode, otherwise
it returns false.
- Returns:
- true or false
setSession
public void setSession(JoltSessionBean value)
- This method is used in cases when the JoltServiceBean is created
after the logon event. Otherwise the JoltServiceBean gets access
to a TUXEDO client session by listening to JoltSessionEvents.
- Parameters:
- value - The JoltSessionBean which is used by this service bean.
getSession
public JoltSessionBean getSession()
- Get the JoltSessionBean object used by this JoltServiceBean.
- Returns:
- JoltSessionBean object.
getOutputValue
public Object getOutputValue(String fieldName) throws NoSuchFieldError
- Get the value of a field in the Jolt output message buffer using
the field's native type.
- Parameters:
- fieldName - Name of the field.
- Returns:
- Value of the field.
getOutputValue
public Object getOutputValue(String fieldName,
int index) throws NoSuchFieldError
- Get the value of one occurrence of a field in the Jolt
output message buffer using the field's native type.
- Parameters:
- fieldName - Name of the field.
- index - Index of the field.
- Returns:
- Value of the field.
getOutputValues
public Object[] getOutputValues(String fieldName) throws NoSuchFieldError
- Get all occurrences of a field in the Jolt output message buffer
using the field's native type.
- Parameters:
- fieldName - Name of the field.
- Returns:
- The occurrences of the field.
getOutputTextValue
public String getOutputTextValue(String fieldName) throws NoSuchFieldError
- Get the value of a field in the Jolt output message buffer
as a String.
- Parameters:
- fieldName - Name of the field.
- Returns:
- The value of the field as a String.
getOutputTextValue
public String getOutputTextValue(String fieldName,
int index) throws NoSuchFieldError
- Get the value of one occurrence of a field in the Jolt
output message buffer as a String.
- Parameters:
- fieldName - Name of the field.
- index - The occurrence index of the field.
- Returns:
- The value of the field as a String.
getOutputTextValues
public String[] getOutputTextValues(String fieldName) throws NoSuchFieldError
- Get all occurrences of a field in the Jolt output message
buffer as String.
- Parameters:
- fieldName - Name of the field.
- Returns:
- The occurrences of the field as a String.
setInputValue
public void setInputValue(String fieldName,
Object value) throws NoSuchFieldError, ClassCastException
- Set the value of a field in the Jolt input message buffer using
the field's native type.
- Parameters:
- fieldName - Name of the field.
- Value - to set.
setInputValue
public void setInputValue(String fieldName,
int index,
Object value) throws NoSuchFieldError, ClassCastException
- Set the value of one occurrence of a field in the Jolt
input message buffer using the field's native type.
- Parameters:
- fieldName - Name of the field.
- Value - to set.
setInputValues
public void setInputValues(String fieldName,
Object values[]) throws NoSuchFieldError, ClassCastException
- Set all occurrences of a field in the Jolt input message buffer
using the field's native type.
- Parameters:
- fieldName - Name of the field.
- values - The value to set.
setInputTextValue
public void setInputTextValue(String fieldName,
String textValue) throws NoSuchFieldError, NumberFormatException
- Set the value of a field in the Jolt input message buffer as a String.
- Parameters:
- fieldName - Name of the field.
- textValue - The value to set.
setInputTextValue
public void setInputTextValue(String fieldName,
int index,
String textValue) throws NoSuchFieldError, NumberFormatException
- Set one occurrence of a field in the Jolt input message
buffer as a String.
- Parameters:
- fieldName - Name of the field.
- index - Index of the field.
- textValue - The value to set.
setInputTextValues
public void setInputTextValues(String fieldName,
String textValues[]) throws NoSuchFieldError, ClassCastException
- Set all occurrences of a field in the Jolt input message
buffer as String.
- Parameters:
- fieldName - Name of the field.
- textValues - The values to set.
getOccurrenceCount
public int getOccurrenceCount(String fieldName) throws NoSuchFieldError
- Get the number of occurrences of a field from the Jolt
output message buffer.
- Parameters:
- fieldName - Name of the field.
- Returns:
- Number of occurrences.
clear
public void clear()
- This method clears the underlying input and output message buffers.
callService
public void callService() throws ServiceException, TransactionException, ApplicationException
- Invoke the remote service.
addJoltOutputListener
public synchronized void addJoltOutputListener(JoltOutputListener listener)
- Add a JoltOutputEvent listener.
- Parameters:
- listener - Event listener to be added.
removeJoltOutputListener
public synchronized void removeJoltOutputListener(JoltOutputListener listener)
- Remove a JoltOutputEvent listener.
- Parameters:
- listener - Event listener to be removed.
getDebug
public boolean getDebug()
- Get the value of the debug property.
- Returns:
- The debug state.
setDebug
public void setDebug(boolean value)
- Set the debug property.
- Parameters:
- value - the debug state
All Packages Class Hierarchy This Package Previous Next Index