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

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

Hybris 体系结构

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

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文件當hybris Server啟動的時候,被放在${HYBRIS_CONFIG_DIR}/licence這個目錄下,我們沒有必要明確的去安裝這個licenses文件,我們只需要把這個licenses文件放到${HYBRIS_CONFIG_DIR}/licence這個目錄下,然后重啟hybris Server,就能自動的安裝這個Licenses了。

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

當然,我們也可以手動的安裝不同的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、環境變量:

    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

    在默認情況下,這些目錄都是在?platform?這個目錄往上推兩層目錄,然后加上自己對應的子目錄,比如:一個環境的platform目錄是:C:\hybris\bin\platform,那么HYBRIS_LOG_DIR?就是C:\hybris\log\.....

    關于如何修改環境變量,比較簡單,直接參考官方文檔: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.

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

    Configuration Template Structure(配置模板的結構)

    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(第一小節所說的證書)
    在使用ant構建服務器的時候,會要求你選擇developer模式還是product模式,默認是develop模式,當然你也可以建立多個HYBRIS_CONFIG_DIR

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


    4、目錄結構:

    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.

    每一個ext目錄都是一個可以被eclipse打開的項目,可以完成特定的功能。


    hybris把bin目錄和其他的目錄分開,其他的目錄包括數據啦、日志啦、配置模板啦、、、等等。這樣一個顯著的好處就是bin目錄只有固定的代碼,不會有任何改變,若你升級hybris,直接替換這個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}

    總結

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

    如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。