TechnoBuzz

A Techno Blog, mainly about Java

links for 2006-05-31

Advertisements

May 30, 2006 Posted by | Uncategorized | Leave a comment

Seam

I couple months ago I heard the podcast with Gavin King about Seam. I came across this blog posting talking about Seam. I do see alot more people using EJBs than what was done in the past now that with JPA and IoC all in one. I do not see Spring going away though.

May 28, 2006 Posted by | Hibernate & ORM, IoC, Spring | Leave a comment

links for 2006-05-26

May 25, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-05-25

May 24, 2006 Posted by | Uncategorized | Leave a comment

links for 2006-05-24

May 23, 2006 Posted by | Uncategorized | Leave a comment

technology

ATG:

Tables

7.0 API Java DOC

Create Catalogs

Catologs and Products

Catologs, Categories, Skus

sku

er diags

Repository Guide

Repository API

Repository – data store.
Represents a collection of RepositoryItems. the interface

MutableRepository – The interface defines functions for four operations: creating, adding, updating, and removing repository items.

RepositoryItem : like a JavaBean that is similar to a row in a table that is made up of properties. Each repository item must have an identifier, which is called a repository ID.

MutableRepositoryItem
RepositoryItem that can be updated as specified by the interface

RepositoryItemDescriptor –  Each item type is described by a Repository item descriptor (also called a RepositoryView) interface . Gives a name to the type, and also describes the properties for that type.

ItemDescriptorImpl – implements RepositoryItemDescriptor

atgrepositorypropertieschanged : When a repository item is modified, its item descriptor broadcasts locally a PropertiesChangedEvent. In addition to its type, a PropertiesChangedEvent contains the following:- A Map in which the keys are RepositoryPropertyDescriptors and the values are the new property values.- The item that is changed.- The repository ID of the item that is changed.- The item that is changed.-The item descriptor of the item that is changed. If you have a component that you want to be notified when repository item properties change, it can implement the atg.repository.PropertiesChangedListener interface. You can add your PropertiesChangedListener implementation to the atg.repository.ItemDescriptorImpl returned by the repository.getItemDescriptor() method, using the method ItemDescriptorImpl.addPropertiesChangedListener.

RepositoryPropertyDescriptor

Property files in ATG

Generic Service

ATG Mocks

Component
– storage, personalization, biz logic, jsps references component props
Repository
– data and data access
Profile
– attributes about individual visiting a web site

Targeting
– based on profiles. applying tagged content
SCenario
– sequence events over liftetime (multiuser) , and applicable actions taken (email or personalized content)

DAF- Dynamo App Framework
DAS – Dyname App Server
DPS – Dynamo Personalization Server
DSS- Dynamo Scenario Server

/usr/java/ATG7.0/DAS/taglib/dspjspTaglib/1.0
  /lib/dspjspTaglib1_0.jar
  /tld/dspjspELTaglib1_0.tld
/tld/dspjspTaglib1_0.tld

<%@ taglib uri="http://www.atg.com/taglibs/daf/dspjspTaglib1_0&quot; prefix="dsp" %>
<%@ taglib uri="http://www.atg.com/taglibs/daf/dspjspELTaglib1_0&quot; prefix="dspel" %>

SQL Repository
– Java view of elements in database

Repository Item
– repositoryId
– zero or more properties specified by item descriptor

Item Descriptor
– Logical (Repository Item) to Physical (Tables)

Item Type ~ Item Descriptor

GSA
– Generic SQL Adapter

May 23, 2006 Posted by | Web Design | Leave a comment

Official First Day

online sessions
JavaOne begins by Matt Raible
Sporar on Day one

Burnette [1] [2] [3] [4] [5] [6]

Post in Links

Debian News

Portal Open Source

Lastly    code.google.com/webtoolkit/

May 17, 2006 Posted by | Uncategorized | Leave a comment

Day 1 Blogs

The Aquarium NetBeans Day Roundup

Why Not?

Burnette

More Netbeans

Mary,Mary

May 15, 2006 Posted by | J2EE | Leave a comment

A Protocol

WAP  [wiki]

WAP with JAVA

Comparison to SMS

WAP School is in session.

May 15, 2006 Posted by | Mobile | Leave a comment

Java One 2006

Java One is early this year. Last year  it was in June.

Here is a rundown of some of the blogs I will be following.

RollerWebLogger
Bruce Snyder
Inside Scoop
BeJug
Raible

May 15, 2006 Posted by | J2EE | Leave a comment

plugins

User Agent Switcher Extension– The typical usage is to allow access to sites that
        restrict access based on the type of browser

http://tersesystems.com/code/mockobjects/

WML Browser Extension

May 3, 2006 Posted by | SW Tools | Leave a comment

mock objects

I am again looking at mock objects
Mock Objects [pdf]

There are choices like mockobjects , easymock, jmock.

org.easymock.MockControl

Version 1.2 Docs w API

[Examples ]

mvn clover:clover

Here is an easymock like example:

public class MyClass extends
{
    private FirstObject       theObject;

    public  SecondObject createWorkItem(String name)  {
        SecondObject data = getTheObject().createObject(MyConstants.FIRSTVALUE);
        data.setPropertyValue(MyConstants.NAME, name);
        return data;
   }
   public FirstObject getTheObject() {
        return theObject;
    }
   
    public void setTheObject(FirstObject theObject) {
        this.theObject = theObject;
    }
}
———————————–

public class ExampleTest extends TestCase {

    private MyClass classUnderTest;

    private MockControl controlFirstObject;
    private FirstObject mockFirstObject;

   private MockControl controlSecondObject;
   private FirstObject mockSecondObject;
    setup
    —–
    classUnderTest = new MyClass();

    controlFirstObject = MockClassControl.createControl(FirstObject.class);
    mockFirstObject = (FirstObject) controlFirstObject.getMock();

   controlSecondObject = MockClassControl.createControl(SecondObject.class);
   mockSecondObject = (SecondObject) controlSecondObject.getMock();

    testCreateWorkItem
    ——————
    classUnderTest.setTheObject(mockFirstObject);
    controlFirstObject.expectAndReturn(mockFirstObject
                .createWorkItem(MyConstants.FIRSTVALUE),
                mockSecondObject);
   
    mockSecondObject.setPropertyValue(MyConstants.NAME, "name");

    controlFirstObject.replay();
    controlSecondObject.replay();
       
       
    controlFirstObject.verify();
    controlSecondObject.verify();
   

May 1, 2006 Posted by | SW Tools | Leave a comment