Developing with ATG: Part III

5 12 2007

In this edition of Developing with ATG we discuss a few of the many components available to serve as building blocks for assembling more sophisticated applications. These are just some of the components which make up the foundation of the application framework.

/atg/dynamo/service/CurrentDate

Ever need access to the current date from your application? Well then this is the component for you. Properties of this component include year, month, monthName, shortMonthName, dayOfWeek, dayOfWeekName, hour, minute, second and of course date.

/atg/dynamo/service/random/SecureRandom

The SecureRandom component is a pseudo-random number service. The component extends the java.security.SecureRandom class. Calling the nextDouble() method returns a uniform random number between 0.0 and 1.0. Other methods provide random integers, floats or bytes.

/atg/dynamo/service/Scheduler

If you need to schedule a component in nucleus to run periodically then the scheduler component can be used. Just register a nucleus component with the scheduler by calling the addScheduledJob() method. Your nucleus component will need to implement the atg.service.schedule.Schedulable interface which contains a single method call performScheduledTask() which is invoked by the scheduler when its time to run.

/atg/dynamo/service/SMTPEmail

This component can be used to send an email from nucleus. The component implements the atg.service.email.EmailSender interface. Variants of the sendEmailMessage() method allow one to send email to a recipient or group of recipients.

/atg/dynamo/service/jdbc/JTDataSource

Hi performance applications require connection pooling. The JTDataSource component provides access to a pool of JDBC connections. This component implements the standard javax.sql.DataSource interface. To checkout a connection from the pool of connections call the getConnection() method. Closing the connection returns the connection to the pool.

This just gives you a taste of some of the components available as part the the nucleus component framework. ATG applications such as its flagship eCommerce application provide additional application specific componets such as order management and pricing components. And of course you could always write your own components and integrate them into the framework.  

In our next addition we’ll talk about one of the characteristics that make nucleus truely unique: layered configuration.

Advertisements

Actions

Information

2 responses

19 06 2008
krishna

yes this is krishna ,
Actually i want to know some basic details about ATG. so the above mentioned infor is good ,but i am not able to understand . so you can give information for basic learners.

19 06 2008
drakcira

You should read the other posts in the Developing with ATG series. They I suggest you take a look at the ATG documenation and perhaps even attend an ATG education course.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




%d bloggers like this: