java.lang.Object
org.eclipse.persistence.internal.eis.adapters.jms.CciJMSConnectionSpec
All Implemented Interfaces:
ConnectionSpec

public class CciJMSConnectionSpec extends Object implements ConnectionSpec
INTERNAL: Provides the behavior of instantiating a JMS ConnectionSpec.
Since:
OracleAS TopLink 10g (10.1.3)
  • Field Details

    • username

      protected String username
    • password

      protected char[] password
    • connectionFactoryURL

      protected String connectionFactoryURL
    • connectionFactory

      protected ConnectionFactory connectionFactory
  • Constructor Details

    • CciJMSConnectionSpec

      public CciJMSConnectionSpec()
      The default constructor.
    • CciJMSConnectionSpec

      public CciJMSConnectionSpec(String url)
      This constructor sets the connection factory url.
      Parameters:
      url - - the JNDI lookup name of the connection factory
    • CciJMSConnectionSpec

      public CciJMSConnectionSpec(ConnectionFactory factory)
      This constructor sets the connection factory.
      Parameters:
      factory - - the connection factory class
    • CciJMSConnectionSpec

      public CciJMSConnectionSpec(String url, String name, String pass)
      This constructor sets the connection factory url, username and password.
      Parameters:
      url - - the JNDI lookup name of the connection factory
      name - - the username to be used when obtaining the queue connection
      pass - - the password to be used when obtaining the queue connection
    • CciJMSConnectionSpec

      public CciJMSConnectionSpec(ConnectionFactory factory, String name, String pass)
      This constructor sets the connection factory, username and password/
      Parameters:
      factory - - the connection factory class
      name - - the username to be used when obtaining the queue connection
      pass - - the password to be used when obtaining the queue connection
  • Method Details

    • getUsername

      public String getUsername()
      Return the username used when getting a queue connection.
      Returns:
      username
    • setUsername

      public void setUsername(String name)
      Set the username to be used when getting a queue connection.
    • getPassword

      public String getPassword()
      Return the password used when getting a queue connection.
      Returns:
      password
    • setPassword

      public void setPassword(String pass)
      Set the password to be used when getting a queue connection.
    • hasUsername

      public boolean hasUsername()
      Indicates if the username property has been set.
      Returns:
      true if the username property is non-null and has a length greater than 0
    • hasConnectionFactoryURL

      public boolean hasConnectionFactoryURL()
      Indicates if JNDI is to be used to get the connection factory.
      Returns:
      true if a JNDI lookup name has been set, false otherwise.
    • getConnectionFactoryURL

      public String getConnectionFactoryURL()
      Returns the JNDI lookup name of the connection factory.
      Returns:
      connection factory lookup name in JNDI
    • setConnectionFactoryURL

      public void setConnectionFactoryURL(String jndiName)
      Set the JNDI lookup name of the connection factory.
    • setConnectionFactory

      public void setConnectionFactory(ConnectionFactory connFactory)
      Set the connection factory class to be used.
      Parameters:
      connFactory - - the factory class to be used
    • getConnectionFactory

      public ConnectionFactory getConnectionFactory()
      Return the connection factory class.
      Returns:
      connection factory class