hi,

I want to find out if i have one table called customer having primary key
called customerno.  The same key (customerno) is present in other tables as
well.  I am using EJB 1.2 (Weblogic)

first question:

What should be my primary key classes in the following situation.  I am
using CMP here:


1.      when my customerno key is present in other tables as primary key and they
have their own primary keys as well.
2.      when my customerno key is present in other tables not as primary key and
that table do not have any primary key.
3.      when my customerno key is present in other tables not as primary key and
that table is having their own primary keys.

I want to find out whether i am doing write thing by following the below
solution to the above problem

1.      i make compound primary key class where i write all the primary keys and
return reference of those keys
2.      i use customerno as my primary key class for all the tables and use that
primary key in my entity bean.
3.      i use their respective primary key classes to call those tables.  i dont
consider customerno in this case.

second question:

We are using JSP as front end and java beans in between JSP and EJB.  I want
to know is it a right approach or i should try and using servlets in between
JSP and EJB.  if i am using java beans then wont it make my call to ejb
difficult if i am doing following:

1.      I am writing get and set methods in my java beans to call session beans
2.      I am mentioning again add and fetch methods in my session beans (instead
of get and set to distinguish between entity and session).
3.      I am writing get and set methods in my entity beans alongwith other
methods such as update, delete methods
4.      my one method in session bean is calling two three methods in entity.
5.      my session and java beans methods are same.

third question:

where do i use ACL for limiting my authorisation among users.

thx in advance
sonika

===========================================================================
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