org.springframework.jms.core
Interface SessionCallback


public interface SessionCallback

Callback interface for JMS code. To be used with JmsTemplate's execute method, often as an anonymous class within a method implementation.

The typical implementatino will perform multiple operations on the JMS Session, possibly returning a result object.

Since:
1.1
Author:
Mark Pollack
See Also:
JmsTemplate.execute(SessionCallback)

Method Summary
 Object doInJms(Session session)
          Execute operations against a JMS session possibly returning a result.
 

Method Detail

doInJms

Object doInJms(Session session)
               throws JMSException
Execute operations against a JMS session possibly returning a result.

Parameters:
session - the JMS session
Returns:
a result object from working with the session, if any
Throws:
JMSException - if thrown by JMS API methods


Copyright (c) 2002-2007 The Spring Framework Project.