Class: JSparrow::Connection::ConnectionProperties
- Inherits:
-
Object
- Object
- JSparrow::Connection::ConnectionProperties
- Defined in:
- lib/connection.rb
Overview
Configuracoes necessarias para que clientes JMS se conetem ao middleware 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
- #enable_queues(jndi_names = {}) ⇒ Object
- #enable_topics(jndi_names = {}) ⇒ Object
- #use_jms_client_jar(client_jar) ⇒ Object
- #use_jndi_properties(jndi_properties = {}) ⇒ Object
Instance Attribute Details
#enabled_connection_factories ⇒ Object (readonly)
Returns the value of attribute enabled_connection_factories.
38 39 40 |
# File 'lib/connection.rb', line 38 def enabled_connection_factories @enabled_connection_factories end |
#enabled_queues ⇒ Object (readonly)
Returns the value of attribute enabled_queues.
38 39 40 |
# File 'lib/connection.rb', line 38 def enabled_queues @enabled_queues end |
#enabled_topics ⇒ Object (readonly)
Returns the value of attribute enabled_topics.
38 39 40 |
# File 'lib/connection.rb', line 38 def enabled_topics @enabled_topics end |
#jms_client_jar ⇒ Object (readonly)
Returns the value of attribute jms_client_jar.
38 39 40 |
# File 'lib/connection.rb', line 38 def jms_client_jar @jms_client_jar end |
#jndi_properties ⇒ Object (readonly)
Returns the value of attribute jndi_properties.
38 39 40 |
# File 'lib/connection.rb', line 38 def jndi_properties @jndi_properties end |
Instance Method Details
#enable_connection_factories(jndi_names = {}) ⇒ Object
49 50 51 |
# File 'lib/connection.rb', line 49 def enable_connection_factories(jndi_names = {}) @enabled_connection_factories = jndi_names end |
#enable_queues(jndi_names = {}) ⇒ Object
53 54 55 |
# File 'lib/connection.rb', line 53 def enable_queues(jndi_names = {}) @enabled_queues = jndi_names end |
#enable_topics(jndi_names = {}) ⇒ Object
57 58 59 |
# File 'lib/connection.rb', line 57 def enable_topics(jndi_names = {}) @enabled_topics = jndi_names end |
#use_jms_client_jar(client_jar) ⇒ Object
41 42 43 |
# File 'lib/connection.rb', line 41 def use_jms_client_jar(client_jar) @jms_client_jar = client_jar end |
#use_jndi_properties(jndi_properties = {}) ⇒ Object
45 46 47 |
# File 'lib/connection.rb', line 45 def use_jndi_properties(jndi_properties = {}) @jndi_properties = jndi_properties end |