Showing posts with label hybris. Show all posts
Showing posts with label hybris. Show all posts

Explain Multi-Tenant System in Hybris e-commerce suite ? How Multi-Tenant is differ from Hybris cluster.

Multi-Tenants means individual set of data across one database .Hybris  e-commerce suite provide to run one single codebase over multiple set of data . following below point need to remember related to hybris interview point of view

1.       It provide isolation between set of data (tenant)

2.       Provide individual time zone and locale setting.

Hybris multi-Tenant is completely differ from Hybris clustering as below

A hybris Cluster is a concept different from multi-tenant hybris Commerce Suites. A hybris Cluster is a number of individual, separate hybris Commerce Suites sharing one single set of data, whereas a multi-tenant hybris Commerce Suite is one single hybris Commerce Suite using individual sets of data.

Explain extension concept in Hybris e-commerce suite. Why need extension concept in Hybris ?

Hybris e-commerce suite is based on flexible modular concept that means  hybris saying if you want to putting any new functionality then by using extension you can integrate it with hybris.. By using extgen tool you can create own extension in Hybris . Below step follow to create own extension in Hybris.

B-    Open a command prompt.

C-    Navigate to the ${HYBRIS_BIN_DIR}/platform directory.

D-    Run the ${HYBRIS_BIN_DIR}/platform/setantenv.bat file. Do not close the command prompt after this run as the settings are transient and would get lost if the command prompt is closed.

E-    Run ant extgen<ENTER> in ${HYBRIS_BIN_DIR}/platform directory. This internally runs ant in the extgen directory.

 Extgen prompts you to specify:
  •  The extension's name
  •  The extension's Java package.
  •  The extension template to use.  
  • For a list of available extension templates compatible with extgen

Need to configure below code in localextensions.xml of config folder

<path autoload="true" dir="${HYBRIS_BIN_DIR}/ext-platform"/>
<path autoload="true" dir="${HYBRIS_BIN_DIR}/ext-cockpit"/>
<path dir="${HYBRIS_BIN_DIR}"/>