Rian,
If you
access the stored procedures from a slsb, its just like you ran a jdbc from a
stand alone program or a servlet, only you are using the middle-tier to provide
the business method facade to the stored procedure. I would not recommend
accessing the stored procedures through the cmp...use a slsb. If a create in the
cmp is used, and the stored procedure is necessary for the create or postcreate,
use the slsb from the cmp create or postcreate.
An
example of stored procedures is Jive's forum application. It uses stored
procedures directly from jdbc calls. Jives runs the java forums on the sun site.
I believe the code is freely available. I think the message filters are stored
procedures, which means that every access of a forum message goes through a
store procedure from a servlet...and this forum is pretty
darn fast....so there should be no bottle neck from using jdbc and store
procedures.
As for
migrating the business methods from the stored procedures to the slsb's, this
can be done more easily if the slsb is used as a facade for the cmp. Thus you
can use business methods which require direct jdbc access (count(), for example
versus a cmp findAll().size()) or cmp access or stored procedures (again, jdbc
access) as necessary for performance.
So...if the architecture is properly implemented, there should be no hit
on performance.
Regards,
the
elephantwalker
|
- Stored procedures and J2EE Cristian Donciulescu
- RE: Stored procedures and J2EE The elephantwalker
- RE: Stored procedures and J2EE Cristian Donciulescu
- RE: Stored procedures and J2EE The elephantwalker
- Re: Stored procedures and J2EE Rian Schmidt
- RE: Stored procedures and J2EE The elephantwalker
- RE: Stored procedures and J2EE Juan Lorandi (Chile)
- RE: Stored procedures and J2EE Bill G
- RE: Stored procedures and J2EE The elephantwalker
- RE: Stored procedures and J2EE Bill G
- Re: Stored procedures and J2EE Daniel López
- RE: Stored procedures and J2EE Frank Eggink
- RE: RE: Stored procedures and J2EE Troy Wong
- RE: RE: Stored procedures and J2EE Frank Eggink