Ibis Servicedispatcher Core

Dispatches requests between (compatible) applications running on the same application server

Лицензия

Лицензия

Группа

Группа

org.ibissource
Идентификатор

Идентификатор

service-dispatcher
Последняя версия

Последняя версия

1.5
Дата

Дата

Тип

Тип

jar
Описание

Описание

Ibis Servicedispatcher Core
Dispatches requests between (compatible) applications running on the same application server
Ссылка на сайт

Ссылка на сайт

https://ibissource.org/service-dispatcher/
Организация-разработчик

Организация-разработчик

Ibissource.org

Скачать service-dispatcher

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.ibissource/service-dispatcher/ -->
<dependency>
    <groupId>org.ibissource</groupId>
    <artifactId>service-dispatcher</artifactId>
    <version>1.5</version>
</dependency>
// https://jarcasting.com/artifacts/org.ibissource/service-dispatcher/
implementation 'org.ibissource:service-dispatcher:1.5'
// https://jarcasting.com/artifacts/org.ibissource/service-dispatcher/
implementation ("org.ibissource:service-dispatcher:1.5")
'org.ibissource:service-dispatcher:jar:1.5'
<dependency org="org.ibissource" name="service-dispatcher" rev="1.5">
  <artifact name="service-dispatcher" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.ibissource', module='service-dispatcher', version='1.5')
)
libraryDependencies += "org.ibissource" % "service-dispatcher" % "1.5"
[org.ibissource/service-dispatcher "1.5"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

License Maven Central Build Status

ibis-servicedispatcher

The IbisServiceDispatcher can be used to communicate between applications that reside in the same JVM. It was developed to provide a means of communication in native Java between the Everest Knowledge Framework (EKF) and the adapters build using the Ibis Framework.

usage

To use the IbisServiceDispatcher, an instance of the DispatcherManager must be obtained by calling the static method getDispatcherManager() on DispatcherManagerFactory. Then:
  • to call a service, call processRequest(String clientName, String correlationId, String message, HashMap requestContext) on the DispatcherManager
  • to provide a service, register a RequestProcessor using register(RequestProcessor)

ibis-configuration

Use the following code in an Ibis-configuration to provide a service using the service dispatcher:
(Any parameter passed in the requestContext is made available to the Adapter as a PipeLineSession-variable)
  <receiver name="JavaListener" returnIfStopped="Service not available">
    <listener 
      className="nl.nn.adapterframework.receivers.JavaListener" 
      serviceName="ibis4xxx-myadapter" 
    />
  </receiver>

To call a service provided by the service dispatcher from within a Ibis-configuration, use the JavaSender, like this:
(Any parameter defined with the sender is passed on to the processing service in the requestContext)
  <pipe name="PipeCallingService">
    <sender 
      className="nl.nn.adapterframework.pipes.IbisJavaSender" 
      serviceName="nameOfService" >
      <param name="param1" value="valueOfThisParameter"/>
    <sender>
    <forward name="success" path="READY"/>
  </pipe>

operation

The IbisServiceDispatcher provides a map of RequestProcessors. This map is created by applications that register themselves with the servicedispatcher. Other applications can use the servicedispatcher to execute a request by a named RequestProcessor. The servicedispatcher locates the RequestProcessor in its map, set the appropriate classloader context, and executes the request as if it was done within the application the ReqestProcessor resides. To be able to do so, the servicedispatcher must be deployed on the classpath of the server, that is shared by all applications.

installation

To install the IbisServiceDispatcher, the library must be placed on the classpath of the server. Due to the way of operation, it is not sufficient to have it only in a lib directory of a .war file or similar.
org.ibissource

Ibis source

Версии библиотеки

Версия
1.5