[opencms-dev] create siblings: not allowed in online project

Carl Alex Friis Nielsen cfn at kb.dk
Fri Jun 27 14:04:16 CEST 2008


why not let the scheduled job operate on the offline project and then publih the results ?

________________________________

Fra: opencms-dev-bounces at opencms.org på vegne af Hernandez Martínez, Julián
Sendt: fr 27-06-2008 12:41
Til: opencms-dev at opencms.org
Emne: [opencms-dev] create siblings: not allowed in online project






i've a  original jsp that finds an show  10 resources from a folder ( the total of resources from that folder is more than 1000).
This jsp takes a lot of time to execute and is executed every time a client makes a request to the home from the website.

In order to solve this I've created a scheduled job executed twice every day that call a new jsp that does the same of the last and
creates a sibling from the 10 resources selected in other specific folder and I've modified the original jsp to show the resources
from the other folder.

That doens't work because in the online project it is not allowed create siblings,:
org.opencms.file.CmsVfsException: Esta operación no está permitida en el proyecto "Online".

The other option was put all the code in the class executed in the scheduled job instead program a request to the jsp, but the CmsObject
doens't work, i suppose CmsObjects only works in jsp and servlet trought a request

If someone could make a suggestion thanks in advance

Julian


--
Abans d'imprimir aquest missatge en paper pensi si realment és necessari. El medi ambient és cosa de tots...

--
Advertència Legal
La present informació s'envia únicament a la persona a la que va dirigida i pot contenir informació
de caràcter confidencial o privilegiada. Qualsevol modificació, retransmissió, difusió o altre ús
d'aquesta informació per persones o entitats diferents a la persona a la que va dirigida no està
permesa. Si vostè l'ha rebut per error, si us plau contacti amb el remitent i esborri el missatge de
qualsevol ordinador. En el cas que aquest missatge sigui contestat per la mateixa via, s'ha de saber
que la seva resposta podria ser coneguda per tercers en entrar a la xarxa. Per això, si el
missatge inclou contrasenyes, números de targetes de crèdit o qualsevol altra informació que vostè
consideri confidencial, seria més segur contestar per una altra via i cancel·lar la seva transmissió.
L'Ajuntament de Cerdanyola del Vallès no pot assumir la responsabilitat derivada del fet de que terceres persones
puguin arribar a conèixer el contingut d'aquest missatge durant la seva transmissió.


_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev


-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 5297 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20080627/e71754ba/attachment.bin>


More information about the opencms-dev mailing list