Question
Unable to refer to a relative path on the server within Pega code
Hello,
Our application is built on 6.1SP2. We have two JVMs on a node and two PEGA deployments, one on Catalinabase0, other on Catalinabase1. The tomcat starts on catalinabase0/conf and catalinabase1/conf.
We have a custom war with download and upload servlets to read,write and download files from catalinabase0/webapps/prweb/temp or catalinabase1/webapps/prweb/temp.To make these servlets work, we modified the web.xml to the relative path {$catalina.base}/webapps/prweb/temp. But, we do also have a function in Pega to write urls,filenames to a properties file on this path. The problem is we are unable to pass the relative path to this function as the context for it is catalinabase/conf.
Is there a way to give relative path like ../webapps/prweb/temp in PEGA?
We do not want to write to our explicittempdirectory as our checkin functionality will not work when the marker file is deleted
***Moderator Edit-Vidyaranjan: Updated SR details***
Hello!
After discussing your post with our internal subject matter experts they have asked for some clarification.
The function that you're referring to, is it one of ours or did you create one yourself?
Could you provide more information as to what is going wrong?
Have you considered using the "Connect-File" method in Activity?
Thanks!