beehive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Grealish" <agrea...@bea.com>
Subject RE: Hibernate Control 1.0-alpha-2
Date Wed, 21 Dec 2005 21:23:00 GMT
I am having trouble getting the Hibernate control to work on weblogic? 

I previously had this all working on Tomcat with an early beehive beta,
it is a much better solution that the database controls examples on the
website for numerous reasons...

I am now trying to update with the latest beehive release and the
Hibernate control has stop working.
(http://dist.codehaus.org/controlhaus/jars/controlhaus-hibernate-1.0-alp
ha-2.jar
)

I have attached the exception I get in the browser to this email in the
log file

Here's my control code.

Any help appreciated


@ControlImplementation
public class TestOwnersSessionImpl implements TestOwnersSession,
Serializable {
	private static final long serialVersionUID = 1L;
	
	@org.apache.beehive.controls.api.context.Context
ControlBeanContext context;
    @org.apache.beehive.controls.api.context.Context ResourceContext
resourceContext;
    
    @ManagedTransactions(true)
    @Control HibernateControl hibernate;

    public List getAllTestOwners() throws HibernateException {
    	
    	Session session = hibernate.getSession();
    	List testOwners = session.find("from TestOwner");
    	return testOwners;
    }
}


-----Original Message-----
From: Dan Diephouse [mailto:dan@envoisolutions.com] 
Sent: Tuesday, January 04, 2005 12:42 PM
To: beehive-dev@incubator.apache.org; beehive-user@incubator.apache.org
Subject: Hibernate Control 1.0-alpha-2

The 1.0-alpha-2 version of the Hibernate control is out. The release can

be download here:

http://hibernate.controlhaus.org/Download

Features in this release:
* The Hibernate control provides tight integration between Beehive and 
Hibernate allowing Hibernate to be accessed declaratively as a control
* Managed sessions
* Managed transactions
* A JUnit TestCase to help test your Hibernate applications

For more information please see the tutorial: 
http://hibernate.controlhaus.org/Tutorial

Cheers,

- Dan

-- 
Dan Diephouse
Envoi Solutions LLC
http://netzooid.com


Mime
View raw message