Results 1 to 4 of 4

Thread: Where to put a properties file for custom JAR?

Hybrid View

  1. #1
    Join Date
    May 2013
    Location
    California
    Posts
    27
    Rep Power
    2

    Default Where to put a properties file for custom JAR?

    My Zimlet is finally working nicely; now it's time to spruce it up. Basically, it's a (Javascript) Zimlet that makes a few Ajax calls to JSP pages, that in turn call Java code that accesses an external database and also calls a RESTful API. To help our IT department with maintaining the thing, I'd like to put the database info (user name, passwords, table names, URLs, etc) in a properties file instead of hard coding. The thing is, I have no idea where to put the properties file. Do I zip it into the zimlet and let Zimbra handle things? Put it somewhere in the Jetty directory? Something else?

    Thanks,

  2. #2
    Join Date
    May 2013
    Location
    California
    Posts
    27
    Rep Power
    2

    Default

    *bump*

    Anyone?

  3. #3
    Join Date
    Jul 2007
    Location
    US
    Posts
    67
    Rep Power
    8

    Default

    I think the answer is, "it depends". For most data I usually bundle the properties with the Zimlet, although there have been times where there was a need/desire to store certain data in other locations. For simplicity, I'd tend to lean towards storing things with the Zimlet.

  4. #4
    Join Date
    May 2013
    Location
    California
    Posts
    27
    Rep Power
    2

    Default

    Thanks. Simple is good. I'll bundle it into the Zimlet then.

    Best,
    Kathy A.

Similar Threads

  1. Replies: 0
    Last Post: 07-20-2010, 07:35 PM
  2. Reading a Java properties file from JSP.
    By Chewie71 in forum Zimlets
    Replies: 0
    Last Post: 10-26-2009, 11:27 AM
  3. .properties file
    By JeffT in forum Zimlets
    Replies: 9
    Last Post: 02-05-2009, 09:33 AM
  4. Replies: 1
    Last Post: 02-04-2009, 01:20 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •