Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Property Placeholder in domain.xml on Glassfish server

 
Ashwin Sridhar
Ranch Hand
Posts: 277
Flex Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Ranch Hand
Posts: 277
Flex Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found a very useful information on this link Document
 
Ashwin Sridhar
Ranch Hand
Posts: 277
Flex Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic