Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate & Axis2  RSS feed

 
Sharon whipple
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As we develop and the application continue to grow, we understand that the logic inside the Axis2 web service becoming heavier,
Another problem is the fact that we have to jar our Hibernate app to an AAR file.
And we have some problems because Hibernate won't recognize some of the configuration xml.

What are we doing wrong?
How can we decuple the web service and the Hibernate logic?

Thank you very much
Sorry for my English

Sharon.
 
bhupesh ravish
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey I am also facing the same problem.
So I tried to put the hibernate code out side of aar file.
So I made a session bean. n now trying to call it from the aar.
but still it is giving some problems of class loading.
if someone else find the solution please post it

thanks
 
Sharon whipple
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If using Ejb is the solution to separate the logic from webservice,
Then the Hibernate persistence files should be zipped into the aar files,
And the logic should sit somewhere else (server) ?
But then I will have to use the rmi calls (locate etc),
Is it necessary if both Axis and Hibernate on the same machine?
 
abo pham
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I know one way to do that, please follow these step below:

1. you just compile your web-service into aar file (not include bean files), copy the aar into axis2\WEB-INF\services.
2. all libs hibernate (and jar drivers), you have to copy in axis2\WEB-INF\lib.
3. all bean(include xx.hbm.xml files) classes which are must be in axis2\WEB-INF\classes.
4. that's all.

enjoys your-self..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!