JBilling working environment

ridwannizam's Avatar

ridwannizam

15 Jan, 2017 07:14 AM

Hello

I noticed that JBilling log the following messages on startup :

 Loading Grails 2.4.3
| Configuring classpath
| Configuring classpath.
| Environment set to development
| Environment set to development.
| Environment set to development..
| Environment set to development...
| Environment set to development....
| Environment set to development.....

It looks like JBilling works in tow modes i.e. production and development.

Can you please explain the difference between the two modes, how to choose the working environment, and is it really important to run JBilling in "production mode" in my real production environment.

  1. 1 Posted by ahmed.drira@gma... on 15 Jan, 2017 08:11 PM

    ahmed.drira@gmail.com's Avatar

    Hello
    yes i confirm that jbillin run in this tow mode ; in my case , i generate
    the war file then i deploy it in my tomcat , then i have specified a
    JBILLING_HOME env var
    for exemple JBILLING_HOME=/opt/jbillingConf
    to let jbbilling read it's config file .properties from an external files
    located under my JBILLING_HOME , i have to run my tomcat from my JBILLING_HOME
    :
    so
    cd /opt/jbillingConf
    ./../tomcat/bin/startup.sh

    if i run my tomcat with this manner , on the log it write that jbilling is
    reading conf from JBILLING_HOME , otherwise it will read conf file from
    class Path .

    in dev mode it 's normal that i read from class path but in prod mod , i
    have to read from an external file ...

  2. 2 Posted by ridwannizam on 16 Jan, 2017 05:13 AM

    ridwannizam's Avatar

    Thanks Ahmed

    I am using JBilling 4.1.1 I build the version from source. I can't see any option to generate a war file. If you have the same version, then can you please share the steps to generate the war file, and what configuration can you store in JBILLING_HOME, please provide an example .property file.

    Thanks,
    Ridwan

  3. 3 Posted by ahmed.drira@gma... on 28 Feb, 2017 12:27 PM

    ahmed.drira@gmail.com's Avatar

    Hello
    to generate the war file i tape the command "prod war" on the grails prompt ,
    the i deploy this war on a tomcat ,
    for example my tomcat is under /opt/tomcat
    then my JBILLING_HOME is set to /opt/jbilling_home where i put all the conf directory from source , and all resources like compiled report , then to run my tomcat server i open my console from my jbillinh_home dir , and i run ./../tomcat/bin/startup.sh .... on the tomcat log you will notice a log indicating that jbillinh is reading configuration from JBILLING_HOME ,
    if it write on the log that jbiilinh is reading configuration from classpath , that mean that is reading from conf file embedded on the war file ....

    otherwise there is a script under the scripts directory named PackageRelease , if you run it it will generate a zip file containing the war and all resources , i have not tested deploying from this archive :)

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

27 Aug, 2018 06:50 PM
19 Aug, 2018 04:13 PM
19 Aug, 2018 04:04 PM
17 Aug, 2018 03:46 PM
12 Aug, 2018 06:10 PM
18 Jul, 2018 03:01 AM