Dispelling EJB myths

2002-04-18 Thread Cakalic, James
"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

RE: Struts vs EJB, thoughts?

2002-04-16 Thread Cakalic, James
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

RE: Friday funny -- Jim Cakalic

2002-04-12 Thread Cakalic, James
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

RE: New Site

2002-04-10 Thread Cakalic, James
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

RE: Preview OReilly Struts Chapters Online - Soon

2002-03-29 Thread Cakalic, James
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

RE: How can I used html:select with a Collection of String

2002-03-19 Thread Cakalic, James
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,

RE: OReilly Struts book

2002-03-19 Thread Cakalic, James
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

RE: Calling EJB's in struts

2002-03-18 Thread Cakalic, James
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

RE: amount of data stored in session

2002-03-13 Thread Cakalic, James
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

RE: What do you call them beans?

2002-03-12 Thread Cakalic, James
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

RE: What do you call them beans?

2002-03-12 Thread Cakalic, James
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

RE: What do you call them beans?

2002-03-12 Thread Cakalic, James
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

RE: How best to get SQL:JDBC data?

2002-02-27 Thread Cakalic, James
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

RE: DB Access from Struts

2002-02-26 Thread Cakalic, James
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: >

RE: DB Access from Struts

2002-02-26 Thread Cakalic, James
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]>

RE: DB Access from Struts

2002-02-26 Thread Cakalic, James
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

RE: EJB = bad = MS.net

2002-02-22 Thread Cakalic, James
== 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

RE: EJB = bad = MS.net - worrisome flow of ignorant off-topic "a dvice" on this board

2002-02-21 Thread Cakalic, James
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

RE: Code To Update DB With Transactions (was RE: EJB = bad = MS.net)

2002-02-21 Thread Cakalic, James
on cnct DbUtils.getConnectionWithTransaction(..) > >DBUserValidator.saveToDb(cnct); > >DBAuthorisationValidator.saveToDb(cnct); > >DbUtils.commit(cnct); > > } catch (Exception e) { > >DbUtils.backout(cnct); > >throw e; > >

RE: Development Environment

2002-02-21 Thread Cakalic, James
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

RE: EJB = bad = MS.net

2002-02-20 Thread Cakalic, James
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

RE: EJB = bad = MS.net

2002-02-20 Thread Cakalic, James
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

RE: Determining the name of a calling class

2002-02-15 Thread Cakalic, James
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

RE: Itext -> PDF from struts

2002-02-15 Thread Cakalic, James
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

RE: Process in a struts project

2002-01-29 Thread Cakalic, James
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

RE: RES: handling exceptions

2002-01-28 Thread Cakalic, James
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

RE: RES: handling exceptions

2002-01-28 Thread Cakalic, James
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

RE: OReilly Struts book

2002-01-28 Thread Cakalic, James
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

RE: html:option and the 65k wall

2002-01-25 Thread Cakalic, James
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

RE: Wondering About Struts...

2002-01-22 Thread Cakalic, James
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

RE: AW: accessing EJB components from a Struts application?

2001-12-19 Thread Cakalic, James
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

RE: action chaining without resetting action forms

2001-12-07 Thread Cakalic, James P.
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

RE: action chaining without resetting action forms

2001-12-07 Thread Cakalic, James P.
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

RE: action chaining without resetting action forms

2001-12-06 Thread Cakalic, James P.
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

RE: Ted's catalog

2001-12-05 Thread Cakalic, James P.
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

RE: Connections & Transactions

2001-12-05 Thread Cakalic, James P.
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

RE: Member variables in Actions

2001-11-21 Thread Cakalic, James P.
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