OT: Design Issue.

2005-09-01 Thread karthikeyan balasubramanian
Hi all,

This may not be exactly struts question but here is my scenario:

1. I will be reading data from a single table and displaying it to some 
users.
2. Assuming that there are 5 users at one time records read by one user 
should 
not be seen by others.
3. This single table size can be huge.

What is the efficient way to achieve this solution without getting into
table locking issues.

Looking forward for your response.

Karthikeyan B


Best Design Practice

2005-08-20 Thread karthikeyan balasubramanian
Hi all,

  I know this question has been asked before but still I would like to
get some expert opinion.

  If Struts only falls into UI layer then what you guys use for
Business Layer and Persistence Layer.  Is there a working example
which covers all these 3 layers with Struts falling into UI layer.

  Will save me lot of time thinking about proper layering :).

  Looking forward for your response.

Karthikeyan B

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts Business Logic :: Best Practices

2005-03-11 Thread karthikeyan balasubramanian
Hi all,

  Struts DB Access Best Practices thread gave me great insight on how
I should proceed with db operations.

  I have one more question.  Where do you keep your business logic
code.  Right now I am thinking to use

1. Struts(JSP, Actions) 
2. Simple class(Managers) to keep all our business logic code
3. IBATIS for database abstraction.

Actions can call Managers to get the job done and Manager can use
iBATIS to access DB.

Is this a good approach or is there a better approach than this?

Looking forward for your response.

Have a great day.

Karthikeyan B

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts DB Access :: Best Practices

2005-03-09 Thread karthikeyan balasubramanian
Hi all,

  Thank you all for inputs.

  Now my list has grown big :

1. Castor
2. JDO
3. iBATIS
4. Hibernate
5. OJB

I looked at iBATIS, it seems to be simple and easy to use.  I will
also check out
others and let you know my thoughts.

  Have a great day.

Karthikeyan B

On Wed, 09 Mar 2005 11:31:50 +0100, Sebastian Hennebrueder
<[EMAIL PROTECTED]> wrote:
> I do not completely agree here. You can choose from where you come and
> to where you go using Hibernate.
> 
> As other approach I only know EJB and here it depends on the tools you
> have. With xDoclet your start with the class and go to the db over the
> mappings.
> 
> Regards
> 
> Sebastian Hennebrueder
> 
> 
> 
> http://www.laliluna.de
> 
> Tutorials for JSP, JavaServer Faces, Struts, Hibernate and EJB
> 
> Günther Wieser wrote:
> > i prefer to use OJB for persistence, because i like the approach of coming
> > from the object world and define the mapping to the database, while
> > hibernate (and others) tend to come from the database and help you generate
> > classes.
> > OJB is very easy to use, and you won't see anything related like PK-FK or
> > "id" within your java code which makes it easy to read and has nothing
> > database related in it. but if you have the need to tune performance etc.
> > OJB gives you access to everything, inluding using stored procedures.
> >
> > kr,
> > guenther
> >
> >
> > --
> > Günther Wieser
> >
> > creative-it
> > Guglgasse 6/1/11/1
> > A-1110 Wien
> > Austria
> > http://www.creative-it.com
> >
> >
> > -Original Message-
> > From: karthikeyan balasubramanian [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, March 09, 2005 9:19 AM
> > To: user@struts.apache.org
> > Subject: Struts DB Access :: Best Practices
> >
> > Hi all,
> >
> >   I am planning to use Tomcat/Struts/MySQL in my project.
> >
> >   Database operation's can involve more selects and little bit of
> > update/insert operations.
> >
> >   I want to know what is the best way to access database using struts.
> >
> >   I did a research and found few good ways:
> >
> >   1. Struts using Castor.
> >   2. Struts using JDO.
> >
> >   I found Struts with Castor easy to use.  What you guys/gals think on "What
> > is the best practices to access DB from Struts?.
> >
> >   Any inputs here would enable me to make good decision :)
> >
> >   Looking forward for yours response.
> >
> >   Have a great day.
> >
> > Karthikeyan B
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts DB Access :: Best Practices

2005-03-09 Thread karthikeyan balasubramanian
Hi all,

  I am planning to use Tomcat/Struts/MySQL in my project.

  Database operation's can involve more selects and little bit of
update/insert operations.

  I want to know what is the best way to access database using struts.

  I did a research and found few good ways:

  1. Struts using Castor.
  2. Struts using JDO.

  I found Struts with Castor easy to use.  What you guys/gals think on
"What is the best
practices to access DB from Struts?.

  Any inputs here would enable me to make good decision :)

  Looking forward for yours response.

  Have a great day.

Karthikeyan B

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]