You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-user@portals.apache.org by Eric Chow <er...@gmail.com> on 2007/03/28 15:54:07 UTC

Embedding Pluto-1.1

Hello,

I am embedding Pluto-1.1 into my project.
In fact, I develop(modify) a simple portal server based on the
Pluto-1.1 portal driver.

The current features of my simple portal can support:
- User baesd pages, portlets customization
- theme registration
- portlet registration
- JAAS LoginModule (LDAP, JDBC)
- Hibernate support
- etc


In fact, I have 2 critical problems need to solve and have no idea on it:
1. For the Hibernate Service, how can I retrieve the Hibernate Service
from any of the Portlet even though the portlets come with another
context. For example,
 portal.war is the main portal, and there is a test.war contains
another portlets.
The Hibernate Service defines in the portal.war, all the portlets in
the portal.war can reference the HibernateService without any problem
but failed in test.war. Any idea on it? I tried to put those related
classes into the shared/lib, also failed.


2. For the theme deployment, how can I deploy a theme in different context?
 - I tried to deploy it in different context, but failed in the
...Dispatcher.include(...)?
   Please help.


Best regards,


Eric

Re: Embedding Pluto-1.1

Posted by "David H. DeWolf" <dd...@apache.org>.

Eric Chow wrote:

Let's keep this on the user list.  No reason to double post.  I've 
copied both lists so we don't have two threads going, but from now one, 
everyone please only reply on the user list.

See comments below. . .

> Hello,
> 
> I am embedding Pluto-1.1 into my project.
> In fact, I develop(modify) a simple portal server based on the
> Pluto-1.1 portal driver.
> 
> The current features of my simple portal can support:
> - User baesd pages, portlets customization
> - theme registration
> - portlet registration
> - JAAS LoginModule (LDAP, JDBC)
> - Hibernate support
> - etc
> 

Cool.  Have a url?  Is it open source?

> 
> In fact, I have 2 critical problems need to solve and have no idea on it:
> 1. For the Hibernate Service, how can I retrieve the Hibernate Service
> from any of the Portlet even though the portlets come with another
> context. For example,
> portal.war is the main portal, and there is a test.war contains
> another portlets.
> The Hibernate Service defines in the portal.war, all the portlets in
> the portal.war can reference the HibernateService without any problem
> but failed in test.war. Any idea on it? I tried to put those related
> classes into the shared/lib, also failed.

There is a container interface which allows you to register portal 
callback lifecyle hooks (PortletInvocationListener).  This will allow 
the portal driver to call back to your customized code (in the portal) 
immediately before (and after) the portlet invocation.  By registering 
this, you have the opportunity to prepare things for the portlet through 
a class loaded by the portal classloader.  Give it a whirl and if you 
have any additional questions, ping the list.

> 
> 
> 2. For the theme deployment, how can I deploy a theme in different context?
> - I tried to deploy it in different context, but failed in the
> ...Dispatcher.include(...)?

Hmmm. . .you could do:

getServletContext("theme").getRequestDispatcher("/path/to/theme").include(req, 
res). . .

but could you explain your use case a little more first.


>   Please help.
> 
> 
> Best regards,
> 
> 
> Eric
> 

Re: Embedding Pluto-1.1

Posted by "David H. DeWolf" <dd...@apache.org>.

Eric Chow wrote:

Let's keep this on the user list.  No reason to double post.  I've 
copied both lists so we don't have two threads going, but from now one, 
everyone please only reply on the user list.

See comments below. . .

> Hello,
> 
> I am embedding Pluto-1.1 into my project.
> In fact, I develop(modify) a simple portal server based on the
> Pluto-1.1 portal driver.
> 
> The current features of my simple portal can support:
> - User baesd pages, portlets customization
> - theme registration
> - portlet registration
> - JAAS LoginModule (LDAP, JDBC)
> - Hibernate support
> - etc
> 

Cool.  Have a url?  Is it open source?

> 
> In fact, I have 2 critical problems need to solve and have no idea on it:
> 1. For the Hibernate Service, how can I retrieve the Hibernate Service
> from any of the Portlet even though the portlets come with another
> context. For example,
> portal.war is the main portal, and there is a test.war contains
> another portlets.
> The Hibernate Service defines in the portal.war, all the portlets in
> the portal.war can reference the HibernateService without any problem
> but failed in test.war. Any idea on it? I tried to put those related
> classes into the shared/lib, also failed.

There is a container interface which allows you to register portal 
callback lifecyle hooks (PortletInvocationListener).  This will allow 
the portal driver to call back to your customized code (in the portal) 
immediately before (and after) the portlet invocation.  By registering 
this, you have the opportunity to prepare things for the portlet through 
a class loaded by the portal classloader.  Give it a whirl and if you 
have any additional questions, ping the list.

> 
> 
> 2. For the theme deployment, how can I deploy a theme in different context?
> - I tried to deploy it in different context, but failed in the
> ...Dispatcher.include(...)?

Hmmm. . .you could do:

getServletContext("theme").getRequestDispatcher("/path/to/theme").include(req, 
res). . .

but could you explain your use case a little more first.


>   Please help.
> 
> 
> Best regards,
> 
> 
> Eric
>