I agree with Erik’s comment about not hard coding the application name and I would go even further and say to never hard coding any external connections or other items that you can setup in WebSphere configuration.
At some point down the road you will have to migrate to a new system and this may be several years down the road and the knowledge of the app development may be gone and you may need to make changes to the application.
Also at some point you may need to move an external resource like a database or mail server or MQ server to a new host and once again you will have to have the application modified.
If you have these type of things configured in WebSphere configuration you will be able to change them much quicker then changing the app and redeploying it.
12 years ago I took over a WebSphere system that had apps that everything was hardcoded and this created many pain full hours for the development team and us admins. During these painful events our developers started changing their apps to use WebSphere properties and are now have more time for other projects.
The other thing that was happening was as the developer moved their code from dev to test to prod they had to make changes to these hardcode items and we are all human and prone to making mistakes which caused constant problems.
We now have a system where the developers can move the same exact ear, war, or jar from dev to test to prod without having to make any changes to their code.