cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
90
Views
0
Helpful
0
Comments
cdnadmin
Community Member
This document was generated from CDN thread

Created by: null on 29-11-2005 09:18:50 PM
I have a flat text file I need to have my java code read in in order to initialize. Two questions:

a. Can this be done or is there a preferred method for initialization?
b. Where can this text file reside with respect to the application?

Thanks,
Dan

Subject: RE: c
Replied by: Vance Vagell on 29-11-2005 09:51:40 PM
Hi Dan,

When there are many configuration options for your custom code, it sometimes makes sense to store these values in an external properties file. When your Audium application is deployed, it will reside in AUDIUM_HOME/applications/ in it's own folder, for example:

[code:1:d97e6badcd]AUDIUM_HOME/applications/MyApp[/code:1:d97e6badcd]

Your custom Java code will be deployed under the [b:d97e6badcd]java[/b:d97e6badcd] subfolder of this folder. For detailed information about exactly how to deploy custom code please refer to this Audium Knowledge Base article. If you place your properties file in the same folder as your custom classes and JAR files, you can access the properties file without worrying about paths. However, you can store the properties file anywhere you like under your Audium application's folder (e.g. "MyApp"); simply modify your custom code to look for the file wherever you place it.

Hope this helps,
Vance

Subject: RE: c
Replied by: null on 30-11-2005 02:28:24 PM
Thanks Vance - can I assume the same is true for a text log file my custom java code will generate? My code generates progress reports and I want the app owner to have easy access to them.

Regards,
Dan

Subject: RE: c
Replied by: Vance Vagell on 30-11-2005 04:26:34 PM
Hi Daniel,

Yes, many of our customers create their own custom logs in addition to the logs Audium produces. You can create these logs in any location you find appropriate, so long as your custom code has permission to create files there.

Regards,
Vance

Subject: RE: c
Replied by: null on 01-12-2005 01:39:47 PM
Thanks again Vance.

I am unable to access the Sample Java and Tutorial pages you referred me to. I receive a "you are not authorized to view this page" message.

I sent Colin an email and left a voice message abou this on Tuesday, but i guess he may be traveling. Can you do anything? My User ID is Daniel O'Sullivan.

Also - do you prefer I post a new topic for questions, or just keep hitting reply on this one?

Best,
Dan

Subject: RE: c
Replied by: Vance Vagell on 01-12-2005 03:01:21 PM
Hi Dan,

For new topics, please create a new post. However, if you continue to have questions relating to creating properties files and initialization, then please reply here.

Your account does have permission to access to the Sample Java Code forum. Sometimes if you click on a link before you are logged in to the forum you will receive such an error. First log in normally, then copy-paste the link into your address bar. Another option is to navigate to this forum from the forum list, it's in the Developer Resources section.

Regards,
Vance
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links