Sun Application Server Startup Command: /opt/SUNWappserver/bin/asadmin start-domain --domaindir /opt/SUNWappserver/domains --user admin

Wednesday, May 31, 2006

Hibernate is slow with JRE 1.5

Hibernate is slow with JRE 1.5. We still don't know why, but the fact is SLOW. We wrote a native SQL instead of Hibernate SQL to generate complexes SQL command. Following is record from Steve's Email:

We found out what the problem was attributed to. It was a very strange and quite frankly a misleading performance issue within Hibernate during the loading of the resultset into memory. We couldn’t pinpoint why it was failing (so slow), but were able to narrow down by a process of elimination (poor elimination). It turns out that we know the issue is one of two things:
· Running Hibernate on Solaris
· Running Hibernate using JDK 1.5
We really don’t care what the issue is because we’ve figured out how to tweak the code and fixed the problem.

Tapesty group pick up my question.

It's happy to know that Tapestry group pick up my question about 508 compliance on ALT tag on FormTable. To work a way around, I just use Javascript to assign it when body onload.

for (i = 11; i< 14; i++) {
myImage = document.getElementsByTagName('img')[i];
if (myImage != null && myImage != 'undefined') {
if (myImage.src.indexOf('arrow-up.gif')>0) {
myImage.setAttribute('alt','Sort Ascending');
} else if (myImage.src.indexOf('arrow-down.gif')>0) {
myImage.setAttribute('alt','Sort Descending');
}
}
}

Thursday, May 25, 2006

Tapestry: LinkSubmit problem for browsing back

The way to fix it:
Copy the LinkSubmit.jwc and LinkSubmit.java file from Tapestry. Rename it and extend to LinkSubmit.java

// make sure the submit function is on the page (once)
if (cycle.getAttribute(ATTRIBUTE_FUNCTION_NAME) == null)
{
Add This =>>body.addInitializationScript("document." + formName + "._linkSubmit.value = null;");
body.addBodyScript("function submitLink(form, elementId) { form._linkSubmit.value = elementId; if (form.onsubmit == null || form.onsubmit()) form.submit(); }");
cycle.setAttribute(ATTRIBUTE_FUNCTION_NAME, this);
}
Please refer this to http://mail-archives.apache.org/mod_mbox/jakarta-tapestry-dev
/200506.mbox/%3C594252918.1118656487914.JavaMail.jira
@ajax.apache.org%3E

Release Project Procedure

- Update release-note-xx.doc
Commit it
- Update Label
- Run label (.bat) file
- Base on CVS Diff, write the release note
-

Migration db from Production to Local

- Export data from production (configuration is from "property" file)to local though SQL Server/import
- Export data to cache ant -f migration.xml save-export
- Commit export-data.zip to CVS

To import into database use ant -Denvironment=qa migrate-db-cached

Wednesday, May 24, 2006

Cannot logon to Microsoft Shared Point on Windows 2003

To solve this problem, set sucurity directly under Website instead of under Shared point web site.
- Check Basic authentication only.
- Assign domain name in the text field.

Monday, May 22, 2006

Baseball ticket

Just got ticket for tonight National with Houston. Lucky...

It's me

This is me, the world I have.
I wish category can be apply on blog.