JacORB free TangORB
|
|
---|---|
Hi All, As were discussed at 30th Tango meeting we need to step forward and package Tango related Java tools into debian repository. For this a version of Tango Java API without JacORB classes is required due to the licensing issues. Here I share the result of my experiment on this topic: Source code Binaries can be found in my bintray maven repo: https://bintray.com/ingvord/maven Current status: jacORB classes are replaced with Oracle's implementation (part of JDK) Current issues: no time out policy client code may require to reimplement exceptions parsing logic There is a Jive version that uses this library: Source code Binaries: download jar This Jive version is also available in the latest (v92 rc1) Tango Virtual Box. Suggested next steps: include Jive into experimental branch of the binary repositories (debian, redhat etc). Recompile other tools (ATKPanel, JDraw what else?) and put them into experimental as well. |
|
|
---|---|
Concerning the timeout policy. JacORB_free JavaAPI source code has a server and a client projects. The server is extremely simple - it has only one attribute and a command - timeout - and simply answers after 15 seconds. Client connects to the server and executes the command. Interesting enough that there is no timeout exception at all:
Client simply waits till command finishes its execution. I wonder how long it can wait (150 000 also passes)?! Exploring the source code I have found the following: Oracle's CORBA implementation uses ReadTCPTimeoutsImpl class as a storage for TCP related timeouts:
This class is created from special properties that can be passed to ORB during initialization. See this Oracle's forum thread, for instance. These timeout values are then used in MessageBase class to specify timeout for reading from connection (socket or channel):
No timeout exception even though default value is 3000 millis. Overriding these values via reflection does not give any effect :( Maybe I have missed something. Theoretically it is easy to implement our own timeout mechanism, e.g. start a thread that waits for a specified period of time and then closes the connection. Any help will be appreciated. |
|
|
---|---|
Hi, I have added JacORB free Jive to my bintray's deb repo. To install the Jive do the following
echo "deb https://dl.bintray.com/ingvord/deb /" | sudo tee -a /etc/apt/sources.list sudo apt-get update; sudo apt-get install jive Jive Here is corresponding pom.xml configuration section:
BTW this is a nice receipt on how to automatically package Tango Java Devices/Tools to a deb repo. |