Obtaining DataContextPage edited by Andrus AdamchikChanges (1)
Full ContentDepending on deployment environment and application needs, Cayenne can be configured in a few different ways to make DataContext instances available. This is discussed in detail in deployment chapter. But basically it comes down to getting a hold of an instance of ServerRuntime and calling getContext() on it as described below. Obtaining a DataContext from the DI RuntimeServerRuntime runtime = ... ObjectContext context = runtime.getContext()
Change Notification Preferences
View Online
|
View Changes
|
Add Comment
|
- [CONF] Apache Cayenne Documentation > Obtaining DataContext confluence
- [CONF] Apache Cayenne Documentation > Obtaining DataCon... confluence
- [CONF] Apache Cayenne Documentation > Obtaining DataCon... confluence
- [CONF] Apache Cayenne Documentation > Obtaining DataCon... confluence
