This document was generated from CDN thread
Created by: null on 27-10-2003 06:33:18 PM
Hi,
I am trying to using a custom library (Jscape Inet factory) to send emails through an smtp server with audium 3.3 with call session data. The code runs fine and connects to the smtp server in standalone mode. But it does'nt work with audium when I use a decision element to call the class that sends the emails and smtpexceptions are displayed when tomcat starts up and tries to load the application. Please advice if this is just an issue of connectivity to the local smtp server, or are there any setting files that need to be changed?
thank you in advance
venk
Subject: RE: emails thru smtp server
Replied by: null on 28-10-2003 03:26:38 PM
Hi Venk,
There are no restrictions Audium makes in terms of running third-party Java libraries from within code you write and deploy on the Audium Server. As long as those libraries are made available to Audium by placing them inside the common/lib directory (or within the java directory of the application itself), everything should work fine.
Keep in mind that since Audium is run on tom of an existing application server, it is run in a multi-threaded environment. As long as you keep things local, you should be fine. If your libraries uses static variables, though, you may encounter problems when you receive multiple calls. You would have to synchronize your code to prevent problems.
You mention that you get errors when Tomcat loads up, not when you try to call into the application? If this is the case, then Tomcat is probably not configured correctly to to support the library as the Audium Server does not execute any of your code when the Audium Server is starting up. A decision element's code is only executed when that decision is visited in the call flow.
Hope this helps!