Skip to Content
author's profile photo Former Member
Former Member

Where the datahub properties should be kept?

Hello,

My datahub properties file is not getting loaded. Right now, Its is in tomcat/lib. please suggest.

Thank you,

Add a comment
10|10000 characters needed characters exceeded

  • Former Member Former Member

    Thank you. I am trying to replicate b2c customer. The values are not passed from hybris to datahub. If you know, please suggest.

  • Former Member Former Member

    Cit. "The values are not passed from hybris to datahub."

    You have to put your properties into CATALINA_HOME/lib/local.properties of the Tomcat were you are running the datahub webapp. I want to emphasise that CATALINA_HOME/lib/local.properties in NOT related to the properties files in hybris (hybris/config/local.properties) ! hybris configuration and datahub configuration are completely different things, although they use the same filename "local.properties".

  • Former Member Former Member

    after changing the file please restart the data hub

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2016 at 04:25 PM

    The best way is to configure the properties path in your context.xml file. Name it datahub-webapp.xml and datahub-webapp will be the context path.

    The filepath will be <TOMCAT_HOME>/conf/Catalina/localhost/datahub-webapp.xml

    In this file you define the config directory in virtualClasspath:

     <Context antiJARLocking="true"
     docBase="<path_to_datahub_war>/datahub-webapp-X.X.X.X-RCX.war"
     reloadable="true"  >
    
     <Loader className="org.apache.catalina.loader.VirtualWebappLoader"
     virtualClasspath=
         "<path_to_your_config_dir>/config;
         <path_to_your_jars>/*.jar" />
     </Context>
    
    

    Then in the config directory, create your local.properties file.

    Cf. https://help.hybris.com/6.1.0/hcd/53f17f0a8bce4ccf85f65ab7dc52e880.html

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.