wood burning stoves 2.0*
The moose likes Other Java Products and Servers and the fly likes Property Placeholder in domain.xml on Glassfish server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Property Placeholder in domain.xml on Glassfish server " Watch "Property Placeholder in domain.xml on Glassfish server " New topic
Author

Property Placeholder in domain.xml on Glassfish server

Ashwin Sridhar
Ranch Hand

Joined: Jul 09, 2011
Posts: 272

Hi All,

I am trying to figure if there is a possibility of using property place-holders in domain.xml in glassfish server.

Instead of hard-coding the connection details in different regions, I am trying to find if a property file could be read and values be parsed in domain.xml at serverstart up.

Could you share your thoughts on this.

Regards,
Ashwin


Ashwin Sridhar
SCJP | SCWCD | OCA
Ashwin Sridhar
Ranch Hand

Joined: Jul 09, 2011
Posts: 272

I found a very useful information on this link Document
Ashwin Sridhar
Ranch Hand

Joined: Jul 09, 2011
Posts: 272

My Domain.xml contains following entry



And I specify the values for test.url,test.user,test.password in the environment variables in windows. Is this correct ?

The properties of the Jdbc connection are not replaced with values. Could someone tell, where I need to intialise the values.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Property Placeholder in domain.xml on Glassfish server