hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Jakarta-hivemind Wiki] Update of "CayenneIntegation" by ChristianMittendorf
Date Sun, 23 Oct 2005 17:38:24 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-hivemind Wiki" for change

The following page has been changed by ChristianMittendorf:

New page:
ChristianMittendorf: I've done some testing on HiveMind integration of Cayenne. My solution
requires your webapp to use servlet specification 2.4 or newer (see [

Put a listener entry to your web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns=""

Add the service to your hivemind.xml:

	<service-point id="dataContextService" interface="de.example.hivemind.DataContextService"
	<implementation service-id="dataContextService">
			<construct class="de.example.hivemind.impl.DataContextServiceImpl" />

Create the Interface

package de.example.hivemind;

import org.objectstyle.cayenne.access.DataContext;

public interface DataContextService
	public DataContext getDataContext();

and the Implementation

package de.example.hivemind.impl;

import org.objectstyle.cayenne.access.DataContext;

import de.example.hivemind.DataContextService;

public class DataContextServiceImpl implements DataContextService
	public DataContext getDataContext()
		return DataContext.getThreadDataContext();

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message