Description
Adds implementation for https://payara.atlassian.net/wiki/spaces/PAYAR/pages/851836929/EJB+HTTP+Protocol+version+1 including both Java serialisation and JSONB as well as automatic detection of served protocol by the client. In case both versions are supported the client chooses the newer version.
To explicitly select a serialisation type or protocol version two environment variables were added to the RemoteEJBContextFactory
:
* fish.payara.serialization
given as "java" or "json" (default) - not case sensitive
* fish.payara.version
given as "0" or "1" (default)
Testing performed
Component tests were added to both the endpoint and the client. The existing integration test were adopted https://github.com/payara/payara-samples/pull/17 so they also cover the new protocol version for both Java Serialisation and JSONB.
该提问来源于开源项目:payara/Payara