Package hermes

Examples of hermes.JNDIConnectionFactory.createContext()


    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 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

    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

  }

  public Context createContext() throws NamingException, JMSException {
    if (connectionFactory instanceof JNDIConnectionFactory) {
      JNDIConnectionFactory jndiCF = (JNDIConnectionFactory) connectionFactory;
      return jndiCF.createContext();
    } else {
      return null;
    }
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.