All Examples  All WebLogic Enterprise Connectivity Examples This Package  

Class examples.wlec.servlets.university.UniversityHelper

examples.wlec.servlets.university.UniversityHelper

public class UniversityHelper
This example demonstrates how a WebLogic Servlet can connect to WebLogic Enterprise and invoke operations on CORBA objects. This contains a set of methods which are called by the jsp servlets that are included as part of this sample.


Variable Index

 o gRegistrarObjRef
 o gStudentDetails
 o gTransCur

Constructor Index

 o UniversityHelper()

Method Index

 o get_course_details(java.lang.String courseNum)
 o get_courses(java.lang.String aCriteria)
 o getTransCur()
 o univInit()
Because there is no way to override the init method, we need to come up with a local initialization method that can be called from a jsp servlet.
 o verifyStudent(java.lang.String studentIden)

Variables

 o gRegistrarObjRef
public UniversityT.Registrar gRegistrarObjRef
 o gStudentDetails
public UniversityT.StudentDetails gStudentDetails
 o gTransCur
public org.omg.CosTransactions.Current gTransCur

Constructors

 o UniversityHelper
 public UniversityHelper()

Methods

 o get_course_details
 public UniversityT.CourseDetails[] get_course_details(java.lang.String courseNum) throws java.lang.Exception

Parameters:
courseNum - Course number
Throws: java.lang.Exception
if the servlet fails
 o get_courses
 public UniversityT.CourseSynopsis[] get_courses(java.lang.String aCriteria) throws java.lang.Exception

Parameters:
aCriteria - Course selection criteria
Throws: java.lang.Exception
if the servlet fails
 o getTransCur
 public org.omg.CosTransactions.Current getTransCur()
 o univInit
 public void univInit() throws java.lang.Exception
Because there is no way to override the init method, we need to come up with a local initialization method that can be called from a jsp servlet. It initializes the servlet. Here, we get the Bootstrap object, the Factory Finder and the Registrar factory during the startup.

Throws: java.lang.Exception
if the servlet fails
 o verifyStudent
 public boolean verifyStudent(java.lang.String studentIden) throws java.lang.Exception

Parameters:
studentIden - Student identity
Throws: java.lang.Exception
if the servlet fails

All Examples  All WebLogic Enterprise Connectivity Examples This Package