web stats
Share database conn. info. across different destinations? - Mirth Community

Go Back   Mirth Community > Mirth Connect > Development

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-18-2006, 02:16 PM
nshaik nshaik is offline
Mirth Guru
 
Join Date: Sep 2006
Posts: 302
nshaik
Default Share database conn. info. across different destinations?

Referred "queryDatabase Filter" example at

http://www.mirthproject.org/index.ph...filter_example

which uses:

var driver = "net.sourceforge.jtds.jdbc.Driver";
var address = "jdbc:jtds:sqlserver://srv.test.com:1433/DevMirth;";
var username = "mirth";
var password = "mirth";

...

Question: How to share the database connection settings across different database destinations on a single channel?

For e.g., Channel called "MirthHL7Test" has

the filter above for two database destinations called

DestForA04 --> uses above filter and inserts new patient record to Patient table.

DestForA08 --> uses similar filter and does an update of patient record on Patient table.

Would like to have the driver, address, username, and password defined in one place to be used across all destinations.

Tried playing around with the global variable but couldn't get it to work. An example would help a lot!

Thanks in advance!
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
logger.info problem Svetlomir Kasabov Support 6 01-26-2011 07:12 AM
Problem processing files through NFS share geoffm33 Support 6 12-29-2010 10:07 AM
File Reader to read files from Network Share baziz Support 3 12-09-2008 11:28 AM
using variables in the From field of the smtp conn jerchap Support 4 08-12-2008 07:45 AM
Logger.info() question dpagidi Support 2 04-22-2008 10:30 AM


All times are GMT -8. The time now is 04:56 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation