Friday, 7 October 2016

Installation Steps of ATG on Ubuntu Machine

Installation of ATG:
ATG tar , mysql and latest version of JAVA should be the require while installing ATG .
 Before installing the ATG , start  the weblogic server.(http://127.0.0.1:7001/console)
Start the mysql server as /etc/init.d/mysql start
         If not exists 
                  1. sudo apt-get update
                  2.sudo apt-get install mysql-server
                  3.sudo mysql_secure_installation
     4. To start mysql /etc/init.d/mysql start.
Exract the tar of ATG.
 Inside /root/ATG_bin run ACC10.1.1_99REL.bin  shell.
Now run ATGWebServerExtensions10.1.1_99RCN.bin shell.
Run ATG10.1.1_99REL.bin   shell and execute all the shells by accepting the terms.

 Specify the path for the Oracle Middleware directory.
/root/oracle/bea
Specify the path for weblogic home directory.
                                  /root/oracle/bea/weblogic10.3.5
Specify the path for weblogic domain directory.
        /root/rakesh_weblogic/user_projects/domains/mydomain
Specify the path for java.
Enter weblogic port   as default.
Enter the RMI port  as default.
Execute rest of the shells by accepting all the terms.
Now  goto  /root/ATG/ATG10.1.1/CommerceReferenceStore/Store/eval directory and run the configureEval.sh shell.:wq
1. Do you wish to run the CRS evaluation installation? [Y/N]:  enter Y.
2. Do you wish to use an existing database for the CRS evaluation? [Y/N]: N
3. The CRS evaluation install will attempt to create the database. Press [Return] to continue or       any other key to quit:  Press Enter.
Enter mysql database connection details 
      Enter user name               :   crsprod
      Enter user password         :   crsprod
      Enter database name        :     crsprod 
      Enter 'root' user password:   root  
If error occurs regarding dynamo then specify  the command as 
 export DYNAMO_HOME=/root/ATG/ATG10.1.1/home
and execute the shell again.
      Enter weblogic admin server URL: t3://localhost:7001 (Specify the weblogic IP and port).
      Enter weblogic admin server username: weblogic 
      Enter weblogic admin server password:  welcome1.
Goto    /ATG/ATG10.1.1/home/servers/atg directory and  specify the path in startServerOnWeblogic.sh   shell  as "/root/rakesh_weblogic/user_projects/domains/mydomain/bin/startManagedWebLogic.sh" atg t3://localhost:7001/ $*(specify weblogic IP and Port)
Now execute the startServerOnWeblogic.sh shell.

When the ATG server  has started, you will  get the status as  <Server started in RUNNING mode> message .
Now open the browser and enter http://127.0.0.1:7003/crs/. to check ATG is running or not.

Thursday, 6 October 2016

Eclipse Shortcuts


Image result for eclipse transparent icon



Eclipse Shortcuts for Java Developer



Here, This post is provide you the some shortcuts of eclipse that will used by each java developer. Mostly Java developers use the eclipse IDE to write or debug the application code. I am writting this post for new comers who is see the future in java technology

Shortcuts
Descriptions
Ctrl + shift + R
Open file from Resource(In Workspace)
Ctrl + E
Open File editor for All open files in workspace
Ctrl + Pg Up or Ctrl + Pg Dn
Traverse from previous or next file within open files
Alt + <- or Alt + ->
Go to previous or next cursor(editing location) positions in workspace 
Ctrl + space
Type Assist
Ctrl + Shift + F
Format code
Ctrl + F
Find or Replace
Ctrl + O
List of methods in class
Ctrl + Shift + O
Organize Imports
Ctrl + Shift + U
Find Reference in File
Ctrl + /
Comment a line
F3
Go to Declartion of Variable
F4
Shoe type hierarchy of an Class
Ctrl + T
Show Inheritance current tree of token
Shift + F2
Show java doc for current element
Alt + Shift + Z
Enclose in Try Catch Block
F12
Focus on current Editor
Ctrl + L
Go To Line Number
Ctrl + D
Delete Line
Ctrl + <- or Ctrl + ->
Move one element left or Right
Ctrl + M
Maximize Editor
Ctrl + Shilft + P
Go to matching parenthesis
Ctrl + . or Ctrl + ,
Navigate to Next or Previous Error
F5 
Step into
F6
Step over
F8
Resume
Ctrl + Q
Inspect
Ctrl + F11
Run last run program
Ctrl + 1
Quick Fix Code
Ctrl + Shift + G
Search current cursor positioned word refernce in workspace
Ctrl + H
Java Seacrh in Workspace
Ctrl + Shift + /
Comment block of Code
Ctrl + Shift + \
Uncomment block of code
Ctrl + I
Intendation of selected code block
Type sysout then Ctrl +  Space and Press Enterkey 
Use for writing System.out.println();