Skip to Content

  These documents will help you to creating the web service for updating the data in java table using EJB and JPA.

1.     Create Dictionary DC from Dictionary Perspective.

/wp-content/uploads/2013/10/1_298892.png

2.     Create Table in dictionary.

/wp-content/uploads/2013/10/2_298893.png

3.     Build and deploy the Dictionary DC.

4.     Create EJB  application-Select DC type as EJB Module.

/wp-content/uploads/2013/10/4_298894.png

5.     Give EJB application name and click next.

/wp-content/uploads/2013/10/5_298901.png

6.     Select JPA and finish.

/wp-content/uploads/2013/10/6_298903.png

7.     Create Enterprise application for EJB application .

/wp-content/uploads/2013/10/7_298905.png

8.     Give name of enterprise application.

/wp-content/uploads/2013/10/8_298906.png

9.     Add  ejb application(test_app) to ear project and finish.

/wp-content/uploads/2013/10/9_298910.png

10.     Select Sap data source aliases provider module of the ear DC from project facets and apply.

/wp-content/uploads/2013/10/10_298912.png

11.     Check alias name of data base in the ear app.

/wp-content/uploads/2013/10/11_298916.png

12.     Open data-source-aliases.xml from META-INF folder and note the alias name.

/wp-content/uploads/2013/10/12_298917.png

13.     Create  connection from EJB application to dictionary.

/wp-content/uploads/2013/10/13_298918.png

14.     Define Alias name in persistence.xml.

/wp-content/uploads/2013/10/14_298925.png

15.     Generate Entities from Table in EJB.

/wp-content/uploads/2013/10/15_298927.png

16.     After creating the entity class, code as below.

/wp-content/uploads/2013/10/16_298928.png

17.     Create class for dto in EJB.

/wp-content/uploads/2013/10/17_298929.png

18.     Generate the getter and setter for this variable.

/wp-content/uploads/2013/10/18_298930.png

19.     Create an interface in the EJB DC and declare save method as below.

/wp-content/uploads/2013/10/19_298931.png

20.     Create a session bean in EJB DC.

/wp-content/uploads/2013/10/20_298932.png

21.     Include Entity Manager and Persistence Context in session bean.

/wp-content/uploads/2013/10/21_298933.png

22.     Define save operation in session bean.

/wp-content/uploads/2013/10/22_298938.png

23.     Create a web service for session bean.

/wp-content/uploads/2013/10/23_298940.png

24.     Build and deploy the EAR and EJB project.

25.     Test the web service from WSNavigator.

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

Leave a Reply