Clarity

  • 1.  JAR on custom folder rather than /clarity/lib

    Posted Jan 12, 2016 06:11 AM

    Hi Folks,

     

    Can we put custom jars on a folder different from clarity/lib  and use it on clarity application ?

     

    The custom jar will be used as clarity jobs.

     

    Best Regards,

    Lalatendu



  • 2.  Re: JAR on custom folder rather than /clarity/lib

    Posted Jan 12, 2016 06:47 AM

    There's a $NIKU_HOME/customlib folder where you can place custom jars.



  • 3.  Re: JAR on custom folder rather than /clarity/lib

    Broadcom Employee
    Posted Jan 12, 2016 07:48 AM

    The files should be placed outside the CA PPM folder in order to avoid any issue. Please take a look at the same

     

    http://www.ca.com/us/support/ca-support-online/product-content/knowledgebase-articles/tec1229907.aspx

     

    Regards

    Suman Pramanik



  • 4.  Re: JAR on custom folder rather than /clarity/lib
    Best Answer

    Posted Jan 12, 2016 08:28 AM

    Thanks Hasseb.

     

    I found the steps you can follow to run custom jars from any folder on clarity.

     

    Steps to follow:

     

    Step1 : Navigate to bin directory

     

              cd $CLARITY_HOME/bin

     

    step 2:  open the file servicebgcmd.conf

             

    step 3: Search for the tag “# Java Classpath”

              /# Java Classpath

     

    Step 4: add a wrapper class path

             

    1. wrapper.java.classpath.<num>=$custom_folder
      /*.jar

             

    Note: <num> =this can be the next number present on the
    file.

              $custom_folder=Custom folder path

     

    Setp 5: Save the file and restart all the services.

     

     

    Enjoy your work

     

    Best Regards,

    Lala

     



  • 5.  Re: JAR on custom folder rather than /clarity/lib

    Broadcom Employee
    Posted Jan 12, 2016 08:33 AM

    Hi Lalatendu,

     

    This is a temporary way and if you redeploy the service i.e. removing the services and deploying again these changes will go away. Also you should always keep the custom libraries outside CA PPM folder so that it doesn't interfere with any out of box functionalities.


    Regards

     

     

    Suman Pramanik