Java Doc for JmsOperations.java in  » J2EE » spring-framework-2.0.6 » org » springframework » jms » core » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » spring framework 2.0.6 » org.springframework.jms.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.springframework.jms.core.JmsOperations

All known Subclasses:   org.springframework.jms.core.JmsTemplate,
JmsOperations
public interface JmsOperations (Code)
Specifies a basic set of JMS operations.

Implemented by JmsTemplate . Not often used but a useful option to enhance testability, as it can easily be mocked or stubbed.

Provides JmsTemplate's send(..) and receive(..) methods that mirror various JMS API methods. See the JMS specification and javadocs for details on those methods.
author:
   Mark Pollack
author:
   Juergen Hoeller
since:
   1.1
See Also:   JmsTemplate
See Also:   javax.jms.Destination
See Also:   javax.jms.Session
See Also:   javax.jms.MessageProducer
See Also:   javax.jms.MessageConsumer





Method Summary
 voidconvertAndSend(Object message)
     Send the given object to the default destination, converting the object to a JMS message with a configured MessageConverter.
 voidconvertAndSend(Destination destination, Object message)
     Send the given object to the specified destination, converting the object to a JMS message with a configured MessageConverter.
 voidconvertAndSend(String destinationName, Object message)
     Send the given object to the specified destination, converting the object to a JMS message with a configured MessageConverter.
 voidconvertAndSend(Object message, MessagePostProcessor postProcessor)
     Send the given object to the default destination, converting the object to a JMS message with a configured MessageConverter.
 voidconvertAndSend(Destination destination, Object message, MessagePostProcessor postProcessor)
     Send the given object to the specified destination, converting the object to a JMS message with a configured MessageConverter.
 voidconvertAndSend(String destinationName, Object message, MessagePostProcessor postProcessor)
     Send the given object to the specified destination, converting the object to a JMS message with a configured MessageConverter.
 Objectexecute(SessionCallback action)
     Execute the action specified by the given action object within a JMS Session.
 Objectexecute(ProducerCallback action)
     Send a message to a JMS destination.
 Messagereceive()
     Receive a message synchronously from the default destination, but only wait up to a specified time for delivery.
 Messagereceive(Destination destination)
     Receive a message synchronously from the specified destination, but only wait up to a specified time for delivery.
 Messagereceive(String destinationName)
     Receive a message synchronously from the specified destination, but only wait up to a specified time for delivery.
 ObjectreceiveAndConvert()
     Receive a message synchronously from the default destination, but only wait up to a specified time for delivery.
 ObjectreceiveAndConvert(Destination destination)
     Receive a message synchronously from the specified destination, but only wait up to a specified time for delivery.
 ObjectreceiveAndConvert(String destinationName)
     Receive a message synchronously from the specified destination, but only wait up to a specified time for delivery.
 MessagereceiveSelected(String messageSelector)
     Receive a message synchronously from the default destination, but only wait up to a specified time for delivery.

This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.

This will only work with a default destination specified!
Parameters:
  messageSelector - the JMS message selector expression (or null if none).See the JMS specification for a detailed definition of selector expressions.

 MessagereceiveSelected(Destination destination, String messageSelector)
     Receive a message synchronously from the specified destination, but only wait up to a specified time for delivery.

This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
Parameters:
  destination - the destination to receive a message from
Parameters:
  messageSelector - the JMS message selector expression (or null if none).See the JMS specification for a detailed definition of selector expressions.

 MessagereceiveSelected(String destinationName, String messageSelector)
     Receive a message synchronously from the specified destination, but only wait up to a specified time for delivery.

This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
Parameters:
  destinationName - the name of the destination to send this message to(to be resolved to an actual destination by a DestinationResolver)
Parameters:
  messageSelector - the JMS message selector expression (or null if none).See the JMS specification for a detailed definition of selector expressions.

 ObjectreceiveSelectedAndConvert(String messageSelector)
     Receive a message synchronously from the default destination, but only wait up to a specified time for delivery.
 ObjectreceiveSelectedAndConvert(Destination destination, String messageSelector)
     Receive a message synchronously from the specified destination, but only wait up to a specified time for delivery.
 ObjectreceiveSelectedAndConvert(String destinationName, String messageSelector)
     Receive a message synchronously from the specified destination, but only wait up to a specified time for delivery.
 voidsend(MessageCreator messageCreator)
     Send a message to the default destination.
 voidsend(Destination destination, MessageCreator messageCreator)
     Send a message to the specified destination.
 voidsend(String destinationName, MessageCreator messageCreator)
     Send a message to the specified destination.



Method Detail
convertAndSend
void convertAndSend(Object message) throws JmsException(Code)
Send the given object to the default destination, converting the object to a JMS message with a configured MessageConverter.

