Class: JSparrow::Connection::Configuration
- Inherits:
-
Object
- Object
- JSparrow::Connection::Configuration
- Defined in:
- lib/connection.rb
Overview
Configuracoes necessarias para que clientes JMS se conetem ao provedor de mensageria via contexto JNDI.
Instance Attribute Summary collapse
-
#enabled_connection_factories ⇒ Object
readonly
Returns the value of attribute enabled_connection_factories.
-
#enabled_queues ⇒ Object
readonly
Returns the value of attribute enabled_queues.
-
#enabled_topics ⇒ Object
readonly
Returns the value of attribute enabled_topics.
-
#jms_client_jar ⇒ Object
readonly
Returns the value of attribute jms_client_jar.
-
#jndi_properties ⇒ Object
readonly
Returns the value of attribute jndi_properties.
Instance Method Summary collapse
-
#enable_connection_factories(jndi_names = {}) ⇒ Object
Use:.
-
#enable_queues(jndi_names = {}) ⇒ Object
Use:.
-
#enable_topics(jndi_names = {}) ⇒ Object
Use:.
-
#use_jms_client_jar(client_jar) ⇒ Object
Use:.
-
#use_jndi_properties(jndi_properties = {}) ⇒ Object
Use:.
Instance Attribute Details
#enabled_connection_factories ⇒ Object (readonly)
Returns the value of attribute enabled_connection_factories.
110 111 112 |
# File 'lib/connection.rb', line 110 def enabled_connection_factories @enabled_connection_factories end |
#enabled_queues ⇒ Object (readonly)
Returns the value of attribute enabled_queues.
110 111 112 |
# File 'lib/connection.rb', line 110 def enabled_queues @enabled_queues end |
#enabled_topics ⇒ Object (readonly)
Returns the value of attribute enabled_topics.
110 111 112 |
# File 'lib/connection.rb', line 110 def enabled_topics @enabled_topics end |
#jms_client_jar ⇒ Object (readonly)
Returns the value of attribute jms_client_jar.
110 111 112 |
# File 'lib/connection.rb', line 110 def jms_client_jar @jms_client_jar end |
#jndi_properties ⇒ Object (readonly)
Returns the value of attribute jndi_properties.
110 111 112 |
# File 'lib/connection.rb', line 110 def jndi_properties @jndi_properties end |
Instance Method Details
#enable_connection_factories(jndi_names = {}) ⇒ Object
Use:
enable_connection_factories :queue_connection_factory => "jndi_name_of_queue_connection_factory",
:topic_connection_factory => "jndi_name_of_topic_connection_factory"
138 139 140 |
# File 'lib/connection.rb', line 138 def enable_connection_factories(jndi_names = {}) @enabled_connection_factories = jndi_names end |
#enable_queues(jndi_names = {}) ⇒ Object
Use:
enable_queues :a_queue_name_in_lower_case => "jndi_name_of_a_queue",
:other_queue_name_in_lower_case => "jndi_name_of_other_queue"
148 149 150 |
# File 'lib/connection.rb', line 148 def enable_queues(jndi_names = {}) @enabled_queues = jndi_names end |
#enable_topics(jndi_names = {}) ⇒ Object
Use:
enable_topics :a_topic_name_in_lower_case => "jndi_name_of_a_topic",
:other_topic_name_in_lower_case => "jndi_name_of_other_topic"
158 159 160 |
# File 'lib/connection.rb', line 158 def enable_topics(jndi_names = {}) @enabled_topics = jndi_names end |
#use_jms_client_jar(client_jar) ⇒ Object
Use:
use_jms_client_jar “path/to/name_of_the_client_jar_file.jar”
118 119 120 |
# File 'lib/connection.rb', line 118 def use_jms_client_jar(client_jar) @jms_client_jar = client_jar end |
#use_jndi_properties(jndi_properties = {}) ⇒ Object
Use:
use_jndi_properties :a_jndi_property_name_in_lower_case => "a_value_of_property",
:other_jndi_property_name_in_lower_case => "other_value_of_property"
128 129 130 |
# File 'lib/connection.rb', line 128 def use_jndi_properties(jndi_properties = {}) @jndi_properties = jndi_properties end |