Java Doc for JndiDestinationResolver.java in  » J2EE » spring-framework-2.5 » org » springframework » jms » support » destination » 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.5 » org.springframework.jms.support.destination 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.springframework.jndi.JndiLocatorSupport
   org.springframework.jms.support.destination.JndiDestinationResolver

JndiDestinationResolver
public class JndiDestinationResolver extends JndiLocatorSupport implements CachingDestinationResolver(Code)
DestinationResolver implementation which interprets destination names as JNDI locations (with a configurable fallback strategy).

Allows for customizing the JNDI environment if necessary, for example specifying appropriate JNDI environment properties.

Dynamic queues and topics get cached by destination name. As a consequence, you need to use unique destination names across both queues and topics. Caching can be turned off through the JndiDestinationResolver.setCache "cache" flag.

Note that the fallback to resolution of dynamic destinations is turned off by default. Switch the JndiDestinationResolver.setFallbackToDynamicDestination "fallbackToDynamicDestination" flag on to enable this functionality.
author:
   Mark Pollack
author:
   Juergen Hoeller
since:
   1.1
See Also:   JndiDestinationResolver.setJndiTemplate
See Also:   JndiDestinationResolver.setJndiEnvironment
See Also:   JndiDestinationResolver.setCache
See Also:   JndiDestinationResolver.setFallbackToDynamicDestination





Method Summary
public  voidclearCache()
    
public  voidremoveFromCache(String destinationName)
    
public  DestinationresolveDestinationName(Session session, String destinationName, boolean pubSubDomain)
    
public  voidsetCache(boolean cache)
     Set whether to cache resolved destinations.
public  voidsetDynamicDestinationResolver(DestinationResolver dynamicDestinationResolver)
     Set the DestinationResolver to use when falling back to dynamic destinations.
public  voidsetFallbackToDynamicDestination(boolean fallbackToDynamicDestination)
     Set whether this resolver is supposed to create dynamic destinations if the destination name is not found in JNDI.
protected  voidvalidateDestination(Destination destination, String destinationName, boolean pubSubDomain)
     Validate the given Destination object, checking whether it matches the expected type.



Method Detail
clearCache
public void clearCache()(Code)



removeFromCache
public void removeFromCache(String destinationName)(Code)



resolveDestinationName
public Destination resolveDestinationName(Session session, String destinationName, boolean pubSubDomain) throws JMSException(Code)



setCache
public void setCache(boolean cache)(Code)
Set whether to cache resolved destinations. Default is "true".

This flag can be turned off to re-lookup a destination for each operation, which allows for hot restarting of destinations. This is mainly useful during development.

Note that dynamic queues and topics get cached by destination name. As a consequence, you need to use unique destination names across both queues and topics.




setDynamicDestinationResolver
public void setDynamicDestinationResolver(DestinationResolver dynamicDestinationResolver)(Code)
Set the DestinationResolver to use when falling back to dynamic destinations.

The default is Spring's standard DynamicDestinationResolver .
See Also:   JndiDestinationResolver.setFallbackToDynamicDestination
See Also:   DynamicDestinationResolver




setFallbackToDynamicDestination
public void setFallbackToDynamicDestination(boolean fallbackToDynamicDestination)(Code)
Set whether this resolver is supposed to create dynamic destinations if the destination name is not found in JNDI. Default is "false".

Turn this flag on to enable transparent fallback to dynamic destinations.
See Also:   JndiDestinationResolver.setDynamicDestinationResolver




validateDestination
protected void validateDestination(Destination destination, String destinationName, boolean pubSubDomain)(Code)
Validate the given Destination object, checking whether it matches the expected type.
Parameters:
  destination - the Destination object to validate
Parameters:
  destinationName - the name of the destination
Parameters:
  pubSubDomain - true if a Topic is expected,false in case of a Queue



Fields inherited from org.springframework.jndi.JndiLocatorSupport
final public static String CONTAINER_PREFIX(Code)(Java Doc)

Methods inherited from org.springframework.jndi.JndiLocatorSupport
protected String convertJndiName(String jndiName)(Code)(Java Doc)
public boolean isResourceRef()(Code)(Java Doc)
protected Object lookup(String jndiName) throws NamingException(Code)(Java Doc)
protected Object lookup(String jndiName, Class requiredType) throws NamingException(Code)(Java Doc)
public void setResourceRef(boolean resourceRef)(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.