EJb sessionBean

Tonight I learned EJb sessionBean and how to use wsad.
I knew some concepts of sessionbean ,and how to develop a sessionbean and test a sessionbean.
First create a sessionbean with e classes .One is sessionbean extending Session
Bean ,Second is Home interface of sessionbean extending EJBHome of sessionbean,Third is remote interface of sessionbean extending EJBObject of sessionbean.

Then Promote methods of sessionbean to RemoteInterface sessionbean.
At last deploy sessionbean and publish it to server which was created previously.

A project need Enterprise project and Server Project which need create a server configuration project and the server configuration should add a Enterprise project .
you can config datasource in server project and other files.

你可能感兴趣的:(java)