Package hermes

Examples of hermes.JNDIConnectionFactory


     */
    public HermesAdmin createSession(Hermes hermes, ConnectionFactory connectionFactory) throws NamingException, JMSException
    {
        if (connectionFactory instanceof JNDIConnectionFactory)
        {
            JNDIConnectionFactory jndiCF = (JNDIConnectionFactory) connectionFactory;

            return new JBossMQAdmin(this, hermes, jndiCF, jndiCF._getConnectionFactory());
        }
        else
        {
            throw new HermesException("Provider is not JBossMQ");
        }
View Full Code Here


     */
    public HermesAdmin createSession(Hermes hermes, ConnectionFactory connectionFactory) throws JMSException, NamingException
    {
       if (connectionFactory instanceof JNDIConnectionFactory)
       {
          JNDIConnectionFactory jndiCF = (JNDIConnectionFactory) connectionFactory ;
          return new ArjunaMSAdmin(hermes, this, jndiCF.createContext()) ;
       }
       else
       {
          throw new HermesException("Provider is not ArjunaMS") ;
       }
View Full Code Here

    }
  }

  public Collection<DestinationConfig> discoverDestinationConfigs() throws JMSException {
    if (hermes.getConnectionFactory() instanceof JNDIConnectionFactory) {
      final JNDIConnectionFactory cf = (JNDIConnectionFactory) hermes.getConnectionFactory();
      final Collection<DestinationConfig> rval = new ArrayList<DestinationConfig>();
      final Context ctx = cf.createContext();

      discoverDestinationConfigsFromContext(null, ctx, rval, new HashSet<String>());

      return rval;
    } else {
View Full Code Here

    public HermesAdmin createSession(Hermes hermes, ConnectionFactory connectionFactory) throws JMSException, NamingException
    {
        if (connectionFactory instanceof JNDIConnectionFactory)
        {
            JNDIConnectionFactory cf = (JNDIConnectionFactory) connectionFactory;

            return new OpenJMSAdmin(hermes, cf);
        }
        else
        {
View Full Code Here

     */
    public HermesAdmin createSession(Hermes hermes, ConnectionFactory connectionFactory) throws JMSException, NamingException
    {
        if (connectionFactory instanceof JNDIConnectionFactory)
        {
            JNDIConnectionFactory jndiCF = (JNDIConnectionFactory) connectionFactory ;
            MQAdminConnectionFactory aCF = (MQAdminConnectionFactory) jndiCF.createContext().lookup(getAdminBinding()) ;
            MQAdminConnection aCon = aCF.createMQAdminConnection(getAdminUser(), getAdminPassword()) ;
           
            return new FioranoAdmin(hermes, aCon) ;
        }
        else
View Full Code Here

      try
      {
         if (connectionFactory instanceof JNDIConnectionFactory)
         {
            final JNDIConnectionFactory jndiCF = (JNDIConnectionFactory) connectionFactory;

            if (username == null && jndiCF.getSecurityPrincipal() != null)
            {
               username = jndiCF.getSecurityCredentials();

               if (password == null && jndiCF.getSecurityCredentials() != null)
               {
                  password = jndiCF.getSecurityCredentials();
               }
            }

            admin = new TibjmsAdmin(serverURL == null ? jndiCF.getProviderURL() : serverURL, username, password);
         }
         else if (connectionFactory instanceof TibjmsConnectionFactory)
         {
            final TibjmsConnectionFactory tibCF = (TibjmsConnectionFactory) connectionFactory;
            final Map ssl = getSSLParameters(tibCF);
View Full Code Here

        else if (connectionFactory instanceof JNDIConnectionFactory)
        {
            //
            // Pull it out the real factory and try again.
           
            JNDIConnectionFactory jndiCF = (JNDIConnectionFactory) connectionFactory ;
           
            return createSession(hermes, jndiCF._getConnectionFactory()) ;
        }
        else
        {
            throw new HermesException("JMS provider " + connectionFactory.getClass().getName() + " is not MQSeries");
        }
View Full Code Here

     */
    public HermesAdmin createSession(Hermes hermes, ConnectionFactory connectionFactory) throws JMSException, NamingException
    {
       if (connectionFactory instanceof JNDIConnectionFactory)
       {
          JNDIConnectionFactory jndiCF = (JNDIConnectionFactory) connectionFactory ;
          return new WebLogicJMSAdmin(hermes, this, jndiCF.createContext()) ;
       }
       else
       {
          throw new HermesException("Provider is not WebLogicJMS") ;
       }
View Full Code Here

   
    log.info(Thread.currentThread().getContextClassLoader()) ;
    log.info(getClass().getClassLoader()) ;
   
    if (connectionFactory instanceof JNDIConnectionFactory) {
      JNDIConnectionFactory jndiCF = (JNDIConnectionFactory) connectionFactory;

      return new HornetQAdmin(this, hermes, jndiCF, jndiCF._getConnectionFactory());
    }
    else {
      return new HornetQAdmin(this, hermes, null, connectionFactory);
    }
  }
View Full Code Here

     */
    public HermesAdmin createSession(Hermes hermes, ConnectionFactory connectionFactory) throws JMSException, NamingException
    {
            if (connectionFactory instanceof JNDIConnectionFactory)
            {
                JNDIConnectionFactory jndiCF = (JNDIConnectionFactory) connectionFactory;

                if ( connectionURL == null)
                {
                    connectionURL = jndiCF.getProviderURL();
                }

                if ( defaultUser == null)
                {
                    defaultUser = jndiCF.getSecurityPrincipal();
                }

                if ( defaultPassword == null)
                {
                    defaultPassword = jndiCF.getSecurityCredentials();
                }
            }
            else if (connectionFactory instanceof progress.message.jclient.ConnectionFactory)
            {
                progress.message.jclient.ConnectionFactory sonicCF = (progress.message.jclient.ConnectionFactory) connectionFactory ;
View Full Code Here

TOP

Related Classes of hermes.JNDIConnectionFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.