Dear All,
We want to design/code some batch programs which we need to run in EJB
environments. Some of the business logic is built in Statefull Session
beans and some in Entity beans. These beans are used from the Web Tier
talking to the EJB Tier. There is a requirement where we need to run
some processes as batch which uses the "SAME" business logic defined
in the beans (both statefull SB, stateless SB and Entity beans). Have
any of you folks faced a similar problem?

The solution which I have in mind is to use delegation. Have concrete
classes which will implement the business logic. The beans instead of
implementing the business logic will delegate requests to these
classes.

Are there any better and proven solutions?

I feel little uncomfortable to use EJB's in batch processes. Also,
responses to my earlier post regarding NAS 4.0, few people had
problems in talking to EJB's from environment other that servlets and
JSP's.

In case this has been discussed earlier in the list, please provide
pointers.
Thanks with regards,
ravindra

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to