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文件當(dāng)hybris Server啟動的時候,被放在${HYBRIS_CONFIG_DIR}/licence這個目錄下,我們沒有必要明確的去安裝這個licenses文件,我們只需要把這個licenses文件放到${HYBRIS_CONFIG_DIR}/licence這個目錄下,然后重啟hybris Server,就能自動的安裝這個Licenses了。
每一個配置模板文件(Configuration Templates)就包含了一個licenses文件的,在配置模板文件被配置到服務(wù)器中的時候,licenses會被自動的拷貝到${HYBRIS_CONFIG_DIR}/licence這個目錄下,?This means that you will have a license file available right away.
當(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.
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.
| 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?這個目錄往上推兩層目錄,然后加上自己對應(yīng)的子目錄,比如:一個環(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.
官方提供了兩個配置模板:開發(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é)所說的證書)
手工的切換使用,以到達(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.
每一個ext目錄都是一個可以被eclipse打開的項目,可以完成特定的功能。
hybris把bin目錄和其他的目錄分開,其他的目錄包括數(shù)據(jù)啦、日志啦、配置模板啦、、、等等。這樣一個顯著的好處就是bin目錄只有固定的代碼,不會有任何改變,若你升級hybris,直接替換這個bin目錄就行了,別的客戶化的東西,都不用管的。
Directory Structure Overview
| /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} |
| 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. | ? |
| This directory contains?acceleratorcms, acceleratorfacades, acceleratorservices, b2bacceleratorfacades, b2bacceleratorservice. | ? |
| This directory contains addon extensions. | ? |
| This directory contains?cscockpit, instore, mobileoptionals,mobileservices,print,printcockpit,printhmc. | ? |
| This directory contains commerce-related extensions. | ? |
| This directory contains?bmecat, classificationsystems,cms2,cmscockpit,importcockpit,mam, productcockpit. | ? |
| This directory contains sample data extensions. | ? |
| This directory?contains?admincockpit, backoffice, cockpit, hmc, mcc, platformhmc?extensions. | ${HYBRIS_EXT-PLATFORM_DIR} |
| This directory?contains optional platform extensions. | ${HYBRIS_EXT-PLATFORM_DIR} |
| This directory contains?print, printcockpit?and?printhmc?extensions | ${HYBRIS_EXT-PRINT} |
| This directory?contains all?extgen?templates. | ${HYBRIS_EXT-TEMPLATE_DIR} |
| 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:
| ${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)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 解读SAP Hybris为何获国内B2B
- 下一篇: 丑闻使股票波动