Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
4 replies
Subscribers
9 subscribers
Views
1918 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hi, We want to have a function in the process which would check
anagha_abhyankar
over 10 years ago
Hi,
We want to have a function in the process which would check if DB is up and running just like a ping to the DB which will return an error code and a message.
Is there a smart service available out of the box for the same?
Thanks,
Anagha
...
OriginalPostID-110742
OriginalPostID-110742
Discussion posts and replies are publicly visible
0
Eduardo Fuentes
Appian Employee
over 10 years ago
Why don't you just use the <check-valid-connection-sql> element in your appian-ds.xml ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sushilk307
over 10 years ago
Well i got the same issue and waiting response...What i used to Query node and Select Database=1 measn DB is connected to appian otherwise not.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
anagha_abhyankar
over 10 years ago
Eduardo: How could we use that in a process model? We have to fire a lot of queries to external DB and it can be a case that DB is down. Hence, want to check it just before the calls to DB.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 10 years ago
No, that setting is to force JBoss to re-connect if the DB goes down but I agree won't prevent the node from failure. You could create a custom smart service that would run this simple select and catch the exception gracefully so you can wait for the reconnection to happen in your model (reconnection will happen if you use this setting in appian-ds.xml and if the DB becomes available again)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel