You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Erik Price <ep...@ptc.com> on 2003/04/29 18:26:31 UTC

[ot] JavaBean persistence design advice

Hi,

I am not using EJB or any kind of managed persistence in my webapp 
(though Torque looks pretty cool).  What is a recommended and not too 
complex means to store simple JavaBeans to a DB?  I currently have a 
"store()"-like method in my JavaBeans so that they can persist 
themselves, but I thought I heard once (I forget where) that this is a 
design antipattern.

What do others use?


Regards,
Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: java:comp is not bound in this ctx.

Posted by Daniel Kowalik <da...@reuters.pl>.
Ok, never mind. the war had to many libraries in WEB-INF/lib, this
confused tomcat a bit.
bests
d.


-----Original Message-----
From: Daniel Kowalik [mailto:daniel@reuters.pl] 
Sent: Wednesday, April 30, 2003 5:11 PM
To: 'Tomcat Users List'
Subject: java:comp is not bound in this ctx.


Hi All,
i've just tried to use JNDI connection pool with MySql, i exactly copied
the example from tomcat docs
(http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-example
s-howto.html) and i still got the message that java:comp is not bound in
this context. However when i moved all the code to jsp it works
perfectly. Has anyone met similar thing? I use Tomcat 4.1.24LE on Java
1.4.1_02. 

Bests
daniel


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


java:comp is not bound in this ctx.

Posted by Daniel Kowalik <da...@reuters.pl>.
Hi All,
i've just tried to use JNDI connection pool with MySql, i exactly copied
the example from tomcat docs
(http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-example
s-howto.html) and i still got the message that java:comp is not bound in
this context. However when i moved all the code to jsp it works
perfectly. Has anyone met similar thing? I use Tomcat 4.1.24LE on Java
1.4.1_02. 

Bests
daniel


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: [ot] JavaBean persistence design advice

Posted by Kevin D'Elia <ke...@comcast.net>.
I'm working with Tomcat 4.1 and have set up the PersistenceManager to 
store session information to the filesystem; there's support for JDBC as 
well, although I haven't done that myself (yet).  Also, I am playing 
around with the session replication feature that will be available in 
5.x from what I understand, but can be retrofitted into a 4.x installation.

HTH

Kevin D'Elia

Erik Price wrote:

> Hi,
>
> I am not using EJB or any kind of managed persistence in my webapp 
> (though Torque looks pretty cool).  What is a recommended and not too 
> complex means to store simple JavaBeans to a DB?  I currently have a 
> "store()"-like method in my JavaBeans so that they can persist 
> themselves, but I thought I heard once (I forget where) that this is a 
> design antipattern.
>
> What do others use?
>
>
> Regards,
> Erik
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org