----- Original Message -----
From: "Tommy Pham" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Monday, August 18, 2008 4:29 AM
Subject: Re: Tomcat 6.0.18 & JavaEE 5/EJB3.0
Hi Johnny,
--- On Sun, 8/17/08, Johnny Kewl <[EMAIL PROTECTED]> wrote:
Tommy if you havnt already... have a look at Visual Web
Pages... it has the
dB wizards and it works with TC.
Doesnt use JPA, it uses Cached Rowsets to persist... which
are actually
easier to understand, I think ;)
... nothing stopping you from making a lib that uses JPA,
and then using
that in TC, but you not going to get the dB wizards to work
with the web...
Visual Web Pages is the JSF technology... I didnt even know
Sun had got JPA
and WEB wizards working yet ;)
Anyway... TC and JSF are friendly... via VWP... if you wont
to give that a
spin on NB
Make a web project... select VWP... choose TC as the
server... maybe ;)
I did try out VWP before but I had some problems with it regarding db
automatically generating PK.
http://forums.java.net/jive/message.jspa?messageID=259409#259409
Since my database is normalized creating multiple one-to-many
relationships, I need the generated key to insert into other tables at the
same time. With Persistence, I can make full use of transaction if any
part of the inserts failed w/o having to worry much about incomplete/junk
data in my db because Persistence can give me the generated key right
after insert :)
Tommy I actually have my own persist framework... but just having a quick
squiz at that, that problem is just a normal Java thing... ie type
conversions can be a little tricky...
int and Integer are not the same thing in Java...
its going to be something like
int i = Integer.parseInt(TheThing);
I think...
same story for long... ie one is a primitive type and one is a class... diff
mem structure but Java alsways has a slightly obscure conversion
somewhere...
Have fun
Anyway, just wanted to make sure you knew VWP was there
---------------------------------------------------------------------------
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
---------------------------------------------------------------------------
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]