WebSphere Application Server & Liberty

 View Only
  • 1.  Liberty Tutorial on accessing 3.x EJBs using standalone (separate VM) clients using RMI

    Posted Tue March 12, 2024 05:58 PM

    Can someone please point me to a good tutorial on how to develop standalone java clients accessing remotely deployed EJB's on Liberty, i.e. clients and Liberty running on different hosts and VMs? All of this using RMI

    Thank you in advance,

    Octavio 



    ------------------------------
    Octavio Echevarria
    ------------------------------


  • 2.  RE: Liberty Tutorial on accessing 3.x EJBs using standalone (separate VM) clients using RMI

    Posted Wed March 13, 2024 11:56 AM

    I'm not aware of a tutorial, but the tests included in the open-liberty repository should be helpful.

    Specifically, a test project that demonstrates accessing remote EJBs from an application client may be found here:
    https://github.com/OpenLiberty/open-liberty/tree/integration/dev/com.ibm.ws.ejbcontainer.remote.client_fat

    Within that project, the application client is in a JAR here:
    https://github.com/OpenLiberty/open-liberty/blob/integration/dev/com.ibm.ws.ejbcontainer.remote.client_fat/test-applications/EjbLinkClient.jar/src/com/ibm/ws/ejbcontainer/ejblink/client/EjbLinkClient.java

    The EJBs are located in various directories in that project, located in multiple JARs and WARs.

    Here is the code that packages the JARs and WARs into an EAR and launches the server and then the client:
    https://github.com/OpenLiberty/open-liberty/blob/integration/dev/com.ibm.ws.ejbcontainer.remote.client_fat/fat/src/com/ibm/ws/ejbcontainer/remote/client/fat/tests/EjbLinkTest.java

    The client configuration (client.xml) is here:
    https://github.com/OpenLiberty/open-liberty/blob/integration/dev/com.ibm.ws.ejbcontainer.remote.client_fat/publish/clients/com.ibm.ws.ejbcontainer.remote.client.fat.clientInjection/client.xml

    and finally the server configuration (server.xml) is here:
    https://github.com/OpenLiberty/open-liberty/blob/integration/dev/com.ibm.ws.ejbcontainer.remote.client_fat/publish/servers/com.ibm.ws.ejbcontainer.remote.client.fat.serverInjection/server.xml



    ------------------------------
    Tracy Burroughs
    ------------------------------



  • 3.  RE: Liberty Tutorial on accessing 3.x EJBs using standalone (separate VM) clients using RMI

    Posted Fri March 15, 2024 10:41 AM

    Thank you Tracy. I'll take a look at the links you provided. 

    Octavio



    ------------------------------
    Octavio Echevarria
    ------------------------------



  • 4.  RE: Liberty Tutorial on accessing 3.x EJBs using standalone (separate VM) clients using RMI

    Posted Thu March 14, 2024 04:51 AM

    Have you get any exception? please post the trace logs at first.



    ------------------------------
    LI MIN YU
    ------------------------------



  • 5.  RE: Liberty Tutorial on accessing 3.x EJBs using standalone (separate VM) clients using RMI

    Posted Fri March 15, 2024 10:40 AM

    Hi Li Min,

    Right now I am working on a prototype and need some direction. Thanks.

    Octavio



    ------------------------------
    Octavio Echevarria
    ------------------------------