Blog from an ATG Developer

April 24, 2009

Online System Information

Filed under: Internet — madhulal @ 7:58 am
Tags:

Why wasting the hard disk space by downloading applications to get the system information? Try this.
It will fetch a number of properties associated with the system online.

http://www.computerhope.com/cgi-bin/systeminfo.cgi

system_info

April 23, 2009

Better lighting…for your computer

Filed under: Useful Softwares — madhulal @ 5:16 am
Tags: , ,

People are nowadays working on computers for long hours. Health experts say that this can lead to many problems. One of the most affected parts of the human body is eyes. People say the new LCD/TFT monitors are better in comparison with the old CRT monitors. But staring that object for long hours can definitely be harmful, I believe.

Recently I came  across a software(f.lux) which helps to adjust the display setting based on the time. I have been trying f.ux for sometime. I feel it wonderful. I would recommend f.lux to anyone who sits in front of computer for long time. Moreover it costs you only few megabytes of hard disk space and some RAM space.

http://www.stereopsis.com/flux/

The Exposure of Internet Pages

Filed under: Internet — madhulal @ 4:17 am
The real internet

The real internet

April 22, 2009

Java Script – Check whether a particular variable is defined or not

Filed under: Java Script, Learning — madhulal @ 7:05 am

Yesterday I came across a situation in my project which demands whether a js variable exists or not.The following is the solution for that.

if(typeof varName != ‘undefined’){

alert(“variable exists”);

}

Refernce : https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Operators/Special_Operators/typeof_Operator

April 19, 2009

Getting Started with ATG – jBoss and Oracle

Filed under: ATG, Learning, Work Related — madhulal @ 2:55 pm
Tags: ,
When I write this note, the present ATG version is 9. For couple of days, being in the comfort of home, I have been trying to create a new project in ATG9 on Windows Xp. I have just finished it successfully. So the steps are as follows.

  1. Extract jboss-4.2.0.GA.zip to one of your locale drives.

  2. Install the j2dk you require. I installed jdk1.5.0_11.

  3. Start the installation of ATG9.

    1. We need to specify the application server(jBoss) and jdk paths.

    2. Let the rest be the defaults.

    3. Finish the installation.

    4. Copy the license files to ATG/ATG9.0/home/localconfig

    5. ATG recommends using the following setting for jBoss

JAVA_OPTS=”-server -Xms2048m -Xmx3072m -XX:MaxPermSize=768m

-XX:MaxNewSize=768m -Dsun.rmi.dgc.server.gcInterval=3600000 –

