Greg Hess wrote:
Hi,
I have designed our service layer using normal classes, I initialize the
service layer on application start up and place them in the ServletContext.
I have been looking at this strategy and considering using Static methods as
well, as the only state in these classes is
Hi,
I had a discussion at work today concerning the best way to implement our
application. A very
basic discription of the framework would be the following:
1. Struts + Velocity for the view
2. Struts ActionServlets for the controller
3. Service layer/methods for querying persistence layer
4.
[mailto:[EMAIL PROTECTED]]
Sent: Monday, July 29, 2002 2:15 PM
To: Struts Users Mailing List
Subject: Architecture advice
Hi,
I had a discussion at work today concerning the best way to implement our
application. A very
basic discription of the framework would be the following:
1. Struts
Subject: Architecture advice
Hi,
I had a discussion at work today concerning the best way to
implement our
application. A very
basic discription of the framework would be the following:
1. Struts + Velocity for the view
2. Struts ActionServlets for the controller
3. Service layer/methods
, July 29, 2002 9:11 PM
Subject: RE: Architecture advice
Hi,
I have designed our service layer using normal classes, I initialize the
service layer on application start up and place them in the
ServletContext.
I have been looking at this strategy and considering using Static methods
as
well
: Architecture advice
Sounds like a how to implement a facade problem. I would make your
service layer a singleton with a factory method to retrieve the instance.
That way you avoid the static method calls and maintain the symantics of
passing messages to objects (the singleton). You also
for your time.
Regards,
Michael
- Original Message -
From: Chappell, Simon P [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, July 29, 2002 9:06 PM
Subject: RE: Architecture advice
Well, what we did to seperate Struts from the backend was to implement
List
Subject: Re: Architecture advice
Thanks to you also!
It´s a great help to hear other peoples experiences. What we
were worried
about is that all calls for a particular job would go via the
one and only
static method; i.e. thought it might become a bit of a
bottleneck. Did you
Subject: RE: Architecture advice
Not yet! Of course, the API methods are 100% passthrough. They exist only
to prevent M mixing with the V and C. To that extent, I am not too
worried.
Simon
-Original Message-
From: Michael Delamere [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 29
-
From: Michael Delamere [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 29, 2002 2:44 PM
To: Struts Users Mailing List
Subject: Re: Architecture advice
Nice to hear. I suppose worried was the wrong word :-) !
Basically our
experience with this type of architecture isn´t all that
great
: Michael Delamere [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 29, 2002 3:22 PM
To: Struts Users Mailing List
Subject: Re: Architecture advice
Am I understanding you correctly that you weren´t happy with the first
approach? What were your experiences that´s getting you to rethink the
matter
, July 29, 2002 8:59 PM
Subject: Re: Architecture advice
Sounds like a how to implement a facade problem. I would make your
service layer a singleton with a factory method to retrieve the
instance.
That way you avoid the static method calls and maintain the symantics of
passing
- Original Message -
From: Greg Hess [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, July 29, 2002 10:00 PM
Subject: RE: Architecture advice
I just recently seen an implementation that used static methods and I am
always trying to tread lightly
.
Thanks for your advice. I don´t know what I´d do without these lists! :-)
Michael
- Original Message -
From: David Graham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 29, 2002 9:59 PM
Subject: Re: Architecture advice
I chose not to implement a session facade in my
to the
factory and return an instance accordingly?
Thanks for your time.
Michael
- Original Message -
From: David Graham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 29, 2002 9:59 PM
Subject: Re: Architecture advice
I chose not to implement a session facade in my current
:[EMAIL PROTECTED]]
Sent: Monday, July 29, 2002 2:30 PM
To: Struts Users Mailing List
Subject: Re: Architecture advice
Thanks to you also!
It´s a great help to hear other peoples experiences. What we were worried
about is that all calls for a particular job would go via the one
ah... thanks for that. Certainly helps me get a better picture of the whole
process!
Regards,
Michael
- Original Message -
From: Kulp, Arian [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Monday, July 29, 2002 10:58 PM
Subject: RE: Architecture advice
On Mon, 29 Jul 2002, Chappell, Simon P wrote:
Date: Mon, 29 Jul 2002 14:06:03 -0500
From: Chappell, Simon P [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: Architecture advice
Well, what we did
:Michael Delamere [SMTP:[EMAIL PROTECTED]]
Sent:Monday, July 29, 2002 2:30 PM
To: Struts Users Mailing List
Subject: Re: Architecture advice
Thanks to you also!
It´s a great help to hear other peoples experiences. What
we were worried
about is that all calls
David Graham wrote:
Now we're onto how to design a factory method :-). So if you have
many different service objects you could just compose your
ServiceFacade of these objects and publish their interfaces. This is
the true use of the facade pattern so your code doesn't need to know
see below:
- Original Message -
From: David Graham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 29, 2002 11:11 PM
Subject: Re: Architecture advice
Now we're onto how to design a factory method :-). So if you have many
different service objects you could just
]
To: [EMAIL PROTECTED]
Sent: Monday, July 29, 2002 11:11 PM
Subject: Re: Architecture advice
Now we're onto how to design a factory method :-). So if you have
many
different service objects you could just compose your ServiceFacade of
these
objects and publish their interfaces
near bottom :-)
- Original Message -
From: Eddie Bush [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, July 29, 2002 11:37 PM
Subject: Re: Architecture advice
David Graham wrote:
Now we're onto how to design a factory method :-). So if you have
advice
Date: Tue, 30 Jul 2002 00:04:48 +0200
near bottom :-)
- Original Message -
From: Eddie Bush [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, July 29, 2002 11:37 PM
Subject: Re: Architecture advice
David Graham wrote:
Now we're onto how
- Original Message -
From: David Graham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 29, 2002 11:51 PM
Subject: Re: Architecture advice
Sorry Michael, it seems that I've confused the issue with this factory
method business. Forget everything about the factory, just
: Architecture advice
Naming services is certainly a great way to do configurable factory
methods
but I think what you want is still the facade.
From: Michael Delamere [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED
26 matches
Mail list logo