public override void Init()
        {
            exceptionHandler = new RetryDefaultExceptionHandler();
            ExampleDomainConnector exampleDomain = new ExampleDomainConnector();

            factory = DomainFactoryProvider.GetDomainFactoryInstance("3.0.0", Destination, exampleDomain, exceptionHandler);
        }
Beispiel #2
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="destination">Destionation to connect with OpenEngSB</param>
 protected JmsPort(string destination, ABridgeExceptionHandling handling, String connectorId)
 {
     this.ConnectorId       = connectorId;
     this.Factory           = null;
     this.stringDestination = destination;
     this.Handling          = handling;
     Configure();
 }
Beispiel #3
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="localDomainService">LocalDomain</param>
 /// <param name="host">Host</param>
 /// <param name="connectorId">ServiceId</param>
 /// <param name="domainName">name of the remote Domain</param>
 /// <param name="domainEvents">Type of the remoteDomainEvents</param>
 public DomainReverse(domainServiceType localDomainService, string host, string connectorId, string domainName, Boolean createNewConnector, ABridgeExceptionHandling exceptionhandler)
     : this()
 {
     this.ExceptionHandler = exceptionhandler;
     this.Destination      = JmsDestination.CreateDestinationString(host, connectorId);
     this.connectorId      = connectorId;
     this.domainName       = domainName;
     this.domainService    = localDomainService;
     this.PortIn           = new JmsIncomingPort(Destination, exceptionhandler, connectorId);
     this.Username         = "******";
     this.Password         = "******";
     this.createService    = createNewConnector;
 }
Beispiel #4
0
 public Domain(string host, string connectorId, String domainName, String contextId, ABridgeExceptionHandling exceptionhandler, String username, String password)
     : this(host, connectorId, domainName, contextId, exceptionhandler)
 {
     this.Username = username;
     this.Password = password;
 }
Beispiel #5
0
 public Domain(string host, string connectorId, String domainName, String contextId, ABridgeExceptionHandling exceptionhandler)
     : base(typeof(TransparentProxyType))
 {
     this.ContextId        = contextId;
     this.ConnectorId      = connectorId;
     this.DomainName       = domainName;
     this.Host             = host;
     this.Marshaller       = new JsonMarshaller();
     this.Username         = "******";
     this.Password         = "******";
     this.Exceptionhandler = exceptionhandler;
     Logger = LogManager.GetLogger(typeof(TransparentProxyType));
 }
 public void Initialise()
 {
     exceptionhandler = new RetryDefaultExceptionHandler();
 }
Beispiel #7
0
 public DomainProxy(string host, string connectorId, String domainName, String contextId, ABridgeExceptionHandling exceptionhandler, String username, String password)
     : base(host, connectorId, domainName, contextId, exceptionhandler, username, password)
 {
     AuthenificationClass = "org.openengsb.connector.usernamepassword.Password";
 }
Beispiel #8
0
 /// <summary>
 /// Constructor with Autehntification
 /// </summary>
 /// <param name="localDomainService">LocalDomain</param>
 /// <param name="host">Host</param>
 /// <param name="serviceId">ServiceId</param>
 /// <param name="domainName">name of the remote Domain</param>
 /// <param name="username">Username for the authentification</param>
 /// <param name="password">Password for the authentification</param>
 public DomainReverse(domainServiceType localDomainService, string host, string serviceId, string domainName, String username, String password, Boolean createNewConnector, ABridgeExceptionHandling exceptionhandler)
     : this(localDomainService, host, serviceId, domainName, createNewConnector, exceptionhandler)
 {
     this.Username = username;
     this.Password = password;
 }
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="destination">URL to OpenEngSB</param>
 public JmsOutgoingPort(string destination, ABridgeExceptionHandling handling, String connectorId)
     : base(destination, handling, connectorId)
 {
     producer = Session.CreateProducer(this.Destination);
     producer.DeliveryMode = MsgDeliveryMode.Persistent;
 }
 public RealDomainFactory(string destination, DomainReverseTyp domainService, String contextId, ABridgeExceptionHandling exceptionhandler, String username, String password)
     : this(destination, domainService, exceptionhandler, username, password)
 {
     this.ContextId = contextId;
 }
 public RealDomainFactory(string destination, DomainReverseTyp domainService, ABridgeExceptionHandling exceptionhandler, String username, String password)
     : base(destination, domainService, exceptionhandler, username, password)
 {
 }
 public RealDomainFactory(string destination, DomainReverseTyp domainService, ABridgeExceptionHandling exceptionhandler)
     : base(destination, domainService, exceptionhandler)
 {
 }
Beispiel #13
0
        /// <summary>
        /// Retrieve a factory, depending on the openEngSB version
        /// </summary>
        /// <param name="stringVersion">Version of the OpenEngSB-framework in String format</param>
        /// <returns>Factory</returns>
        public static IDomainFactory GetDomainFactoryInstance <ServiceTyp>(String stringVersion, String destination, ServiceTyp service, ABridgeExceptionHandling exceptionhandler, String username, String password)
        {
            Type domainResult = GetRealDomainFactory(stringVersion);

            domainResult = domainResult.MakeGenericType(typeof(ServiceTyp));
            return(Activator.CreateInstance(domainResult, destination, service, exceptionhandler, username, password) as IDomainFactory);
        }
Beispiel #14
0
 /// <summary>
 /// Retrieve a factory, depending on the openEngSB version
 /// </summary>
 /// <param name="urlVersion">Version of the OpenEngSB-framework in url format</param>
 /// <returns>factory</returns>
 public static IDomainFactory GetDomainFactoryInstance <T>(Uri urlVersion, String destination, T service, ABridgeExceptionHandling exceptionhandler, String username, String password, String contextId)
 {
     return(GetDomainFactoryInstance(GetVersionFromURI(urlVersion), destination, service, exceptionhandler, username, password, contextId));
 }
Beispiel #15
0
 /// <summary>
 /// Retrieve a factory, depending on the openEngSB version
 /// </summary>
 /// <param name="urlVersion">Version of the OpenEngSB-framework in url format</param>
 /// <returns>factory</returns>
 public static IDomainFactory GetDomainFactoryInstance <T>(Uri urlVersion, String destination, T service, ABridgeExceptionHandling exceptionHandler)
 {
     return(GetDomainFactoryInstance(GetVersionFromURI(urlVersion), destination, service, exceptionHandler));
 }
Beispiel #16
0
 /// <summary>
 /// Constructor with Autehntification
 /// </summary>
 /// <param name="localDomainService">LocalDomain</param>
 /// <param name="host">Host</param>
 /// <param name="connectorId">ServiceId</param>
 /// <param name="domainName">name of the remote Domain</param>
 /// <param name="username">Username for the authentification</param>
 /// <param name="password">Password for the authentification</param>
 public DomainReverseProxy(T localDomainService, string host, string connectorId, string domainName, String username, String password, String contextId, Boolean createNewConnector, ABridgeExceptionHandling exceptionhandler)
     : base(localDomainService, host, connectorId, domainName, username, password, createNewConnector, exceptionhandler)
 {
     this.ContextId = contextId;
     Logger.Info("Connecting to OpenEngSB version 3.0");
 }
Beispiel #17
0
 /// <summary>
 /// Default constructor
 /// </summary>
 /// <param name="destination">URL to OpenEngSB</param>
 public JmsIncomingPort(string destination, ABridgeExceptionHandling exceptionhandler, String connectorId)
     : base(destination, exceptionhandler, connectorId)
 {
     consumer = Session.CreateConsumer(this.Destination);
 }