JBoss and Web Logic applications communicate with each other using various forms of remote procedure calls
- There are two main directories
/ejb
and/java-rmi
- Inside of each directory, there are another two directories that represent the scenarios
/jboss-to-jboss
andjboss-to-weblogic
communication. - After selecting the scenario, the use-cases will be presented as directories as well. In this case, there will be a use-case for
basic-call
andlogin-module
basic-call
represents a simple remote procedure call between two applicationslogin-module
represents a remote procedure call between two applications with a layer of security on top of that, provided by the login module (using username/password credentials)
- This project uses Red Hat JBoss 7.4.X and can be downloaded at https://developers.redhat.com/products/eap/download
- For Web Logic, please download the version 14.1.1 at https://www.oracle.com/middleware/technologies/fusionmiddleware-downloads.html
Run
rmiregistry
locally before running the server/client programs. Just run on your terminal$ rmiregistry
inside your servertarget/classes
and it will run the registry daemon on port1099
- Run the server
$ java-rmi-server % java -cp target/java-rmi-server-1.0-SNAPSHOT.jar com.alizardo.RMIServer
Server ready
- Run the client
$ java -cp target/java-rmi-client-1.0-SNAPSHOT.jar com.alizardo.RMIClient
response: Hello!