Hey,

2013/6/3 Burak Kulakli <[email protected]>:
> Hello,
>
> I need some help about mapping tables to the session.
>
> Let's say I have 2 logical applications which are derived from
> WContainerWidget. Both of these need mapping its tables to the
> session.
>
> I have only one session in a WApplication object. I can add all
> mappings to the session in application class but what if I want to add
> a third application.
>
> I mean, is there a way dynamically add mapping to sessions when I
> create a widget. Or in general, if I want to serve different dbo
> applications on a web address, what can I do?

There's no reason to keep the sessions in your application object, you
can also have them in a widget if that makes more sense; you can also
have more than one session in your application object.

You cannot dynamically map more tables to an existing session that has
already been used somehow (they're currently designed to interpret the
mapping to internal data structures only once). All calls to
mapClass() have to happen before doing anything else (but not
necessarily right after you create the session).

Regards,
koen

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to