"Why all of the fuss over EJBs?"
"I hear EJBs don't perform well and aren't ready for prime-time production
use."
"I use servlets and JSPs and see no reason to invest in an application
server that supports enterprise beans."
"I can code my servlets and JSPs to do the same things as enterpris
I obviously missed part of this discussion -- a negative side effect of
trying to do my job while keeping up with this list. And I don't have a lot
of time to respond to this fully. However, I find it necessary to disagree
with the contention that JavaBeans are Session Beans, DAO classes are Entit
Hi.
I am Jim Cakalic.
A man goes into a pet shop to buy a parrot. The shop owner points to three
identical looking parrots on a perch and says, "the parrot on the left costs
500 dollars".
"Why does the parrot cost so much," asks the man.
The shop owner says, "well, the parrot knows how to use
We're using WebSphere Advanced 4.0.2 with a nightly build of Struts from
January. We've got a somewhat "non-traditional" EJB implementation -- only
one stateless session bean that acts as an in-container target for commands.
And we are not using JSP -- all our presentation is done using Enhydra XM
Hmm. Sure are a lot of people interested in a chapter on EJBs when this is
supposed to be a book about Struts.
;-)
> -Original Message-
> From: Dariusz Wojtas [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 29, 2002 2:19 AM
> To: Struts Users Mailing List
> Subject: Re: Preview OReilly
I have only the "usual" advice which is to say that all of Vector's methods
are synchronized. Choosing Vector as your "standard" collection results in
the overhead, whatever that is these days on your JVM, of synchronization
when synchronization might be completely unnecessary in your case. Also,
Hmm ... "Developer formerly known as 'Chuck'"?
> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 19, 2002 5:42 AM
> To: 'Struts Users Mailing List'
> Subject: RE: OReilly Struts book
>
>
> Could be worse...you could be owned by the recording
O'Reilly has posted a series of articles on Struts. The third article talks
of calling EJBs directly from your Actions. Personally, I probably wouldn't
have done it this way. I would have introduced a "Business Delegate" class
that encapsulated the business logic, separating it from concerns/knowl
IBM has published some "Best Practices" material that I consider excellent
guidance. Although some of the material may be specific to WebSphere, the
recommendations are likely relevant to most application servers. Here is the
link to the specific best practice. Don't know if this will come across
To: [EMAIL PROTECTED]
> Subject: RE: What do you call them beans?
>
>
> On Tue, 12 March 2002, "Cakalic, James" wrote:
> > These Business Objects are what I referred to before as
> "Business Delegates"
> > or "Command Beans". Real
IMO, the problem with using "DAO" is that Data Access Objects are really in
a lower layer of the architecture than the layer you are addressing. At
least according to the pattern descriptions I have read, including that in
Core J2EE Patterns. In fact, the structure and sequence diagrams in that
bo
I've heard such objects called "Business Delegates". This is the name of a
pattern in the Core J2EE Patterns with the intent of decoupling the
presentation tier clients and the business services that they require. It is
helpful in hiding the underlying complexity of the service implementation
and
Absolutely right, Oliver.
Mike, here is a link to a JavaWorld article on this topic that may interest
you:
http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html
Jim
> -Original Message-
> From: Oliver Refle [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 27, 2002 8
that calls the DAOs? I'm
> assuming so? Any ideas
> on naming?
>
> Also, has anyone implemented this pattern with the
> DispatchAction class in
> Struts?
>
> Thanks,
>
> Matt
>
> --- "Cakalic, James" <[EMAIL PROTECTED]> wrote:
>
ular class that calls the DAOs? I'm
> assuming so? Any ideas
> on naming?
>
> Also, has anyone implemented this pattern with the
> DispatchAction class in
> Struts?
>
> Thanks,
>
> Matt
>
> --- "Cakalic, James" <[EMAIL PROTECTED]>
It may seem like a long way around for some, but the pattern I have been
applying is to keep the ActionForm classes as presentation objects, have
"data model" classes that represent the fields in the database for
persistence, and between these, have value objects that represent the true
"object mo
== Rolling on the floor laughing my ass off
> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 1:57 PM
> To: 'Wes Bramhall '; ''Struts Users Mailing List' '
> Subject: RE: EJB = bad = MS.net
>
>
> ROTFLMAO!
>
> Mark
>
> -Orig
I'm not sure it is entirely off-topic, Alex. Many people are concerned, and
rightly so, about application of technologies and design patterns in the
development of systems which are also utilizing Struts. Sometimes the use of
a framework like Struts can result in confusion by less enlightened ones
on cnct DbUtils.getConnectionWithTransaction(..)
> >DBUserValidator.saveToDb(cnct);
> >DBAuthorisationValidator.saveToDb(cnct);
> >DbUtils.commit(cnct);
> > } catch (Exception e) {
> >DbUtils.backout(cnct);
> >throw e;
> >
I'm using WebSphere Studio Application Developer.
Jim
> -Original Message-
> From: Dave Wellman [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 21, 2002 11:41 AM
> To: [EMAIL PROTECTED]
> Subject: Development Environment
>
>
> Hello,
>
> Quick question, what is the preferred deve
use
> them only if you are driven to it ie. there is a significant
> real requirement.
> If high volumes are required you will need to performance
> test your app & have
> expert tuners available etc.
> Time for some-one to complain - this is off topic!
> PS I never used EJ
Hmm. And this guy claims to be training other developers using Struts. If
this is the kind of ranting that goes on in his book then its no longer a
wonder to me why people have blasted it so mercilessly.
Ever tried to do a distributed transaction across multiple database
connections? Hard enough
Pre-JDK 1.4, the only way I know to do this required getting and parsing the
stack trace. It can get rather ugly. You might look at the log4j
LocationInfo class as example.
JDK 1.4 added a Throwable.getStackTrace() method which returns an array of
StackTraceElement objects, providing a much clean
And then return null as the ActionForward to indicate that there is nothing
more to do.
> -Original Message-
> From: John M. Corro [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 15, 2002 3:09 PM
> To: Struts Users Mailing List
> Subject: Re: Itext -> PDF from struts
>
>
> In our ca
Another alternative to consider is Enhydra XMLC. As explained on the web
site:
"Enhydra XMLC radically simplifies web development by cleanly separating
presentation from code. Enhydra XMLC parses a HTML file and creates a Java
object that enables an application to change the HTML file's content a
Just to clarify one step further, while Sun _does_ release JDK ports for x86
Linux, that is not the _only_ platform on which Linux runs. Linux is also
available on:
Alpha (DEC)
ARM
Hitachi SuperH
HP PA-RISC
IBM iSeries (aka AS/400)
IBM zSeries
IBM S/390
MIPS (DEC, SGI and others)
Motorola 68K (At
Hmm. Just because it appears in the JDK doesn't mean that it is a "good
thing". The original JSR47 has changed substantially from its original
specification due, in no small part, to the efforts of the log4j community.
Even so, its current incarnation still pales in comparison to log4j. You
might
A Struts-specific book will not doubt be welcome by the existing community
and attract new developers. Being a new Struts user, I like the
off-the-shelf MVC implementation, especially now that validation and
authorization can be integrated. It appears that you'll cover these concepts
and capabilit
Sorry if I'm arriving a little late to this thread. And I may be about to
show level of JSP ignorance but ...
It was my understanding that the 64K code limit was not the size of the
class but the bytecode size of any one method. Normally, the JSP compiler
generates a servlet that puts all of the
Hi Jack and Dustin.
>> Having only worked with Struts for a couple of months, I'm
>> beginning to wonder about the costs and benefits of using Struts,
>> or any other JSP tag library, for that matter.
>
> I'm glad you're bringing this up, since we're at a major
> decision point right now conc
If I had more time I would comment on this more fully as it seems some of
the ideas being expressed here are off-the-mark and short-sighted.
I don't mean to go on a rant here, but my job would be much easier if we
just used JSPs and JDBC. To heck with those creative types; if they can't
read our
Ted Husted wrote:
> Personally, I'd think in terms of putting whatever you have
> in mind for an Action into a servlet, so that it is not coupled
> directly with Struts.
>
> I have been working with the Velocity team on finishing the work
> Geir started last spring. We should have an improved
Servlet.
> This would also allow you to share ActionForms and ActionMappings
> between Action objects.
>
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Custom Software ~ Technical Services.
> -- Tel +1 716 737-3463
> -- http://www.husted.com/struts/
>
>
> "Cak
I'm interested (I think) in "action-chaining". I'd like to use struts for
development in a project just ramping up. However, I plan to _completely_
abandon JSP and use XMLC to generate the presentation. To do this I intended
to split processing between a request-Action and a response-Action. The
r
You guessed correctly. His Struts page is here:
http://husted.com/struts/
The catalog in question is here:
http://husted.com/about/scaffolding/catalog.htm
Excellent site to bookmark.
Best regards,
Jim Cakalic
> -Original Message-
> From: Knee, Jeff [mailto:[EMAIL PROTECTED]]
> Sent: Wed
This may, in part, depend on how your session bean acquires the connection.
On my project we are using WebSphere (currently 3.5.x) and Oracle 8i. When
the project started, Oracle's JDBC drivers were not fully JTA compliant so
WebSphere could not use them in two phase commit operations. As the proj
Quoting from the Struts User's Guide:
"The controller servlet creates only one instance of your Action class, and
uses it for all requests. Thus, you need to code your Action class so that
it operates correctly in a multi-threaded environment, just as you must code
a servlet's service method safe
37 matches
Mail list logo