Java Doc for DefaultMessageListenerContainer102.java in  » J2EE » spring-framework-2.0.6 » org » springframework » jms » listener » 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.listener 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.springframework.jms.listener.AbstractJmsListeningContainer
   org.springframework.jms.listener.AbstractMessageListenerContainer
      org.springframework.jms.listener.AbstractPollingMessageListenerContainer
         org.springframework.jms.listener.DefaultMessageListenerContainer
            org.springframework.jms.listener.DefaultMessageListenerContainer102

DefaultMessageListenerContainer102
public class DefaultMessageListenerContainer102 extends DefaultMessageListenerContainer (Code)
A subclass of DefaultMessageListenerContainer that uses the JMS 1.0.2 specification, rather than the JMS 1.1 methods used by SimpleMessageListenerContainer itself. This class can be used for JMS 1.0.2 providers, offering the same facility as DefaultMessageListenerContainer does for JMS 1.1 providers.
author:
   Juergen Hoeller
since:
   2.0




Method Summary
protected  ConnectioncreateConnection()
     This implementation overrides the superclass method to use JMS 1.0.2 API.
protected  MessageConsumercreateConsumer(Session session, Destination destination)
     This implementation overrides the superclass method to use JMS 1.0.2 API.
protected  SessioncreateSession(Connection con)
     This implementation overrides the superclass method to use JMS 1.0.2 API.
protected  ConnectiongetConnection(JmsResourceHolder holder)
     This implementation overrides the superclass method to accept either a QueueConnection or a TopicConnection, depending on the domain.
protected  SessiongetSession(JmsResourceHolder holder)
     This implementation overrides the superclass method to accept either a QueueSession or a TopicSession, depending on the domain.
protected  booleanisClientAcknowledge(Session session)
     This implementation overrides the superclass method to avoid using JMS 1.1's Session getAcknowledgeMode() method.



Method Detail
createConnection
protected Connection createConnection() throws JMSException(Code)
This implementation overrides the superclass method to use JMS 1.0.2 API.



createConsumer
protected MessageConsumer createConsumer(Session session, Destination destination) throws JMSException(Code)
This implementation overrides the superclass method to use JMS 1.0.2 API.



createSession
protected Session createSession(Connection con) throws JMSException(Code)
This implementation overrides the superclass method to use JMS 1.0.2 API.



getConnection
protected Connection getConnection(JmsResourceHolder holder)(Code)
This implementation overrides the superclass method to accept either a QueueConnection or a TopicConnection, depending on the domain.



getSession
protected Session getSession(JmsResourceHolder holder)(Code)
This implementation overrides the superclass method to accept either a QueueSession or a TopicSession, depending on the domain.



isClientAcknowledge
protected boolean isClientAcknowledge(Session session) throws JMSException(Code)
This implementation overrides the superclass method to avoid using JMS 1.1's Session getAcknowledgeMode() method. The best we can do here is to check the setting on the listener container.



Fields inherited from org.springframework.jms.listener.DefaultMessageListenerContainer
final public static int CACHE_CONNECTION(Code)(Java Doc)
final public static int CACHE_CONSUMER(Code)(Java Doc)
final public static int CACHE_NONE(Code)(Java Doc)
final public static int CACHE_SESSION(Code)(Java Doc)
final public static long DEFAULT_RECOVERY_INTERVAL(Code)(Java Doc)
final public static String DEFAULT_THREAD_NAME_PREFIX(Code)(Java Doc)

