Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Hibernate & Axis2

 
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
reply
    Bookmark Topic Watch Topic
  • New Topic