This will only work with a default destination specified!
Parameters:
  message - the object to convert to a message
throws:
  JmsException - converted checked JMSException to unchecked




convertAndSend
void convertAndSend(Destination destination, Object message) throws JmsException(Code)
Send the given object to the specified destination, converting the object to a JMS message with a configured MessageConverter.
Parameters:
  destination - the destination to send this message to
Parameters:
  message - the object to convert to a message
throws:
  JmsException - converted checked JMSException to unchecked



convertAndSend
void convertAndSend(String destinationName, Object message) throws JmsException(Code)
Send the given object to the specified destination, converting the object to a JMS message with a configured MessageConverter.
Parameters:
  destinationName - the name of the destination to send this message to(to be resolved to an actual destination by a DestinationResolver)
Parameters:
  message - the object to convert to a message
throws:
  JmsException - checked JMSException converted to unchecked



convertAndSend
void convertAndSend(Object message, MessagePostProcessor postProcessor) throws JmsException(Code)
Send the given object to the default destination, converting the object to a JMS message with a configured MessageConverter. The MessagePostProcessor callback allows for modification of the message after conversion.

This will only work with a default destination specified!
Parameters:
  message - the object to convert to a message
Parameters:
  postProcessor - the callback to modify the message
throws:
  JmsException - checked JMSException converted to unchecked




convertAndSend
void convertAndSend(Destination destination, Object message, MessagePostProcessor postProcessor) throws JmsException(Code)
Send the given object to the specified destination, converting the object to a JMS message with a configured MessageConverter. The MessagePostProcessor callback allows for modification of the message after conversion.
Parameters:
  destination - the destination to send this message to
Parameters:
  message - the object to convert to a message
Parameters:
  postProcessor - the callback to modify the message
throws:
  JmsException - checked JMSException converted to unchecked



convertAndSend
void convertAndSend(String destinationName, Object message, MessagePostProcessor postProcessor) throws JmsException(Code)
Send the given object to the specified destination, converting the object to a JMS message with a configured MessageConverter. The MessagePostProcessor callback allows for modification of the message after conversion.
Parameters:
  destinationName - the name of the destination to send this message to(to be resolved to an actual destination by a DestinationResolver)
Parameters:
  message - the object to convert to a message.
Parameters:
  postProcessor - the callback to modify the message
throws:
  JmsException - checked JMSException converted to unchecked



execute
Object execute(SessionCallback action) throws JmsException(Code)
Execute the action specified by the given action object within a JMS Session.

When used with a 1.0.2 provider, you may need to downcast to the appropriate domain implementation, either QueueSession or TopicSession in the action objects doInJms callback method.

Note: The value of isPubSubDomain affects the behavior of this method. If isPubSubDomain equals true, then a TopicSession is passed to the callback. If false, then a QueueSession is passed to the callback.
Parameters:
  action - callback object that exposes the session the result object from working with the session
throws:
  JmsException - if there is any problem




execute
Object execute(ProducerCallback action) throws JmsException(Code)
Send a message to a JMS destination. The callback gives access to the JMS session and MessageProducer in order to do more complex send operations.
Parameters:
  action - callback object that exposes the session/producer pair the result object from working with the session
throws:
  JmsException - checked JMSException converted to unchecked



receive
Message receive() throws JmsException(Code)
Receive a message synchronously from the default destination, but only wait up to a specified time for delivery.

This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.

This will only work with a default destination specified! the message received by the consumer, or null if the timeout expires
throws:
  JmsException - checked JMSException converted to unchecked




receive
Message receive(Destination destination) throws JmsException(Code)
Receive a message synchronously from the specified destination, but only wait up to a specified time for delivery.

This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
Parameters:
  destination - the destination to receive a message from the message received by the consumer, or null if the timeout expires
throws:
  JmsException - checked JMSException converted to unchecked




receive
Message receive(String destinationName) throws JmsException(Code)
Receive a message synchronously from the specified destination, but only wait up to a specified time for delivery.

This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
Parameters:
  destinationName - the name of the destination to send this message to(to be resolved to an actual destination by a DestinationResolver) the message received by the consumer, or null if the timeout expires
throws:
  JmsException - checked JMSException converted to unchecked




receiveAndConvert
Object receiveAndConvert() throws JmsException(Code)
Receive a message synchronously from the default destination, but only wait up to a specified time for delivery. Convert the message into an object with a configured MessageConverter.

This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.

This will only work with a default destination specified! the message produced for the consumer or null if the timeout expires.
throws:
  JmsException - checked JMSException converted to unchecked




receiveAndConvert
Object receiveAndConvert(Destination destination) throws JmsException(Code)
Receive a message synchronously from the specified destination, but only wait up to a specified time for delivery. Convert the message into an object with a configured MessageConverter.

