The moose likes Object Relational Mapping and the fly likes REST Service Using Axis2 and Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "REST Service Using Axis2 and Hibernate" Watch "REST Service Using Axis2 and Hibernate" New topic

REST Service Using Axis2 and Hibernate

Kutty sun

Joined: Sep 21, 2011
Posts: 3
Hi All

I was tried to find some tutorials for a POC on REST With Axis2 using hibernate. But i am not able to find some good tutorials. so here am posting the important steps.

IDE : Eclipse

Step 1 : create a java project in Eclipse.
Step 2: create the required Resource classes.
Step 3: build the .aar file
Step 4: copy the .aar file into <axis2_home>/WEB-INF/services folder (I am using Tomcat as my servlet container)

The following are the important stpes:

Step5: copy your hibernate.cfg.xml and the *.hbm.xml files into <axis2_home>/WEB-INF/classes folder
Step6: copy your compiled classed to the same path.
Step7: copy the hibernate*.jar and dependency jars into <Tomcat_Home>/lib folder.

This is the required steps. now you can test the REST service as the usual way.

Please tell me if any other way is avail.
sorry for my english

With regards
I agree. Here's the link:
subject: REST Service Using Axis2 and Hibernate
It's not a secret anymore!