Re: Architecture advice....

2002-07-31 Thread Peter A. J. Pilgrim
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

Architecture advice....

2002-07-29 Thread Michael Delamere
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.

RE: Architecture advice....

2002-07-29 Thread Greg Hess
[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

RE: Architecture advice....

2002-07-29 Thread Chappell, Simon P
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

Re: Architecture advice....

2002-07-29 Thread Michael Delamere
, 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

Re: Architecture advice....

2002-07-29 Thread Michael Delamere
: 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

Re: Architecture advice....

2002-07-29 Thread Michael Delamere
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

RE: Architecture advice....

2002-07-29 Thread Chappell, Simon P
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

Re: Architecture advice....

2002-07-29 Thread Michael Delamere
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

RE: Architecture advice....

2002-07-29 Thread Chappell, Simon P
- 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

RE: Architecture advice....

2002-07-29 Thread Greg Hess
: 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

Re: Architecture advice....

2002-07-29 Thread David Graham
, 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

Re: Architecture advice....

2002-07-29 Thread Michael Delamere
- 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

Re: Architecture advice....

2002-07-29 Thread Michael Delamere
. 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

Re: Architecture advice....

2002-07-29 Thread Michael Delamere
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

RE: Architecture advice....

2002-07-29 Thread Kulp, Arian
:[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

Re: Architecture advice....

2002-07-29 Thread Michael Delamere
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

RE: Architecture advice....

2002-07-29 Thread Craig R. McClanahan
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

RE: Architecture advice....

2002-07-29 Thread Chappell, Simon P
: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

Re: Architecture advice....

2002-07-29 Thread Eddie Bush
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

Re: Architecture advice....

2002-07-29 Thread Michael Delamere
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

Re: Architecture advice....

2002-07-29 Thread David Graham
] 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

Re: Architecture advice....

2002-07-29 Thread Michael Delamere
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

Re: Architecture advice....

2002-07-29 Thread David Graham
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

Re: Architecture advice....

2002-07-29 Thread Michael Delamere
- 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

Re: Architecture advice....

2002-07-29 Thread Michael Delamere
: 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