日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Hybris 体系结构

發(fā)布時(shí)間:2025/3/20 编程问答 20 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Hybris 体系结构 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

1、安裝許可(Installing Licenses

The hybris Commerce Suite uses a license file which holds information about unlocked functionality in the hybris Commerce Suite. For example, you may or may not be allowed to use?Cluster - Technical Guidefunctionality.

license文件當(dāng)hybris Server啟動(dòng)的時(shí)候,被放在${HYBRIS_CONFIG_DIR}/licence這個(gè)目錄下,我們沒有必要明確的去安裝這個(gè)licenses文件,我們只需要把這個(gè)licenses文件放到${HYBRIS_CONFIG_DIR}/licence這個(gè)目錄下,然后重啟hybris Server,就能自動(dòng)的安裝這個(gè)Licenses了。

每一個(gè)配置模板文件(Configuration Templates)就包含了一個(gè)licenses文件的,在配置模板文件被配置到服務(wù)器中的時(shí)候,licenses會(huì)被自動(dòng)的拷貝到${HYBRIS_CONFIG_DIR}/licence這個(gè)目錄下,?This means that you will have a license file available right away.

當(dāng)然,我們也可以手動(dòng)的安裝不同的licenses文件。

Manually Install a Different License

  • Extract the license zip archive (hybris20licenceQ205.zip, for example).

  • Copy the?hybrislicence.jar?file to the?${HYBRIS_CONFIG_DIR}/licence?directory.

  • Stop the hybris Server.
  • Start the hybris Server:?


  • 2、環(huán)境變量:

    The hybris Commerce Suite uses a number of environment variables that are?defined to reference the paths of its various components.

    Default Values of Environment Variables

    The table below summarizes the hybris environment variables.

    Variable Name

    Description

    Factory Default

    HYBRIS_BIN_DIR

    Points to the?/bin?directory of the hybris Commerce Suite, in which the platform and all extensions are located.

    hybris/bin
    HYBRIS_CONFIG_DIR

    Points to the?/config?directory of the hybris Commerce Suite, where custom configuration files are stored.

    hybris/config
    HYBRIS_DATA_DIR

    Points to the?/data?directory of the hybris Commerce Suite, where runtime data is stored.

    hybris/data
    HYBRIS_LOG_DIR

    Points to the?/log?directory of the hybris Commerce Suite, containing log files from the hybris Server, JDBC logging, etc.

    hybris/log
    HYBRIS_TEMP_DIR

    Points to the?/temp?directory of the hybris Commerce Suite, where temporary files are stored.

    hybris/temp/hybris

    在默認(rèn)情況下,這些目錄都是在?platform?這個(gè)目錄往上推兩層目錄,然后加上自己對(duì)應(yīng)的子目錄,比如:一個(gè)環(huán)境的platform目錄是:C:\hybris\bin\platform,那么HYBRIS_LOG_DIR?就是C:\hybris\log\.....

    關(guān)于如何修改環(huán)境變量,比較簡單,直接參考官方文檔:https://wiki.hybris.com/display/release5/hybris+Environment+Variables


    3、配置模板(Configuration Templates

    The hybris Commerce Suite comes with pre-defined configuration sets ready to use as configuration templates. A configuration template consists of a set of configuration files pre-optimized by hybris for a certain aspect of running the hybris Commerce Suite, such as for use in development and production environment.

    官方提供了兩個(gè)配置模板:開發(fā) ?和 生產(chǎn)(當(dāng)然是開發(fā)注重的性能、debug等信息;而生產(chǎn)肯定注重的是安全)

    Configuration Template Structure(配置模板的結(jié)構(gòu))

    A configuration template can consist of the following:

    • A?local.properties?file

    • Configuration files for the Apache Tomcat, such as?wrapper.conf?or?wrapper-debug.conf

    • A license file(第一小節(jié)所說的證書)
    在使用ant構(gòu)建服務(wù)器的時(shí)候,會(huì)要求你選擇developer模式還是product模式,默認(rèn)是develop模式,當(dāng)然你也可以建立多個(gè)HYBRIS_CONFIG_DIR

    手工的切換使用,以到達(dá)不同的需求,可參考:https://wiki.hybris.com/display/release5/Configuration+Templates


    4、目錄結(jié)構(gòu):

    All extensions developed by hybris are grouped in specific directories under the?/bin?directory to distinguish between the different kinds of extensions that hybris offers. Additionally, distinguishing the?/bin?directory from the other directories is beneficial for both partner developers and system administrators when updating the hybris Commerce Suite.

    每一個(gè)ext目錄都是一個(gè)可以被eclipse打開的項(xiàng)目,可以完成特定的功能。


    hybris把bin目錄和其他的目錄分開,其他的目錄包括數(shù)據(jù)啦、日志啦、配置模板啦、、、等等。這樣一個(gè)顯著的好處就是bin目錄只有固定的代碼,不會(huì)有任何改變,若你升級(jí)hybris,直接替換這個(gè)bin目錄就行了,別的客戶化的東西,都不用管的。

    Directory Structure Overview

    Directory

    Description

    Environment Variable
    For details see?hybris Environment Variables.

    /bin

    Contains the hybris Platform directories, the template directory, and the hybris extensions directory. It may also contain the directory for partner extensions or custom extensions made by customers for their own use.

    ${HYBRIS_BIN_DIR}
    • /bin/custom

    This directory is created during the process of creating the custom extensions. It should contain your own project extensions. For details about creating extensions see the?Creating a New Extension?document.

    ?
    • /bin/ext-accelerator

    This directory contains?acceleratorcms, acceleratorfacades, acceleratorservices, b2bacceleratorfacades, b2bacceleratorservice.

    ?
    • /bin/ext-addon

    This directory contains addon extensions.

    ?
    • /bin/ext-channel

    This directory contains?cscockpit, instore, mobileoptionals,mobileservices,print,printcockpit,printhmc.

    ?
    • /bin/ext-commerce

    This directory contains commerce-related extensions.

    ?
    • /bin/ext-content

    This directory contains?bmecat, classificationsystems,cms2,cmscockpit,importcockpit,mam, productcockpit.

    ?
    • /bin/ext-data

    This directory contains sample data extensions.

    ?
    • /bin/ext-platform

    This directory?contains?admincockpit, backoffice, cockpit, hmc, mcc, platformhmc?extensions.

    ${HYBRIS_EXT-PLATFORM_DIR}

    • /bin/ext-platform-optional

    This directory?contains optional platform extensions.

    ${HYBRIS_EXT-PLATFORM_DIR}
    • /bin/ext-print

    This directory contains?print, printcockpit?and?printhmc?extensions ${HYBRIS_EXT-PRINT}
    • /bin/ext-template

    This directory?contains all?extgen?templates.

    ${HYBRIS_EXT-TEMPLATE_DIR}
    • /bin/platform

    This directory contains the?actual hybris Platform functionalities. It includes core extensions, the build framework, custom extension templates in?/extgen, and the application server directories.

    ${HYBRIS_PLATFORM_DIR}

    /config

    The directory contains your custom configuration files for the hybris Commerce Suite, such as:?local.properties,localextensions.xml, andhybrislicence.jar. This directory also contains the files for the customization mechanism of the hybris Commerce Suite.

    ${HYBRIS_CONFIG_DIR}

    /data

    This directory?contains runtime data, such as:

    • Media files, such as product pictures. See also?Media folder.
    • LuceneSearch indexes
    • HSQLDB files
    ${HYBRIS_DATA_DIR}

    /log

    This directory?contains log files from the hybris Server, JDBC logging, and so on.

    ${HYBRIS_LOG_DIR}

    /temp

    This directory?contains temporary files.

    ${HYBRIS_TEMP_DIR}

    總結(jié)

    以上是生活随笔為你收集整理的Hybris 体系结构的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。