Add a system property on your 'java' line (-Dmy.host=<hostname or IP>) that starts the application and use the ${my.host} syntax in the annotation. I don't think you can modify the annotation in the constructor or any method. MIGHT be able to do some magic with reflection in an @PreConstruct method (if one exists).