Hi


I work with Servlets and JSP accessing Oracle.
We are studing the possibility of use an Application Server and I would like
to understand which are the real advantages of that new element in my
architecture.

I know that objects cache, connections pool, EJB support are some of its
characteristics.

We are on that moment creating the "main" of the system, defining the
classes.
Question? Besides defining the classes we are also making the mapping to
database,
that is to say defining "FACTORYs" that creates objects of those classes
close to a database query.

Example:
Class Person{
String name;
int age;

public Person(String name, int age){
this.name = name;
this.age = age;
}
public String getName(){ return this.name;}
public int getAge(){ return this.age;}
}
Class FactoryPeople{
public static getPeopleAtName(String name){

'It makes the database qyery catching Person's Registration with the Name
' With ResultSet, it creates an object Person
return new People(rs.getString("name"),rs.getInt("age"));
}
}

If I acquire a Server of Applications, for example Oracle Application Server
can I model my classes
like this and to place in Application Server without problems?

How would a simple example be to write that class and make it avalaible
easily as a service EJB?


Excuse for the question, but and very important for me, because I know that
won't have rework.


Thank you for any comment.

Alvaro

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to