getObject

 

public Object getObject(String name) throws JMSException;

Gets the Java™ object with the given name.

This method can be used to return, as a class instance, an object that had been stored in the Map with the equivalent setObject() method call, or its equivalent primitive setter method.

Parameters

  • name - the name of the Java object

Returns

  • a class which represents the object referred to by the given name. If there is no item by this name, a null value is returned.

Exceptions

  • JMSException - if JMS fails to read message due to an internal error.


uj26240_