You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Bolsover <ju...@bolsover.com> on 2003/07/04 13:04:28 UTC

GenericDataSource

Can someone explain why GenericDataSource was moved to lagacy?

I have been using it successfully as a JINI DataSourse - have others experienced
problems? - if so, what problems?

db


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


Re: GenericDataSource

Posted by Nicolas De Loof <ni...@cgey.com>.
That should be the reason why my "1.27 pm" brain looks so quick ! Don't panic, I'm on holiday next week, you will have
the whole day to respond to struts-users.

Nico.


> It's 4.25am here. My brain is a little bit s - l - o - w .
>
> Steve
>
> > -----Original Message-----
> > From: Nicolas De Loof [mailto:nicolas.deloof@cgey.com]
> > Sent: July 4, 2003 4:24 AM
> > To: Struts Users Mailing List; steve@ninsky.com
> > Subject: Re: GenericDataSource
> >
> >
> > I promise to let you respond first to the next one ! ;-)
> >
> > Nico.
> >
> >
> > > Stop doing that! :-)
> > >
> > > Steve
> > >
> > > > -----Original Message-----
> > > > From: Nicolas De Loof [mailto:nicolas.deloof@cgey.com]
> > > > Sent: July 4, 2003 4:15 AM
> > > > To: Struts Users Mailing List; junk1@bolsover.com
> > > > Subject: Re: GenericDataSource
> > > >
> > > >
> > > > Struts 1.1 has dependencies to some commons projects. First 1.1
> > > > pre-release of Struts used commons-dbcp for the
> > > > DataSource functionnality in replacement of GenericDataSource .
> > > >
> > > > Waiting for this commons to get stable before releasing 1.1
> > > > final, Struts commiters agreed to go back to
> > > > GenericDataSource because commons-dbcp looked very unstable.
> > > >
> > > > Struts-legacy has been created to include this class outside of
> > > > Struts core as DefaultDataSource have been deprecated :
> > > > Future Struts version will set the <datasource> "type" attribute
> > > > to mandatory, so you will have to set your selected
> > > > DataSource (that can be commons-dbcp, and lot's of us use
> > > > container pool service and JNDI to get a DataSource).
> > > >
> > > > Nico.
> > > >
> > > >
> > > >
> > > > >
> > > > > Can someone explain why GenericDataSource was moved to lagacy?
> > > > >
> > > > > I have been using it successfully as a JINI DataSourse - have
> > > > others experienced
> > > > > problems? - if so, what problems?
> > > > >
> > > > > db
> > > > >
> > > > >
> > > > >
> > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > > >
> > > >
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


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


RE: GenericDataSource

Posted by Steve Raeburn <st...@ninsky.com>.
It's 4.25am here. My brain is a little bit s - l - o - w .

Steve

> -----Original Message-----
> From: Nicolas De Loof [mailto:nicolas.deloof@cgey.com]
> Sent: July 4, 2003 4:24 AM
> To: Struts Users Mailing List; steve@ninsky.com
> Subject: Re: GenericDataSource
>
>
> I promise to let you respond first to the next one ! ;-)
>
> Nico.
>
>
> > Stop doing that! :-)
> >
> > Steve
> >
> > > -----Original Message-----
> > > From: Nicolas De Loof [mailto:nicolas.deloof@cgey.com]
> > > Sent: July 4, 2003 4:15 AM
> > > To: Struts Users Mailing List; junk1@bolsover.com
> > > Subject: Re: GenericDataSource
> > >
> > >
> > > Struts 1.1 has dependencies to some commons projects. First 1.1
> > > pre-release of Struts used commons-dbcp for the
> > > DataSource functionnality in replacement of GenericDataSource .
> > >
> > > Waiting for this commons to get stable before releasing 1.1
> > > final, Struts commiters agreed to go back to
> > > GenericDataSource because commons-dbcp looked very unstable.
> > >
> > > Struts-legacy has been created to include this class outside of
> > > Struts core as DefaultDataSource have been deprecated :
> > > Future Struts version will set the <datasource> "type" attribute
> > > to mandatory, so you will have to set your selected
> > > DataSource (that can be commons-dbcp, and lot's of us use
> > > container pool service and JNDI to get a DataSource).
> > >
> > > Nico.
> > >
> > >
> > >
> > > >
> > > > Can someone explain why GenericDataSource was moved to lagacy?
> > > >
> > > > I have been using it successfully as a JINI DataSourse - have
> > > others experienced
> > > > problems? - if so, what problems?
> > > >
> > > > db
> > > >
> > > >
> > > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > >
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>



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


