Moving code from Javascript to Java library #4830
-
I have several Javascript methods that all of my channels need access to; currently I have them in the GlobalMap, but I would really like to get them into a JAR instead. Most of these access a database to query information, but I have not found any examples of creating a custom Java library that accesses a db via the Can you point me in the right direction? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Why not use code templates for this, that is what they are for. Just curious really. |
Beta Was this translation helpful? Give feedback.
-
While I think @pacmano1 's answer to use code templates is the correct one, why are you having issues using |
Beta Was this translation helpful? Give feedback.
While I think @pacmano1 's answer to use code templates is the correct one, why are you having issues using
com.mirth.connect.server.userutil.DatabaseConnectionFactory
? You should be able to call it like any other java library.