For Programmers: Free Programming Magazines  


Home > Archive > Java Beans > February 2005 > Advice on writing POJOs for EJBs









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Advice on writing POJOs for EJBs
exquisitus

2005-02-25, 3:59 pm


I am writing some plain old java objects (POJOs) in a library (i.e. set
of packages). I intend to use this library later on, to devlop EJBs (by
writing an EJB wrapper and delegating to my POJOs).

I have two questions:

1). Should I be worried about "enterprise" issues like threading, etc
in my POJO, or will the EJB infrastructure take care of the implementation.

2). What is the best way to write the POJO library - e.g. should I
declare all (public) methods as static final ? - Is there a best way of
writing such a POJO ?

look forward to your informed responses


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com