Re: GenericDataSource

Posted by Nicolas De Loof <ni...@cgey.com>.
I promise to let you respond first to the next one ! ;-)

Nico.


> Stop doing that! :-)
> 
> Steve
> 
> > -----Original Message-----
> > From: Nicolas De Loof [mailto:nicolas.deloof@cgey.com]
> > Sent: July 4, 2003 4:15 AM
> > To: Struts Users Mailing List; junk1@bolsover.com
> > Subject: Re: GenericDataSource
> > 
> > 
> > Struts 1.1 has dependencies to some commons projects. First 1.1 
> > pre-release of Struts used commons-dbcp for the
> > DataSource functionnality in replacement of GenericDataSource .
> > 
> > Waiting for this commons to get stable before releasing 1.1 
> > final, Struts commiters agreed to go back to
> > GenericDataSource because commons-dbcp looked very unstable.
> > 
> > Struts-legacy has been created to include this class outside of 
> > Struts core as DefaultDataSource have been deprecated :
> > Future Struts version will set the <datasource> "type" attribute 
> > to mandatory, so you will have to set your selected
> > DataSource (that can be commons-dbcp, and lot's of us use 
> > container pool service and JNDI to get a DataSource).
> > 
> > Nico.
> > 
> > 
> > 
> > >
> > > Can someone explain why GenericDataSource was moved to lagacy?
> > >
> > > I have been using it successfully as a JINI DataSourse - have 
> > others experienced
> > > problems? - if so, what problems?
> > >
> > > db
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > 
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org

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


RE: GenericDataSource

Posted by Steve Raeburn <st...@ninsky.com>.
Stop doing that! :-)

Steve

> -----Original Message-----
> From: Nicolas De Loof [mailto:nicolas.deloof@cgey.com]
> Sent: July 4, 2003 4:15 AM
> To: Struts Users Mailing List; junk1@bolsover.com
> Subject: Re: GenericDataSource
> 
> 
> Struts 1.1 has dependencies to some commons projects. First 1.1 
> pre-release of Struts used commons-dbcp for the
> DataSource functionnality in replacement of GenericDataSource .
> 
> Waiting for this commons to get stable before releasing 1.1 
> final, Struts commiters agreed to go back to
> GenericDataSource because commons-dbcp looked very unstable.
> 
> Struts-legacy has been created to include this class outside of 
> Struts core as DefaultDataSource have been deprecated :
> Future Struts version will set the <datasource> "type" attribute 
> to mandatory, so you will have to set your selected
> DataSource (that can be commons-dbcp, and lot's of us use 
> container pool service and JNDI to get a DataSource).
> 
> Nico.
> 
> 
> 
> >
> > Can someone explain why GenericDataSource was moved to lagacy?
> >
> > I have been using it successfully as a JINI DataSourse - have 
> others experienced
> > problems? - if so, what problems?
> >
> > db
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 
> 


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


Re: GenericDataSource

Posted by Adam Hardy <ah...@cyberspaceroad.com>.
woohoo - I just had a look at the dbcp bugzilla

http://issues.apache.org/bugzilla/buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&bugidtype=include&bug_id=&changedin=&votes=&chfieldfrom=&chfieldto=Now&chfieldvalue=&product=Commons&component=Dbcp&short_desc=&short_desc_type=allwordssubstr&long_desc=&long_desc_type=allwordssubstr&bug_file_loc=&bug_file_loc_type=allwordssubstr&keywords=&keywords_type=anywords&field0-0-0=noop&type0-0-0=noop&value0-0-0=&cmdtype=doit&order=Reuse+same+sort+as+last+time

seems like they're still a few issues there to clear up.