Methods inherited from org.springframework.jms.listener.DefaultMessageListenerContainer
protected TaskExecutor createDefaultTaskExecutor()(Code)(Java Doc)
protected void doInitialize() throws JMSException(Code)(Java Doc)
protected void doRescheduleTask(Object task)(Code)(Java Doc)
protected void doShutdown() throws JMSException(Code)(Java Doc)
protected void establishSharedConnection()(Code)(Java Doc)
final public int getActiveConsumerCount()(Code)(Java Doc)
public int getCacheLevel()(Code)(Java Doc)
final public int getConcurrentConsumers()(Code)(Java Doc)
public int getIdleTaskExecutionLimit()(Code)(Java Doc)
final public int getMaxConcurrentConsumers()(Code)(Java Doc)
public int getMaxMessagesPerTask()(Code)(Java Doc)
final public int getScheduledConsumerCount()(Code)(Java Doc)
protected void handleListenerSetupFailure(Throwable ex, boolean alreadyRecovered)(Code)(Java Doc)
public void initialize()(Code)(Java Doc)
protected void messageReceived(Message message, Session session)(Code)(Java Doc)
protected void recoverAfterListenerSetupFailure()(Code)(Java Doc)
protected void refreshConnectionUntilSuccessful()(Code)(Java Doc)
protected void refreshDestination()(Code)(Java Doc)
protected void scheduleNewInvokerIfAppropriate()(Code)(Java Doc)
public void setCacheLevel(int cacheLevel)(Code)(Java Doc)
public void setCacheLevelName(String constantName) throws IllegalArgumentException(Code)(Java Doc)
public void setConcurrentConsumers(int concurrentConsumers)(Code)(Java Doc)
public void setIdleTaskExecutionLimit(int idleTaskExecutionLimit)(Code)(Java Doc)
public void setMaxConcurrentConsumers(int maxConcurrentConsumers)(Code)(Java Doc)
public void setMaxMessagesPerTask(int maxMessagesPerTask)(Code)(Java Doc)
public void setRecoveryInterval(long recoveryInterval)(Code)(Java Doc)
public void setTaskExecutor(TaskExecutor taskExecutor)(Code)(Java Doc)
final protected boolean sharedConnectionEnabled()(Code)(Java Doc)
protected void sleepInbetweenRecoveryAttempts()(Code)(Java Doc)
protected void startSharedConnection()(Code)(Java Doc)
protected void stopSharedConnection()(Code)(Java Doc)
protected void validateConfiguration()(Code)(Java Doc)

Fields inherited from org.springframework.jms.listener.AbstractPollingMessageListenerContainer
final public static long DEFAULT_RECEIVE_TIMEOUT(Code)(Java Doc)

Methods inherited from org.springframework.jms.listener.AbstractPollingMessageListenerContainer
protected MessageConsumer createConsumer(Session session, Destination destination) throws JMSException(Code)(Java Doc)
protected MessageConsumer createListenerConsumer(Session session) throws JMSException(Code)(Java Doc)
protected boolean doReceiveAndExecute(Session session, MessageConsumer consumer, TransactionStatus status) throws JMSException(Code)(Java Doc)
protected Connection getConnection(JmsResourceHolder holder)(Code)(Java Doc)
protected Session getSession(JmsResourceHolder holder)(Code)(Java Doc)
final protected PlatformTransactionManager getTransactionManager()(Code)(Java Doc)
public void initialize()(Code)(Java Doc)
protected boolean isPubSubNoLocal()(Code)(Java Doc)
protected boolean isSessionLocallyTransacted(Session session)(Code)(Java Doc)
protected void messageReceived(Message message, Session session)(Code)(Java Doc)
protected boolean receiveAndExecute(Session session, MessageConsumer consumer) throws JMSException(Code)(Java Doc)
protected Message receiveMessage(MessageConsumer consumer) throws JMSException(Code)(Java Doc)
public void setPubSubNoLocal(boolean pubSubNoLocal)(Code)(Java Doc)
public void setReceiveTimeout(long receiveTimeout)(Code)(Java Doc)
public void setSessionTransacted(boolean sessionTransacted)(Code)(Java Doc)
public void setTransactionManager(PlatformTransactionManager transactionManager)(Code)(Java Doc)
public void setTransactionName(String transactionName)(Code)(Java Doc)
public void setTransactionTimeout(int transactionTimeout)(Code)(Java Doc)

