cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: more than one ObjEntity mapped to class problem
Date Fri, 08 Aug 2008 21:23:23 GMT

On Aug 8, 2008, at 5:17 PM, Chris Gamache wrote:

> On Fri, Aug 8, 2008 at 3:08 PM, Andrus Adamchik <andrus@objectstyle.org 
> >wrote:
>
>> org.apache.cayenne.conf package classes log all startup info. So  
>> that can
>> be used for debugging. Of course if you merge configs by hand,  
>> you'd have to
>> implement your own logging.
>
>
> I guess you're referring to the method I use to load multiple  
> configurations
> at DataContext creation time... :) So, I dropped in a logging  
> facility into
> my ContextCreator to iterator over the ObjEntity collection. There's  
> tons of
> information to choose from. What would be your advice on what to  
> look for?

Loading DataMap events.

Or you can just shoot in the dark, and synchronize your custom config  
loading code; or implement eager loading on app startup (from a filter  
or a listener method) that will be done in a single threaded fashion.

Andrus


Mime
View raw message