Hi, i'm getting my context this way: ObjectContext context =
DataContext.getThreadObjectContext(). How to know the domain that the
context is using? If i get context as a DataContext type i can obtain
the domain using : getParentDataDomain().getName() right? On my app i
have to change the domain under certain circumstancies and on my code
i'm trying to do something like this:
ObjectContext context = DataContext.getThreadObjectContext()
if (context.getDomain() == domainToQueryNow) {
return context;
} else {
DataContext.createDataContext(domainToQueryNow);
}
TIA.
This archive was generated by hypermail 2.0.0 : Wed Sep 02 2009 - 03:56:53 EDT