Forums Register Login

Is it Right

+Pie Number of slices to send: Send
Hi All,<br>
Is it right to write business method in entity bean(BMP)?<br>
If not why?<br>
Thanks in Advance<br>
Sudhakar
+Pie Number of slices to send: Send
No, business methods don't belong in Entity Beans for simply one reason, tight coupling. You just coupled EJBs with business logic. What happens if you decide to no longer use Entity Beans, or EJBs, then you will have to rewrite all that business logic.

If you put that Business Logic in plain old Java objects, then those objects can go anywhere and you don't have to rewrite them.

Mark
+Pie Number of slices to send: Send
Oh, and HTML is not enables on this site, so you don't have to add "<br>" tags

But if you want formatted text when posting code, for instance, there are ten buttons under the Add Reply button, one is called Code, there are others that might interest you.

Mark
+Pie Number of slices to send: Send
Hi,
Thanks for the response. I had written one business method for updating my entity bean. I can't use ejbStore() because I have to do some modifcations to my CLOB data in the in the store after updating my record in the table.

Thanks
Sudhakar
rubbery bacon. rubbery tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 768 times.
Similar Threads
How to control anchor display position
layout and multibrowser hell
help me to make menu list float in CSS
"a name" tag
Javascript ScrollTo problem
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 11:48:17.