Coder Social home page Coder Social logo

remote-ejb-example's Introduction

Remote-ejb-example

Example for EJB remoting in Wildfly

Author: Christian Simon <[email protected]>
Website: http://www.illucit.com

About

This simple example should demonstrate how to do EJB remoting with Wildfly from a client application which does not run in an application server itself.

The used application server is Wildfly 8.1.0.Final, but the example should also run on newer versions of the Wildfly application server.

Setup and Run Example

There are 2 projects in this repository to show the interaction between a server EJB and the client.

EJB server

This is a maven project, which can be compiled as EJB JAR:

cd server
mvn clean compile package install

The resulting file target/ejb-remote-server.jar can then be deployed to a running Wildfly server (e.g. via the management console). The install command in maven will install the package also in your local maven repository, so the EJB client can find the remote interface class of your EJB.

EJB Client

The EJB client can connect to a Wildfly instance with the remote EJB example deployed. If you are on the same host and have not changed the default Wildfly port settings, you can leave the connection parameters as they are. Otherwise you need to adapt the variables "host" and "port" in the file client/src/main/java/com/illucit/ejbremote/EjbRemoteClient.java (port should always be the HTTP connector port of Wildfly).

To compile and run the example you can simply use a maven call:

cd client
mvn clean compile package exec:java

You should see the example result "Hello World" and the the remotely queried Wildfly Home Dir on the output.

remote-ejb-example's People

Contributors

metaxmx avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.