You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by olivier brand <ob...@yahoo.com> on 2002/05/09 07:32:31 UTC

Clarification about ServiceLifecycle (part2) ?

This a follow up on my previous email.
As specified by the Jaxrpc spec, I would like to
achieve the following using Axis, is it implemented
yet (init(Context) and destroy)??

public class SunRegImpl implements ServiceLifecycle {
   Connection dbConnection = null;
   public void init(Object context) {
      String dbUrl =
  ((ServletContext)context).getInitParameter("dbUrl");
      dbConnection =
DriverManager.getConnection(dbUrl);
      //other relevant code
   }
      public void destroy() {
      //release the database connection
   }
   public Course[] getCourseInfo() {
   //get course information using the database
connection
   }
   public void registerCourseInfo(Employee emp,
Course[] courseArray) {
      //register for the course information using the
database connection
   }
}


__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Mother's Day is May 12th!
http://shopping.yahoo.com