Dsun.rmi.client.gcInterval=3600000″

  1. Now the DB. I hate this part. It took most of my time.

    1. I chose Oracle10g as my DB.

    2. No adventures. Go with the Basic Installation.

    3. Finish the installation. It will create a sample db too.

    4. Now go to Start Menu -> All Programs -> Oracle – OraDb10g_home1 ->Configuration and Migration Tools . Click on the Database Configuration Assistant.

    5. This will help you to create a new db. No adventures again. Just give the db name(SID will be the same). Go till the last screen, which has a ‘Password Management ‘ button.

    6. Click on it. Give the desired passwords for the SYS and SYSTEM users and unlock the required users.

    7. Then finish and exit the Oracle installation.

    8. Start SQLPlus or some Oracle Client. I prefer sqldeveloper.(Freeware).

    9. Connect to the newly created DB with SYS/ with role selected as DBA.

    10. Our aim is to create a user for the project specific use. For this purpose we need to create a new tablespace. The following sql script will create the tablespace named ts_learn.

      create tablespace ts_learn logging datafile ‘G:\Learrning\Oracle\product\10.2.0\oradata\learn\ts_learn.dbf’ size 32m autoextend on next 32m maxsize 2048m extent management local;

    11. Now we can create an user in this tablespace for our project. sql is as follows

      create user learn1 identified by learn1 default tablespace ts_learn;

    12. Grant DBA role to the newly created user

      grant dba to learn1;

    13. Now we can disconnect the SYSTEM user and connect using the newly created user(learn1).

    14. Here we need to create tables required for our new project. Since our project is based on ATG, we need the tables that ATG uses. ATG uses mainly four modules – DAS, DPS, DSS and DCS. We need to put all the tables these modules use. The DDLs are provided with ATG. We can find them in sql\install\folder of each Module. For example, in the case of DCS and our Oracle, we have to execute the following script.ATG\ATG9.0\DCS\sql\install\oracle\dcs_ddl.sql.

    15. We need to execute them in exactly following order – DAS, DPS, DSS and DCS. Otherwise we will get some errors. Some of the tables in these modules are inter related.

    16. So at last we are done with DB part. Now we have most of the tables as empty.

  1. So the tough db part is over. Now we need to make the application up. ATG used to come with heir own server called DAS(Dynamo Application Server). But nowadays they have stopped them and also support for it is also closed. Now they are promoting jBoss. Even though they support IBM websphere, they don’t want to promote it as they also have some product similar to ATG.

  2. During the ATG installation, it creates a new server called “atg” in jboss server folder. This is nothing but a folder with name ‘atg’ with a number of files and folders. We are going to create a new server. It is very simple. Just create one more folder say ‘learning’. Copy all the contents from ‘atg’ folder to the newly created folder. We are going to deploy our project to this folder.

  3. Now we need something to work on. Eclipse. Download it. There are so many plugins provided by ATG to make life easier.

  4. For easy to use, I have created an eclipse project, you can download it and import it to Eclipse after extracting it. Download it here.

  5. Check for the META_INF, build.properties, build.xml and username.properties for configuration things.

  6. It involves a bit of configuration. Change the name by searching for it. Change the server name. Change the context root etc. (dynamoJ2EESpecifier.xml)

  7. Set the required environment variables - DYNAMO_HOME, JBOSS_HOME and JAVA_HOME.

  8. Build the application. The build creates a new module and then creates a .ear and .war files in the jboss server directory specified.

  9. Copy the jboss\server\learning\atg-oracle-ds.xml to \server\deploy folder. This is used for the connection to the database. Edit this file to change the db details. This is referred in JTDataSource.properties. Also copy the jdbc jar file to lib folder.

  10. Now we can start the new application. We need to start the jboss with the sew server we created. In our case that will be run -c . Check for the server successful start up(We can use ATGLogColorizer.exe to make the errors bloody ). Most common errors are regarding the db issues. If you find them modify the atg-oracle-ds.xml.

  11. Done, access the web page using http://localhost:8080/. I have put an index file which will show up. http://localhost:8080/dyn/admin will take you to ATG admin pages (Credentials: admin/admin).

    Should you have questions regarding any aspects of this, please feel free to contact me.

Hello world!

Filed under: Uncategorized — madhulal @ 2:42 pm

This is my first post.

Welcome to the World of ATG. ATG is one of the e-Commerce friendly frameworks.

The significance of eCommerce is become more prominent with the recent recession or so called near to recession.When most of the industries say it banking, automobile or real estate suffered drastically during recent times.At the same time, according to the studies eCommerce is advancing. Why? Honestly I don’t know. The one thing which comes to my mind is, people don’t want to go out, which will lead them to spend more. So they prefer ordering from home.

ATG is one of the leading eCommerce ‘Suite’s available in the market. They have so many built in functionalities which every eCommerce application requires. They provide so many products, which are specific to certain functionalities. For example, ATG Search is an application which help the eCommerce application to provide Search functionality in their web site. Users can search for a product. Based on the user input we provide the a set of results, most preferable a set of products to the user. But most prominent among these is the ATG commerce suit, which has Profile, Shopping Carts, Orders etc. I have fair amount of experience in using some of the ATG products.My maximum exposure is in ATG Commerce suite.

As far as I am concerned,being careless and a man with poor memory power, this would be better for future. Anybody who just started or going to start can use this content as their reference to gain momentum with ATG. I hope. :)

Blog at WordPress.com.