GithubHelp home page GithubHelp logo

akursat / ejb-remote-example Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 20 KB

I implemented a java enterprise application which cointains enterprise java beans and a remote client application. This application invokes these beans by using JNDI API.

License: GNU General Public License v3.0

Java 100.00%

ejb-remote-example's Introduction

ejb-remote-example

@author: akursat

@website: akursat.com Technologies used

EJB
JNDI
Hibernate
Jboss 7.1
Mysql

Introduction

I implemented a java enterprise application which cointains enterprise java beans and a remote client application. This application invokes these beans by using JNDI API.
I used JBOSS as an application server. The project created using maven with sub-modules (server-side and client) In server-side there is two session bean one of them Stateful and the other Stateless. They invoked from a remote client in client-side.

Building

You must edit RemoteClient.java and jboss-ejb-client.properties You must change [username] and [password] to your username and password of the server. The default username is [jboss], password is [123456]. You must also configure jboss with mysql.
To achive this, you should follow the link;
https://developer.jboss.org/wiki/DataSourceConfigurationInAS7?_sscc=t

Here is my SQL query which I use in the project.

CREATE TABLE users ( 
username character varying(50) NOT NULL, 
password character varying(50) NOT NULL, 
email character varying(50) NOT NULL, 
birthday date, 
sex smallint, 
enabled boolean, 
CONSTRAINT users_pkey PRIMARY KEY (username) 
)

CREATE TABLE authorities ( 
username character varying(50) NOT NULL, 
authority character varying(50) NOT NULL, 
CONSTRAINT fk_authorities_users FOREIGN KEY (username) 
REFERENCES users (username) 
MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION 
)

Deploying

You just need to put your war file in webapps and then start your server. Run RemoteBean.java

ejb-remote-example's People

Contributors

akursat avatar

Watchers

 avatar  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.