Where can I buy a sense of Style?

Hmm. It looks like this description of a new Ant task has some styles to it. I’d like to figure out how to use those for creating some simple documentation of my own. I’m almost positive that the source file is XML. I just need to find it again..

Are you my Dashboard?

This post mentions an interesting app, Dashboard.

Ahh. EJB testing. Let the discussion commence!

Here‘s a short post that showed me this discussion. I’m most interested with the link to MockEJB, since I’d prefer to use mock objects over server-side testing for most cases.

How to Keep Users from Clicking “Back”

You really can’t. There are Struts discussions here with recommended settings here. And this discussion refers to the WebObjects docs here.

You also can’t reliably display a “Warning: Page has Expired” IE message, as discussed here.

Overall it seems like transaction tokens are a recommended solution, but I was surprised that no one mentioned Struts Workflow.

Simple way to find locked rows

I had an application from another group fail, and lock a DB row that I needed to use. In the investigation, a DBA showed me this code to figure out which rows were locked.

create table show_locks(id_num number);

declare
1x number;
begin
  for i in 1..[max_id] loop
    insert into show_locks values(i);
    commit;
    update [original_table] set [id] = i where id = i;
  end loop;
end;

The update will throw an exception, and the max_id of the show_locks table will contain the id of the locked row. This statement can be run again by updating the 1..[max_id] to be [last_id+1]..[max_id].

I haven’t tried it, but I didn’t want to lose the idea either.

Just What The Doc Ordered

I’ve been toying with the idea of writing a book lately, and this set of hacking instructions for subversion‘s book really got me excited. They describe DocbookLite, the book format used by O’Reilly.

Perhaps some day I’ll write a bit for O’Reilly.

What are good ways to get file contents to an EJB?

I can think of a few:

  • From a webserver, use the Commons FileUpload library and provide a custom class that sends bytes to the EJB instead of the file system.
  • From a console program, loop through buffers of the file, and send chunks of the file to the EJB

Does this mean that you have to create a TCP-like idea for your EJB, to
make sure everything got there and is in order?

How well does it handle failures?

What kinds of failures could occur?

Is it really worth it?

Links I’ve found here.

I need a Design Library

I think it would be really cool to have a set of personal analysis patterns
that I could choose from when creating applications. These could include
solutions I’ve found helpful for:

  • Build systems
  • Payment tracking
  • Email generation
  • Project management

They should be searchable, and perhaps include UML designs.