On Jul 1, 2009, at 9:12 AM, David Just wrote:
I would like to use the JetspeedDS spring object as my datasource in a
SpringMVC portlet. However when I attempt to load the portlet it
fails
from not finding the JetspeedDS in the portlet's context.
My spring context for the portlet has this in it:
<bean id="sessionFactory"
class
="org.springframework.orm.hibernate3.annotation.AnnotationSessionFa
ctoryBean">
<property name="dataSource" ref="JetspeedDS" />
Thats because its in another web application and lives in a different
class loader. Jetspeed has a service backdoor to getting the data source
The Portal Statistics service is available for this purpose:
public DataSource getDataSource();
You can read about using services here:
http://portals.apache.org/jetspeed-2/tutorial/04/jetspeed-service.html
---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscr...@portals.apache.org
For additional commands, e-mail: jetspeed-user-h...@portals.apache.org