Java Doc for QueueSession.java in  » EJB-Server-JBoss-4.2.1 » j2ee » javax » jms » 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 » EJB Server JBoss 4.2.1 » j2ee » javax.jms 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.jms.QueueSession

QueueSession
public interface QueueSession extends Session(Code)
A QueueSession object provides methods for creating QueueReceiver, QueueSender, QueueBrowser, and TemporaryQueue objects.

If there are messages that have been received but not acknowledged when a QueueSession terminates, these messages will be retained and redelivered when a consumer next accesses the queue.

A QueueSession is used for creating Point-to-Point specific objects. In general, use the Session object. The QueueSession is used to support existing code. Using the Session object simplifies the programming model, and allows transactions to be used across the two messaging domains.

A QueueSession cannot be used to create objects specific to the publish/subscribe domain. The following methods inherit from Session, but must throw an IllegalStateException if they are used from QueueSession:

  • createDurableSubscriber
  • createTemporaryTopic
  • createTopic
  • unsubscribe

See Also:   javax.jms.Session
See Also:   javax.jms.QueueConnection.createQueueSession(booleanint)
See Also:   javax.jms.XAQueueSession.getQueueSession




Method Summary
 QueueBrowsercreateBrowser(Queue queue)
     Creates a QueueBrowser object to peek at the messages on the specified queue.
 QueueBrowsercreateBrowser(Queue queue, String messageSelector)
     Creates a QueueBrowser object to peek at the messages on the specified queue using a message selector.
Parameters:
  queue - the Queue to access
Parameters:
  messageSelector - only messages with properties matching themessage selector expression are delivered.
 QueuecreateQueue(String queueName)
     Creates a queue identity given a Queue name.

This facility is provided for the rare cases where clients need to dynamically manipulate queue identity.

 QueueReceivercreateReceiver(Queue queue)
     Creates a QueueReceiver object to receive messages from the specified queue.
 QueueReceivercreateReceiver(Queue queue, String messageSelector)
     Creates a QueueReceiver object to receive messages from the specified queue using a message selector.
Parameters:
  queue - the Queue to access
Parameters:
  messageSelector - only messages with properties matching themessage selector expression are delivered.
 QueueSendercreateSender(Queue queue)
     Creates a QueueSender object to send messages to the specified queue.
 TemporaryQueuecreateTemporaryQueue()
     Creates a TemporaryQueue object.



Method Detail
createBrowser
QueueBrowser createBrowser(Queue queue) throws JMSException(Code)
Creates a QueueBrowser object to peek at the messages on the specified queue.
Parameters:
  queue - the Queue to access
exception:
  JMSException - if the session fails to create a browserdue to some internal error.
exception:
  InvalidDestinationException - if an invalid queue is specified.



createBrowser
QueueBrowser createBrowser(Queue queue, String messageSelector) throws JMSException(Code)
Creates a QueueBrowser object to peek at the messages on the specified queue using a message selector.
Parameters:
  queue - the Queue to access
Parameters:
  messageSelector - only messages with properties matching themessage selector expression are delivered. A value of null oran empty string indicates that there is no message selector for the message consumer.
exception:
  JMSException - if the session fails to create a browserdue to some internal error.
exception:
  InvalidDestinationException - if an invalid queue is specified.
exception:
  InvalidSelectorException - if the message selector is invalid.



createQueue
Queue createQueue(String queueName) throws JMSException(Code)
Creates a queue identity given a Queue name.

This facility is provided for the rare cases where clients need to dynamically manipulate queue identity. It allows the creation of a queue identity with a provider-specific name. Clients that depend on this ability are not portable.

Note that this method is not for creating the physical queue. The physical creation of queues is an administrative task and is not to be initiated by the JMS API. The one exception is the creation of temporary queues, which is accomplished with the createTemporaryQueue method.
Parameters:
  queueName - the name of this Queue a Queue with the given name
exception:
  JMSException - if the session fails to create a queuedue to some internal error.




createReceiver
QueueReceiver createReceiver(Queue queue) throws JMSException(Code)
Creates a QueueReceiver object to receive messages from the specified queue.
Parameters:
  queue - the Queue to access
exception:
  JMSException - if the session fails to create a receiverdue to some internal error.
exception:
  InvalidDestinationException - if an invalid queue is specified.



createReceiver
QueueReceiver createReceiver(Queue queue, String messageSelector) throws JMSException(Code)
Creates a QueueReceiver object to receive messages from the specified queue using a message selector.
Parameters:
  queue - the Queue to access
Parameters:
  messageSelector - only messages with properties matching themessage selector expression are delivered. A value of null oran empty string indicates that there is no message selector for the message consumer.
exception:
  JMSException - if the session fails to create a receiverdue to some internal error.
exception:
  InvalidDestinationException - if an invalid queue is specified.
exception:
  InvalidSelectorException - if the message selector is invalid.



createSender
QueueSender createSender(Queue queue) throws JMSException(Code)
Creates a QueueSender object to send messages to the specified queue.
Parameters:
  queue - the Queue to access, or null if this is an unidentified producer
exception:
  JMSException - if the session fails to create a senderdue to some internal error.
exception:
  InvalidDestinationException - if an invalid queue is specified.



createTemporaryQueue
TemporaryQueue createTemporaryQueue() throws JMSException(Code)
Creates a TemporaryQueue object. Its lifetime will be that of the QueueConnection unless it is deleted earlier. a temporary queue identity
exception:
  JMSException - if the session fails to create a temporary queuedue to some internal error.



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