David Bolsover wrote:
> Nico /Steve
> 
> Thanks for the prompt replies - glad I stuck with GenericDataSource rather than
> trying out the commons-dbpc offerings!
> 
> db
> 
> -----Original Message-----
> From: Nicolas De Loof [mailto:nicolas.deloof@cgey.com]
> Sent: 04 July 2003 12:15
> To: Struts Users Mailing List; junk1@bolsover.com
> Subject: Re: GenericDataSource
> 
> 
> Struts 1.1 has dependencies to some commons projects. First 1.1 pre-release of
> Struts used commons-dbcp for the
> DataSource functionnality in replacement of GenericDataSource .
> 
> Waiting for this commons to get stable before releasing 1.1 final, Struts
> commiters agreed to go back to
> GenericDataSource because commons-dbcp looked very unstable.
> 
> Struts-legacy has been created to include this class outside of Struts core as
> DefaultDataSource have been deprecated :
> Future Struts version will set the <datasource> "type" attribute to mandatory,
> so you will have to set your selected
> DataSource (that can be commons-dbcp, and lot's of us use container pool service
> and JNDI to get a DataSource).
> 
> Nico.
> 
> 
> 
> 
>>Can someone explain why GenericDataSource was moved to lagacy?
>>
>>I have been using it successfully as a JINI DataSourse - have others
> 
> experienced
> 
>>problems? - if so, what problems?
>>
>>db
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 


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


RE: GenericDataSource

Posted by David Bolsover <ju...@bolsover.com>.
Nico /Steve

Thanks for the prompt replies - glad I stuck with GenericDataSource rather than
trying out the commons-dbpc offerings!

db

-----Original Message-----
From: Nicolas De Loof [mailto:nicolas.deloof@cgey.com]
Sent: 04 July 2003 12:15
To: Struts Users Mailing List; junk1@bolsover.com
Subject: Re: GenericDataSource


Struts 1.1 has dependencies to some commons projects. First 1.1 pre-release of
Struts used commons-dbcp for the
DataSource functionnality in replacement of GenericDataSource .

Waiting for this commons to get stable before releasing 1.1 final, Struts
commiters agreed to go back to
GenericDataSource because commons-dbcp looked very unstable.

Struts-legacy has been created to include this class outside of Struts core as
DefaultDataSource have been deprecated :
Future Struts version will set the <datasource> "type" attribute to mandatory,
so you will have to set your selected
DataSource (that can be commons-dbcp, and lot's of us use container pool service
and JNDI to get a DataSource).

Nico.



>
> Can someone explain why GenericDataSource was moved to lagacy?
>
> I have been using it successfully as a JINI DataSourse - have others
experienced
> problems? - if so, what problems?
>
> db
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org



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


Re: GenericDataSource

Posted by Nicolas De Loof <ni...@cgey.com>.
Struts 1.1 has dependencies to some commons projects. First 1.1 pre-release of Struts used commons-dbcp for the
DataSource functionnality in replacement of GenericDataSource .

Waiting for this commons to get stable before releasing 1.1 final, Struts commiters agreed to go back to
GenericDataSource because commons-dbcp looked very unstable.

