I`m trying to use a file that can be accessed by all deployed portlets (portlets are in diferents war files).
I think the way to stablis the path for this file is using PortalContext properties but I don`t know in which file can I set this properties.
Now the only properties that I can obtain are portal.defaultObjectName and theme.id while ,the files I believe has this information (default-object.xml), has more properties.
Where is the portal properties file, or how can I stablish a file which can be access for all portlets?
One possibility. Place your properties file in server/xxx/conf, and then access it in the portlets using the jboss.server.config.url system property. Something like this:
String propfFile = System.getProperties("jboss.server.config.url") + "myportlet.properties";
Properties prop = Properties.load(new FileInputStream(propFile));