This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
Parameters:
  destination - the destination to receive a message from the message produced for the consumer or null if the timeout expires.
throws:
  JmsException - checked JMSException converted to unchecked




receiveAndConvert
Object receiveAndConvert(String destinationName) throws JmsException(Code)
Receive a message synchronously from the specified destination, but only wait up to a specified time for delivery. Convert the message into an object with a configured MessageConverter.

This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
Parameters:
  destinationName - the name of the destination to send this message to(to be resolved to an actual destination by a DestinationResolver) the message produced for the consumer or null if the timeout expires.
throws:
  JmsException - checked JMSException converted to unchecked




receiveSelected
Message receiveSelected(String messageSelector) throws JmsException(Code)
Receive a message synchronously from the default destination, but only wait up to a specified time for delivery.

This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.

This will only work with a default destination specified!
Parameters:
  messageSelector - the JMS message selector expression (or null if none).See the JMS specification for a detailed definition of selector expressions. the message received by the consumer, or null if the timeout expires
throws:
  JmsException - checked JMSException converted to unchecked




receiveSelected
Message receiveSelected(Destination destination, String messageSelector) throws JmsException(Code)
Receive a message synchronously from the specified destination, but only wait up to a specified time for delivery.

This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
Parameters:
  destination - the destination to receive a message from
Parameters:
  messageSelector - the JMS message selector expression (or null if none).See the JMS specification for a detailed definition of selector expressions. the message received by the consumer, or null if the timeout expires
throws:
  JmsException - checked JMSException converted to unchecked




receiveSelected
Message receiveSelected(String destinationName, String messageSelector) throws JmsException(Code)
Receive a message synchronously from the specified destination, but only wait up to a specified time for delivery.

This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
Parameters:
  destinationName - the name of the destination to send this message to(to be resolved to an actual destination by a DestinationResolver)
Parameters:
  messageSelector - the JMS message selector expression (or null if none).See the JMS specification for a detailed definition of selector expressions. the message received by the consumer, or null if the timeout expires
throws:
  JmsException - checked JMSException converted to unchecked




receiveSelectedAndConvert
Object receiveSelectedAndConvert(String messageSelector) throws JmsException(Code)
Receive a message synchronously from the default destination, but only wait up to a specified time for delivery. Convert the message into an object with a configured MessageConverter.

This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.

This will only work with a default destination specified!
Parameters:
  messageSelector - the JMS message selector expression (or null if none).See the JMS specification for a detailed definition of selector expressions. the message produced for the consumer or null if the timeout expires.
throws:
  JmsException - checked JMSException converted to unchecked




receiveSelectedAndConvert
Object receiveSelectedAndConvert(Destination destination, String messageSelector) throws JmsException(Code)
Receive a message synchronously from the specified destination, but only wait up to a specified time for delivery. Convert the message into an object with a configured MessageConverter.

This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
Parameters:
  destination - the destination to receive a message from
Parameters:
  messageSelector - the JMS message selector expression (or null if none).See the JMS specification for a detailed definition of selector expressions. the message produced for the consumer or null if the timeout expires.
throws:
  JmsException - checked JMSException converted to unchecked




receiveSelectedAndConvert
Object receiveSelectedAndConvert(String destinationName, String messageSelector) throws JmsException(Code)
Receive a message synchronously from the specified destination, but only wait up to a specified time for delivery. Convert the message into an object with a configured MessageConverter.

This method should be used carefully, since it will block the thread until the message becomes available or until the timeout value is exceeded.
Parameters:
  destinationName - the name of the destination to send this message to(to be resolved to an actual destination by a DestinationResolver)
Parameters:
  messageSelector - the JMS message selector expression (or null if none).See the JMS specification for a detailed definition of selector expressions. the message produced for the consumer or null if the timeout expires.
throws:
  JmsException - checked JMSException converted to unchecked




send
void send(MessageCreator messageCreator) throws JmsException(Code)
Send a message to the default destination.

This will only work with a default destination specified!
Parameters:
  messageCreator - callback to create a message
throws:
  JmsException - checked JMSException converted to unchecked




send
void send(Destination destination, MessageCreator messageCreator) throws JmsException(Code)
Send a message to the specified destination. The MessageCreator callback creates the message given a Session.
Parameters:
  destination - the destination to send this message to
Parameters:
  messageCreator - callback to create a message
throws:
  JmsException - checked JMSException converted to unchecked



send
void send(String destinationName, MessageCreator messageCreator) throws JmsException(Code)
Send a message to the specified destination. The MessageCreator callback creates the message given a Session.
Parameters:
  destinationName - the name of the destination to send this message to(to be resolved to an actual destination by a DestinationResolver)
Parameters:
  messageCreator - callback to create a message
throws:
  JmsException - checked JMSException converted to unchecked



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.