Wednesday, October 23, 2013

Assigning Default Catalog To User:

Assigning Default Catalog To User:

Environment: ATG10.0.2

Requirement: Displaying default catalog to the anonymous user/Logged in user.

Intended User: ATG Learner, Junior Developer

ATG10 doesn’t assign any default catalog to the customer by default, As a developer you need to assign default catalog to the user.

Steps to configure:

1.       Create /atg/commerce/catalog/CatalogTools  component in your module

2.       Add defaultCatalogId  property with default  catalogeId. (Ex:catalog12345)

3.       Create /atg/commerce/util/ContextValueRetriever component in your module

4.       Add  useProfile property with  true

5.       Assemble your ear ,Deploy and start the server

6.       Open dyd/admin

7.       Check your changes for the above components.

8.       You should see your changes instead of default values.

9.       Now you can access pages.

Sunday, October 20, 2013

ATG Developer Setup with Web logic & Oracle:

ATG Developer Setup with Web logic & Oracle:

1.       Install Weblogic Server

2.       Install Oracle Database

3.       Create new schema

4.       Execute the below scripts in the DAS, DPS, DSS, DCS order.

5.       Ex : The below are sql script from ATG installation directory.
a.       C:\ATG\ATG10.0.2\DAS\sql\install\oracle\das_ddl.sql
b.      C:\ATG\ATG10.0.2\DPS\sql\install\oracle\dps_ddl.sql
c.       C:\ATG\ATG10.0.2\DSS\sql\install\oracle\dss_ddl.sql
d.      C:\ATG\ATG10.0.2\DCS\sql\install\oracle\dcs_ddl.sql
e.      C:\ATG\ATG10.0.2\B2BCommerce\sql\install\oracle\b2bcommerce_ddl.sql

6.       Copy protocal.jar  from

7.       Append the protocol jar in server class path.
Location: C:\Oracle\Middleware\user_projects\domains\atg_domain
Open startWebLogic.cmd and update as below.

set CLASSPATH=%CLASSPATH%;C:\Oracle\Middleware\user_projects\domains\atg_domain\protocol.jar;

8.       Configure local database for ATG samples.
a.       Location : C:\ATG\ATG10.0.2\home\localconfig

b.      Create new component /atg/dynamo/service/jdbc/

c.       Create new component /atg/dynamo/service/jdbc/

9.       Build the ear file using the below command

 C:\ATG\ATG10.0.2\\home\bin>runAssembler.bat  output-ear-file-name  -m dynamo-module-list

C:\ : C:\ATG\ATG10.0.2\home\bin>runAssembler.bat  ATGSamples.ear  -m DafEar.Admin ATGSamples

      10.   Start the server and deploy and monitor logs