Hi,
I've done exactly what you suggest, custom business objects, because EJBs
are not supported in ND4.

Some things to think about:
1.  Using custom classes, you have to figure out how to get ND to
instantiate  and garbage collect them in a way that is consistent with ND's
strategy for management of pages, data objects, and other application
objects that they recognize.

I hang my objects off pages, which seems to work, but I can't share any of
my objects between pages.  I can't optimize resources dedicated to my
objects vs. those dedicated to ND's objects.

2.  Whether you use EJBs or not, your objects will have to be instantiated.
 You will have to tie the instantiation of your objects into ND's init
processing.  By default, at least in my experience, your objects will be
instantiated during user sessions.

3.  I think you will have to make a greater effort to write truly portable
code if you don't use EJBs.  EJB, with its defined interfaces, forces you
to think more clearly about what is yours and what is ND's.

-- Curt Springer, Team ND


At 04:46 PM 7/7/99 +0200, Jes�s Vi�uales Bueno wrote:
>Hi All,
>
>I'm just getting started with ND. This is my first ND project, so I have
>lots of doubts about ND applications design.
>
>All of us understand the importance of separating the front-end from the
>business logic (mainly in large projects).
>So here is my doubt: why should I use EJB to encapsulate the business logic?
>
>I mean. What would be the major difference between implementing EJBs and
>creating a java package with the business classes (added to my project as
>"user modules")?
>Let's consider the characteristics of Java: any classes accessible via
>Classpath can be used by any running application. So, if well designed, they
>match my definition of "component".
>
>Is there any _real_ advantage in using EJBs to do this?
>And on the other hand: won't EJB instantiation slow down my system?
>
>Can anybody help me?
>
>Thanks a lot and sorry for my English.
>
>Jes�s
>
>
>________________________________________________________________________
>For help in using, subscribing and unsubscribing to the discussion
>forums please go to: http://www.netdynamics.com/support/visitdevfor.html
>
>For dire need help, email: [EMAIL PROTECTED]
> 
_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to