Hi list,

I'm new to the list, so first of all, thank you for the great tool
Castor is !

So... May I serialize a persistent object and use it as a value object ?

The idea is to use castor jdo in my EJB tier (jboss-castorjdo), then
return the object implementing persistent as a value object.

I would have something like :

class Order implements Persistent, Serializable, TimeStampable {
        ...
        }

Then I return it from my EJB tier to my web tier (it is serializable).

I present it tot the user (I use Barracuda to handle the presentation
stuff and event stuff).

Eventually, I modify it in the web tier and pass it back to the EJB.
The EJB updates it into database via jdo (it is Timestampable, since
there should be a long time inbetween).

Would such a scenario be consistant ?
And what kind of EJB would you use (I'm thinking of a stateless session
EJB, but am new to J2EE development...) ?

Thanks for your help.

Franck Routier

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to