Forum Discussion
nmrao
11 years agoCommunity Hero
This is one of the way to have the dynamic jms details.
- In the hermes-config.xml, have place holder for jms server url.And this url can be associated with session name.
- Have project property for JMS_SERVER_URL which you can over write during invoking the testrunner along with property. Or you may use property file and load this file, however you wish.
- As part of load script at project level, update the place holder values in hermes-config.xml using the property value.
And the trick is to use the end point also as property like SERVICE1_END_POINT. For eg if it is http then assign value of SERVICE1_END_POINT to http://yourserver.com/service1 and if it is jms, assign value of jms://SESSION_NAME::queue_QUEUE_NAME_TO_SEND::queue_QUEUE_NAME_TO_RECIEVE. Of course, you can have a property to choose if it is jms or http. This can also be done as part of load script of the project. So, always your endpoint would be ${#Project#sERVICE1_END_POINT} and value can be derived based on user input for protocol type.