Class: JMS::OracleAQConnectionFactory
- Inherits:
-
Object
- Object
- JMS::OracleAQConnectionFactory
- Defined in:
- lib/jms/connection.rb
Overview
Wrapper to support Oracle AQ
Instance Attribute Summary collapse
-
#password ⇒ Object
writeonly
Sets the attribute password.
-
#url ⇒ Object
Returns the value of attribute url.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#create_connection ⇒ Object
Creates a connection per standard JMS 1.1 techniques from the Oracle AQ JMS Interface.
Instance Attribute Details
#password=(value) ⇒ Object (writeonly)
Sets the attribute password
497 498 499 |
# File 'lib/jms/connection.rb', line 497 def password=(value) @password = value end |
#url ⇒ Object
Returns the value of attribute url.
496 497 498 |
# File 'lib/jms/connection.rb', line 496 def url @url end |
#username ⇒ Object
Returns the value of attribute username.
496 497 498 |
# File 'lib/jms/connection.rb', line 496 def username @username end |
Instance Method Details
#create_connection ⇒ Object
Creates a connection per standard JMS 1.1 techniques from the Oracle AQ JMS Interface
500 501 502 503 504 505 506 507 |
# File 'lib/jms/connection.rb', line 500 def create_connection cf = oracle.jms.AQjmsFactory.getConnectionFactory(@url, java.util.Properties.new) if username cf.createConnection(@username, @password) else cf.createConnection() end end |