def create_connection(*args)
      # Since username and password are not assigned (see lib/jms/connection.rb:200)
      # and connection_factory.create_connection expects 2 arguments when username is not null ...
      if args.length == 2
        @username = args[0]
        @password = args[1]
      end

      # Full Qualified name causes a Java exception
      #cf = oracle.jms.AQjmsFactory.getConnectionFactory(@url, java.util.Properties.new)
      cf = AQjmsFactory.getConnectionFactory(@url, java.util.Properties.new)

      if username
        cf.createConnection(@username, @password)
      else
        cf.createConnection()
      end
    end
def create_connection(*args)
      # Since username and password are not assigned (see lib/jms/connection.rb:200)
      # and connection_factory.create_connection expects 2 arguments when username is not null ...
      if args.length == 2
        @username = args[0]
        @password = args[1]
      end

      # Full Qualified name causes a Java exception
      #cf = oracle.jms.AQjmsFactory.getConnectionFactory(@url, java.util.Properties.new)
      cf = AQjmsFactory.getConnectionFactory(@url, java.util.Properties.new)

      if username
        cf.createConnection(@username, @password)
      else
        cf.createConnection()
      end
    end
Creates a connection per standard JMS 1.1 techniques from the Oracle AQ JMS Interface