Hi guys. I have two distinct applications, one is a Web application running in
Tomcat, which uses Spring and
JSF, and this application has a class with a method that does a insert operation in a Postgre database. The other application is a simple desktop application, which I use to do some text files manipulation and conversion. They both are in the same network (right now in the same machine, but I want to be able to run each one in different machines). What I need to do is: when I execute the desktop application, I want to get the data from the text file, and pass this data as variables to the Web application and run the method from the Web application that does the insert, inserting this data into the database. I know I can do this with RMI and with
Servlets, but I don't know how. My preference is to use Servlets. Could you give me any hint on how to do this? Thank you!
PS: I'm sorry for my poor english (I'm from Brazil)!