Hi,
I have several T4 projects that use Cayenne successfully but now I would
like to start a new project in T5. Though I think I got my head wrapped
around the new IoC concept in T5, I still don't see the big picture.
Maybe someone can provide me with pointers to examples or simply explain
how I would set up the following:
- My application *mostly* does data mining, that is, read-only access to
a couple of databases
- At a few places, I would need to have write access but it's simple and
probably does not need transaction management (i.e. allow customers
to
update their email address)
- In my old projects, I have a shopping basket that builds temporary dao
objects until the user logs in. At that time, I merge those with the
actual dao's from the database
- At a single point in the app (submitting the order), I actually need
transaction management
- I would also love to go with Cayenne 3 and pojo dao's.
My questions:
1) How do I provide an DataContext/ObjectContext to my services? Is it
as simple as injecting a ContextProvider into the service
constructors?
2) Since I don't need transaction management most of the time, can I
simply
use a global ASO that has a DataContext/ObjectContext which I then
use
in my page classes if necessary?
3) How do I solve the serialization problem that arises when I submit
forms
that contain dao's?
4) How do I handle my submit order where I *do* need transaction
management?
Any help appreciated,
Andreas Pardeike
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]