Jetspeed2 Statistics Engine

Jetspeed 2 has inbuilt feature of statics, statics engine track all the portlet, pages and users.
All this information stored in database. so can be access and used any time.

statics engine keep track of

Number of time served
Max time taken in executing page/portlet
Avg time taken in executing page/portlet
Min time taken in executing page/portlet

It doesn’t have very good interface, but very use full of statics purpose for porltet
As only container can tell exact time take in execution of a portlet

Jetpseed2 allows you to disable statistics engine. by tweaking [/WEB-INF/assembly/statistics.xml].
It also gives small performance boost.

logging to console can be enable/disable by changing the constructor-0 argument to ture or false.
Database logging can be enable/disable by changing the constructor-1 argument to true or false.

<beans>
<!-- Statistics Implementation -->
<bean id="PortalStatistics"
class="org.apache.jetspeed.statistics.impl.PortalStatisticsImpl"
init-method="springInit"
destroy-method="springDestroy"
>
<!-- logToCLF -->
<constructor-arg index='0' type="boolean"><value>false</value></constructor-arg>

<!-- logToDatabase -->
<constructor-arg  index='1'  type="boolean"><value>true</value></constructor-arg>

Configure Forget password in Jetspeed2

In Jetspeed 2 portal registered users can retrieve there password using via email.
In lot of instance portal administrator doesn’t configure mail server properly, Which causes this problem.
Portal Administrator should fill following configuration in administration.xm under (WEB-INF/assembly/) to enable mail sending from jetspeed 2

<beans>
<bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
<property name="host"><value>localhost</value></property>
<property name="username"><value></value></property>
<property name="password"><value></value></property>
<property name="javaMailProperties">
<props>
<prop key="mail.smtp.auth">false</prop>
</props>
</property>
</bean>

Import or export PSML in Jetspeed-2

Jetspeed 2 gives you an user-friendly interface to import or export psml/link/folder from portal. Its doesn’t matter that you are using db or file system to store your pages. This feature is available in portal site manager.

export_import
For importing or exporting, you just need to select the node from tree structure and export or import option would be available in right side panel.

Export

Select any page, folder or link from tree in left panel and export tab would be available at right panel, if selected object is an folder, it will give you an option for exporting recursively, all object under that folder would be exported and available, as archive for download.

Import

For importing any object in portal, first you need to select the its parent in tree, after that select import tab from right panel and select any link, psml or zip file (in case, you wanted any folder need to import). Portal would import all valid object in tree.