Hi,

I'm hoping somebody can point me in the right direction, please...

I've been looking at Woody and the bean binding sample included in 2.1.(x),
and wondering how i can synchronize the bean with the database, or at least
what's the best way of doing this.

>From reading other posts, I'm thoroughly confused! Best I can figure, the
options are:

* code the connection into the bean itself (or Helper class), using ctx
lookup. [How can Helper class be Composable, or does Helper by-pass Avalon
entirely, perhaps with direct jndi/j2ee datasource lookup?]

* use javascript such as database.js included in the petstore sample to get
a DataSourceComponent/connection and update the bean to/from db in the
(woody) flowscripts

* use Actions (Composable) to lookup a DataSourceComponent and handle db
interraction. How to reference the user's stored (continuation) bean
instance data?

Just for the record, I'm aware of the O/R mapping possibilities using OJB,
and Hibernate, but think I need more basic understanding before potentially
tackling these options. I've also read with interest how betwixt/castor can
be used to output XML representation of a bean for Woody to bind to, but
would still have to ask, how/where can db synchronization be handled?

Thanks for any pointers
James



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to