Posted: Thu Feb 26, 2009 6:07 am Post subject: Storing SQL queries
Apprentice
Joined: 16 Apr 2007 Posts: 33 Location: Pune
I need to retrieve data from database from a message flow.
Where should I store the sql query if I expect the sql query to change in future and need to avoid rebuilding & deployment of message flow? Is there a standard way of doing this? I intend to use the builtin database nodes for accessing database.
1) Store them in table
2) Store them in a file that can be loaded in the memory when the EG starts.
3) Store them in queue - use some sort of message selector to get the message you want.
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
it is a question how do you use the default values in Business Mapping properly well
There are chances that the default may change in the future to a different value (functional Requirements), that time the developer has to change the code and rebuild it. (as you mentioned you dont like this to happen)
so keep the Default values as string in Database, use a helper function (propertyFile Lookup) and fetch the values out of it and use.
change the database and bounce your broker when ever the updation happens at Database side _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum