Using MBeans or JCA will make no difference.
By processes do you mean threads?
thanks for your reply, you are right, I meant threads.
With help from juha i managed to get this done via one explicit thread which access the library and one explicit thread which calls the methods on the first one.
The only bad thing is that i want to access many devices on serial ports parallel, but my actual implementation needs synchronized methods in order to hold the monitor of the thread. This leads to have one device work after the other has finnished work.
I think about redesign of this library handling and have one explicit thread per device...if the library supports this...and also one explicit thread to access it...