I am new to java programming.
I have two java systems eg systemA and systemB running on one Tomcat.
In systemA, I would like to access data from systemB.

Please could someone advice what is the best way to go about.
I am new and would like to learn about.

Many thanks