Methods inherited from org.springframework.jms.listener.AbstractMessageListenerContainer
protected void checkMessageListener(Object messageListener)(Code)(Java Doc)
protected void commitIfNecessary(Session session, Message message) throws JMSException(Code)(Java Doc)
protected void doExecuteListener(Session session, Message message) throws JMSException(Code)(Java Doc)
protected void doInvokeListener(SessionAwareMessageListener listener, Session session, Message message) throws JMSException(Code)(Java Doc)
protected void doInvokeListener(MessageListener listener, Message message) throws JMSException(Code)(Java Doc)
protected void executeListener(Session session, Message message)(Code)(Java Doc)
public Destination getDestination()(Code)(Java Doc)
public String getDestinationName()(Code)(Java Doc)
public String getDurableSubscriptionName()(Code)(Java Doc)
public ExceptionListener getExceptionListener()(Code)(Java Doc)
public Object getMessageListener()(Code)(Java Doc)
public String getMessageSelector()(Code)(Java Doc)
protected void handleListenerException(Throwable ex)(Code)(Java Doc)
protected void invokeExceptionListener(JMSException ex)(Code)(Java Doc)
protected void invokeListener(Session session, Message message) throws JMSException(Code)(Java Doc)
public boolean isAcceptMessagesWhileStopping()(Code)(Java Doc)
public boolean isExposeListenerSession()(Code)(Java Doc)
protected boolean isSessionLocallyTransacted(Session session)(Code)(Java Doc)
public boolean isSubscriptionDurable()(Code)(Java Doc)
protected void rollbackIfNecessary(Session session) throws JMSException(Code)(Java Doc)
protected void rollbackOnExceptionIfNecessary(Session session, Throwable ex) throws JMSException(Code)(Java Doc)
public void setAcceptMessagesWhileStopping(boolean acceptMessagesWhileStopping)(Code)(Java Doc)
public void setDestination(Destination destination)(Code)(Java Doc)
public void setDestinationName(String destinationName)(Code)(Java Doc)
public void setDurableSubscriptionName(String durableSubscriptionName)(Code)(Java Doc)
public void setExceptionListener(ExceptionListener exceptionListener)(Code)(Java Doc)
public void setExposeListenerSession(boolean exposeListenerSession)(Code)(Java Doc)
public void setMessageListener(Object messageListener)(Code)(Java Doc)
public void setMessageSelector(String messageSelector)(Code)(Java Doc)
public void setSubscriptionDurable(boolean subscriptionDurable)(Code)(Java Doc)
protected void validateConfiguration()(Code)(Java Doc)

Methods inherited from org.springframework.jms.listener.AbstractJmsListeningContainer
public void afterPropertiesSet()(Code)(Java Doc)
protected Connection createSharedConnection() throws JMSException(Code)(Java Doc)
public void destroy()(Code)(Java Doc)
abstract protected void doInitialize() throws JMSException(Code)(Java Doc)
protected void doRescheduleTask(Object task)(Code)(Java Doc)
abstract protected void doShutdown() throws JMSException(Code)(Java Doc)
protected void doStart() throws JMSException(Code)(Java Doc)
protected void doStop() throws JMSException(Code)(Java Doc)
protected void establishSharedConnection() throws JMSException(Code)(Java Doc)
final protected String getBeanName()(Code)(Java Doc)
public String getClientId()(Code)(Java Doc)
final protected Connection getSharedConnection()(Code)(Java Doc)
public void initialize() throws JmsException(Code)(Java Doc)
final public boolean isActive()(Code)(Java Doc)
final public boolean isRunning()(Code)(Java Doc)
protected void prepareSharedConnection(Connection connection) throws JMSException(Code)(Java Doc)
final protected void refreshSharedConnection() throws JMSException(Code)(Java Doc)
final protected boolean rescheduleTaskIfNecessary(Object task)(Code)(Java Doc)
public void setAutoStartup(boolean autoStartup)(Code)(Java Doc)
public void setBeanName(String beanName)(Code)(Java Doc)
public void setClientId(String clientId)(Code)(Java Doc)
abstract protected boolean sharedConnectionEnabled()(Code)(Java Doc)
public void shutdown() throws JmsException(Code)(Java Doc)
public void start() throws JmsException(Code)(Java Doc)
protected void startSharedConnection() throws JMSException(Code)(Java Doc)
public void stop() throws JmsException(Code)(Java Doc)
protected void stopSharedConnection() throws JMSException(Code)(Java Doc)
protected void validateConfiguration()(Code)(Java Doc)
final protected void waitWhileNotRunning()(Code)(Java Doc)

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