ATG provides a class named InsertableServletImpl, which can do pretty much what it sounds like. You insert the servlet to be run in the ATG servlet pipeline where you dictate. This allows us to inject behavior into our application at…
Author: Steve
How is the ATG CONFIGPATH built?
The CONFIGPATH in ATG is not an operating system variable. In other words, you don’t issue something like the following… export CONFIGPATH=/directory_a /directory_B /directory_B start_app.sh The CONFIGPATH is pretty much what it sounds like. If you have done any work…
Simple dbca command line creation
dbca -silent \ -createDatabase -templateName “General_Purpose.dbc” \ -nodelist “expressdb1,expressdb2” \ -gdbName express.home \ -sid express \ -sysPassword ExpressCMH1 \ -systemPassword ExpressCMH1 \ -emConfiguration NONE \ -datafileDestination +DATA \ -redoLogFileSize 50 \ -storageType ASM \ -asmsnmpPassword ExpressCMH1 \ -characterSet AL32UTF8 \…
Tracing SQL across the wire
This can be really useful in place of database tracing, especially when you want to see the action the *application* takes, and not just what it does in the database. [user@************** common]# tcpdump -A -nn port 1521 | \ >…
What does ATG liveconfig actually do?
liveconfig is essentially a switch to runAssembler that creates a properties file to override default ATG Nucleus behavior. It optimizes the configuration for a “live” production site. Specifically, it overrides the following properties. configurationCheckMilliseconds=10000 -to- configurationCheckMilliseconds=-1 checkFileNameCase=false -to- checkFileNameCase=false (yes,…
ATG scheduler job example
ATG supplies a scheduler of sorts that can be used to run tasks that are supposed to run on a recurring basis. First, cd to your ATG installation directory, and set your CLASSPATH so that the compiler can find the…
Simple ATG JSP and droplet
This post assumes you have installed the Commerce Reference Store. It was also written for ATG 10.0.3, although it may work on other versions, as well. Create the following file, named printAllOrders.java, under $ATG_INSTALL_DIR/home/locallib import java.io.*; import javax.servlet.*; import javax.servlet.http.*;…
opatch “patch not applicable”
I saw the exception in the subject title of this post this earlier this week while applying the most recent PSU. Of course, the problem had absolutely nothing to do with whether or not the patch was applicable to the…
ATG – Listing item descriptors in a given repository
Below is a droplet that will print out all item descriptors in the OrderRepository. import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import atg.servlet.*; import atg.adapter.gsa.*; public class repo extends DynamoServlet { public repo() {} public void service (DynamoHttpServletRequest request,DynamoHttpServletResponse response) throws…
Quiet svn+ssh
While issuing various svn commands and using the svn+ssh protocol, we found that the output of /etc/issue could really clutter up the screen. We added the following in the $HOME/.ssh/config LogLevel quiet This eliminated the output of /etc/issue.