Hibernate http://www.hibernate.org is an object/relational persistence and 
query service which means..In a nutshell you feed in one format (native SQL or 
HQL) and the resultsets from the just queried created Objects (actually 
classes) are used to populate insert statements 

Axis is a Tomcat specific flavor of Web Service Oriented Architecture which is 
used to either request a very small amount of Data or insert/update a small 
amount of Data and return back a result IDentifier. These results are either 
ack/nack or something a bit more sophisticated such as a Medical Record Number
 
With this requirement unless there is some overriding unexpressed political 
concern you would be wise to put on your software architect's hat and 
understand load, timeliness and performance of a heavy Mass Insert that 
hibernate would place on the DB as well as hanging the client's connection to 
your Axis Servlet versus the need for a very light query on the DB which is 
what Axis is intended to do usually after the DB has been *pre*loaded

I would break the 1 requirement to 2 separating the need to access something 
quick with a AxisServlet and the 2nd requirement would be to use hibernate 
http://www.hibernate.org/ for the more DB intensive operations  . I would 
further suggest working a IOC Inversion of Control containers to created 
necessary dependent Bean, DataSources via Factory Automation techniques such as 
what is available in Spring http://www.springframework.org/ .The whole process 
is controlled by a very rigorous scheduler such as CruiseControl 
http://studios.thoughtworks.com/cruisecontrol

Of all the technologies I mentioned Spring is the most encompassing and also 
the most complex..the intention was to start off with an implementation of a 
light IOC Container..the technology grew into creation of a Enterprise 
Architecture by simply feeding the DataSource parameters to the spring 
configuration file

Anyone else???
M-
  ----- Original Message ----- 
  From: Szarkowski, Agnes 
  To: [email protected] 
  Sent: Thursday, November 08, 2007 4:53 PM
  Subject: axis2, hibernate and tomcat


  First I'd like to note that I am very new to Java web development.

  I'm writing a simple web service that will read data from one database and 
insert a subset into another.

   

  I am using axis2 1.3, tomcat 5.5 and hibernate 3.

  I was able to get a POJO to read data from a database in the console, and I 
was able to deploy the POJO in axis2 as a web service.

  However, the methods that are using hibernate session don't work.  

   

   

  Does anyone know how I can hook hibernate to my web service?

   

   

  Thanks

  J

Reply via email to