Struts-legacy has been created to include this class outside of Struts core as DefaultDataSource have been deprecated :
Future Struts version will set the <datasource> "type" attribute to mandatory, so you will have to set your selected
DataSource (that can be commons-dbcp, and lot's of us use container pool service and JNDI to get a DataSource).

Nico.



>
> Can someone explain why GenericDataSource was moved to lagacy?
>
> I have been using it successfully as a JINI DataSourse - have others experienced
> problems? - if so, what problems?
>
> db
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


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


Re: Where is GenericDataSource?

Posted by Ted Husted <hu...@apache.org>.
There shouldn't be any issues, so long as don't use any of the new 1.4 
features. All of these will throw an UnsupportedOperationException (see 
source).

The only advantage would be whatever compiler optimizations might apply 
between 1.3 and 1.4. Both versions support the same feature set.

Ka-Wai Chan wrote:
> The release says that GenericDataSource is compiled under jdk1.3, but 
> can be recompiled in jdk1.4... Is this necessary?  I am running jdk 1.4 
> and the lib seems to work fine.  Any known issues?
> 
> Thanks
> Ka-Wai



-- 
Ted Husted,
Struts in Action <http://husted.com/struts/book.html>



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


Re: Where is GenericDataSource?

Posted by Ka-Wai Chan <ka...@transcanada.com>.
The release says that GenericDataSource is compiled under jdk1.3, but 
can be recompiled in jdk1.4... Is this necessary?  I am running jdk 1.4 
and the lib seems to work fine.  Any known issues?

Thanks
Ka-Wai

Steve Raeburn wrote:
> It's packaged in struts-legacy.jar which is in the lib directory of your the
> struts distribution.
> 
> Steve
> 
> 
>>-----Original Message-----
>>From: Michael Muller [mailto:mmuller@theworld.com]
>>Sent: July 7, 2003 8:59 AM
>>To: Struts Users Mailing List
>>Subject: Where is GenericDataSource?
>>
>>I assume I need to copy another jar file to by WEB-INF/lib dir...  So
>>where *is* the GenericDataSource packaged now?



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


Re: Where is GenericDataSource?

Posted by Michael Muller <mm...@theworld.com>.
To answer my own question: in struts-legacy.jar

Michael Muller wrote:

> 
> I assume I need to copy another jar file to by WEB-INF/lib dir...  So 
> where *is* the GenericDataSource packaged now?
> 
> Steve Raeburn wrote:
> 
>> The short answer is that GenericDataSource was originally deprecated in
>> favour of Commons DBCP.
>>
>> Unfortunately, problems with DBCP that could not be fixed in time for the
>> 1.1 release meant that DBCP was removed and 1.1 reverted back to Generic
>> DataSource.
>>
>> This is only a temporary measure so GenericDataSource was packaged
>> separately from the main struts jar.
>>
>> Steve
>>
>>
>>> -----Original Message-----
>>> From: David Bolsover [mailto:junk1@bolsover.com]
>>> Sent: July 4, 2003 4:04 AM
>>> To: Struts User
>>> Subject: GenericDataSource
>>>
>>>
>>>
>>> Can someone explain why GenericDataSource was moved to lagacy?
>>>
>>> I have been using it successfully as a JINI DataSourse - have
>>> others experienced
>>> problems? - if so, what problems?
>>>
>>> db
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>>
>>>
>>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org




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


RE: Where is GenericDataSource?

Posted by Steve Raeburn <st...@ninsky.com>.
It's packaged in struts-legacy.jar which is in the lib directory of your the
struts distribution.

Steve

> -----Original Message-----
> From: Michael Muller [mailto:mmuller@theworld.com]
> Sent: July 7, 2003 8:59 AM
> To: Struts Users Mailing List
> Subject: Where is GenericDataSource?
>
> I assume I need to copy another jar file to by WEB-INF/lib dir...  So
> where *is* the GenericDataSource packaged now?




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


Where is GenericDataSource?

Posted by Michael Muller <mm...@theworld.com>.
I assume I need to copy another jar file to by WEB-INF/lib dir...  So 
where *is* the GenericDataSource packaged now?

Steve Raeburn wrote:
> The short answer is that GenericDataSource was originally deprecated in
> favour of Commons DBCP.
> 
> Unfortunately, problems with DBCP that could not be fixed in time for the
> 1.1 release meant that DBCP was removed and 1.1 reverted back to Generic
> DataSource.
> 
> This is only a temporary measure so GenericDataSource was packaged
> separately from the main struts jar.
> 
> Steve
> 
> 
>>-----Original Message-----
>>From: David Bolsover [mailto:junk1@bolsover.com]
>>Sent: July 4, 2003 4:04 AM
>>To: Struts User
>>Subject: GenericDataSource
>>
>>
>>
>>Can someone explain why GenericDataSource was moved to lagacy?
>>
>>I have been using it successfully as a JINI DataSourse - have
>>others experienced
>>problems? - if so, what problems?
>>
>>db
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>>
>>
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org




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


RE: GenericDataSource

Posted by Steve Raeburn <st...@ninsky.com>.
The short answer is that GenericDataSource was originally deprecated in
favour of Commons DBCP.

Unfortunately, problems with DBCP that could not be fixed in time for the
1.1 release meant that DBCP was removed and 1.1 reverted back to Generic
DataSource.

This is only a temporary measure so GenericDataSource was packaged
separately from the main struts jar.

Steve

> -----Original Message-----
> From: David Bolsover [mailto:junk1@bolsover.com]
> Sent: July 4, 2003 4:04 AM
> To: Struts User
> Subject: GenericDataSource
>
>
>
> Can someone explain why GenericDataSource was moved to lagacy?
>
> I have been using it successfully as a JINI DataSourse - have
> others experienced
> problems? - if so, what problems?
>
> db
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>



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