You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "Miroslav F." <mi...@seznam.cz> on 2011/06/04 14:56:46 UTC

database

Hi folks,

I'm newbie in wicket. I would like to make my wicket app to store
images in database. No problem but I don't know how to configure
tomcat + wicket for database. I'm using database in other java apps
(I'm Java SWING programmer).

Should I use pure JDBC and manage my connections in wicket code?
Or should I use Hibernate?
Or tomcat database connection pool - I have never use it so I don't
know how to make it and use with tomcat and wicket.

Please be patient to me - wicket and tomcat is something new for me
and I'm confused with doc I have found. In finish I don't know where
is right docu for this problem.

Examples are welcome.

Thanks in advance,

Miro


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: database

Posted by Martin Grigorov <mg...@apache.org>.
http://www.jweekend.com/dev/LegUp
Here you can choose a Maven archetype that will create an application
skeleton with the technologies you chose.

https://github.com/wicketstuff/core/tree/master/jdk-1.5-parent/phonebook
This is the latest source of phonebook

On Tue, Jun 7, 2011 at 11:41 AM, Miroslav F. <mi...@seznam.cz> wrote:
> The original question was "I would like to make my wicket app to store
> images in
> database. No problem but I don't know how to configure tomcat + wicket for
> database."
>
> No "is it good idea to store images in database?" ;-)
>
> Still don't know how to work with database in wicket. Is anywhere examples?
> wicket phonebook example is not working:
> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook/
>
> I move to direction not use pure JDBC and using Hibernate. Does someone know
> where to find docs for using Hibernate in webapp project? Where to put
> config
> file or any other specific issues for using Hibernate in webapp?
>
> Thanks, Miro
>
>
>
>> -----Original Message-----
>> From: meduolis [mailto:meduoliai@gmail.com]
>> Sent: Sunday, 05. June 2011 12:19
>> To: users@wicket.apache.org
>> Subject: Re: database
>>
>> Why do you want to store images in database? I think that is
>> not a very good idea. You better store images in your file
>> system, and persist into database only the paths to images.
>>
>> --
>> View this message in context:
>> http://apache-wicket.1842946.n4.nabble.com/database-tp3573282p
> 3574812.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: database

Posted by "Miroslav F." <mi...@seznam.cz>.
Hielke,

this is what I was looking for :-)

Thanks,

Miro

 

> -----Original Message-----
> From: Hielke Hoeve [mailto:Hielke.Hoeve@topicus.nl] 
> Sent: Wednesday, 08. June 2011 08:37
> To: users@wicket.apache.org
> Subject: RE: database
> 
> http://lmgtfy.com/?q=wicket+hibernate+spring+howto
> 
> First hit: 
> http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/
> 
> 
> Hielke
> 
> -----Original Message-----
> From: Miroslav F. [mailto:mirfok@seznam.cz]
> Sent: dinsdag 7 juni 2011 11:42
> To: users@wicket.apache.org
> Subject: RE: database
> 
> The original question was "I would like to make my wicket app 
> to store images in database. No problem but I don't know how 
> to configure tomcat
> + wicket for database."
> 
> No "is it good idea to store images in database?" ;-)
> 
> Still don't know how to work with database in wicket. Is 
> anywhere examples?
> wicket phonebook example is not working:
> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook/
> 
> I move to direction not use pure JDBC and using Hibernate. 
> Does someone know where to find docs for using Hibernate in 
> webapp project? Where to put config file or any other 
> specific issues for using Hibernate in webapp?
> 
> Thanks, Miro
> 
> 
> 
> > -----Original Message-----
> > From: meduolis [mailto:meduoliai@gmail.com]
> > Sent: Sunday, 05. June 2011 12:19
> > To: users@wicket.apache.org
> > Subject: Re: database
> > 
> > Why do you want to store images in database? I think that is not a 
> > very good idea. You better store images in your file system, and 
> > persist into database only the paths to images.
> > 
> > --
> > View this message in context: 
> > http://apache-wicket.1842946.n4.nabble.com/database-tp3573282p
> 3574812.html
> > Sent from the Users forum mailing list archive at Nabble.com.
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: database

Posted by Hielke Hoeve <Hi...@topicus.nl>.
http://lmgtfy.com/?q=wicket+hibernate+spring+howto

First hit: 
http://wicketinaction.com/2009/06/wicketspringhibernate-configuration/


Hielke

-----Original Message-----
From: Miroslav F. [mailto:mirfok@seznam.cz] 
Sent: dinsdag 7 juni 2011 11:42
To: users@wicket.apache.org
Subject: RE: database

The original question was "I would like to make my wicket app to store
images in database. No problem but I don't know how to configure tomcat
+ wicket for database."

No "is it good idea to store images in database?" ;-)

Still don't know how to work with database in wicket. Is anywhere
examples?
wicket phonebook example is not working:
http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook/

I move to direction not use pure JDBC and using Hibernate. Does someone
know where to find docs for using Hibernate in webapp project? Where to
put config file or any other specific issues for using Hibernate in
webapp?

Thanks, Miro



> -----Original Message-----
> From: meduolis [mailto:meduoliai@gmail.com]
> Sent: Sunday, 05. June 2011 12:19
> To: users@wicket.apache.org
> Subject: Re: database
> 
> Why do you want to store images in database? I think that is not a 
> very good idea. You better store images in your file system, and 
> persist into database only the paths to images.
> 
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/database-tp3573282p
3574812.html
> Sent from the Users forum mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: database

Posted by "Miroslav F." <mi...@seznam.cz>.
The original question was "I would like to make my wicket app to store
images in
database. No problem but I don't know how to configure tomcat + wicket for
database."

No "is it good idea to store images in database?" ;-)

Still don't know how to work with database in wicket. Is anywhere examples?
wicket phonebook example is not working:
http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-phonebook/

I move to direction not use pure JDBC and using Hibernate. Does someone know
where to find docs for using Hibernate in webapp project? Where to put
config
file or any other specific issues for using Hibernate in webapp?

Thanks, Miro



> -----Original Message-----
> From: meduolis [mailto:meduoliai@gmail.com] 
> Sent: Sunday, 05. June 2011 12:19
> To: users@wicket.apache.org
> Subject: Re: database
> 
> Why do you want to store images in database? I think that is 
> not a very good idea. You better store images in your file 
> system, and persist into database only the paths to images.
> 
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/database-tp3573282p
3574812.html
> Sent from the Users forum mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: database

Posted by meduolis <me...@gmail.com>.
Why do you want to store images in database? I think that is not a very good
idea. You better store images in your file system, and persist into database
only the paths to images.

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/database-tp3573282p3574812.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: database

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Hi!

> Separate project? I would to deploy just one .jar into tomcat for my wicket
> app. I think this wicket app .jar should contain database code for wicket
> app.

Well you can deploy what you want using a deploy script, don't let
that mess up your development or project structure.

**
Martin

>
>
>> -----Original Message-----
>> From: Martin Makundi [mailto:martin.makundi@koodaripalvelut.com]
>> Sent: Saturday, 04. June 2011 15:34
>> To: users@wicket.apache.org
>> Subject: Re: database
>>
>> Hi!
>>
>> Make a separate project for wicket app and database module,
>> so you don't need to worry about where to place what in what
>> combination.
>>
>> This way you can share you db module with both your wicket
>> project and swing project. Also you should keep swing project
>> and wicket project sparate.
>>
>> **
>> Martin
>>
>> 2011/6/4 Miroslav F. <mi...@seznam.cz>:
>> > Hi Martin,
>> >
>> > ok, so can I use Hibernate as in my Swing apps? And Hibernate .jars
>> > just to incude in same place as wicket .jar? Where to store
>> Hibernate config file?
>> >
>> > Miro
>> >
>> >
>> >> -----Original Message-----
>> >> From: Martin Makundi [mailto:martin.makundi@koodaripalvelut.com]
>> >> Sent: Saturday, 04. June 2011 14:59
>> >> To: users@wicket.apache.org
>> >> Subject: Re: database
>> >>
>> >> Hi!
>> >>
>> >> > I'm newbie in wicket. I would like to make my wicket app
>> to store
>> >> > images in database. No problem but I don't know how to configure
>> >> > tomcat + wicket for database. I'm using database in
>> other java apps
>> >> > (I'm Java SWING programmer).
>> >> >
>> >> > Should I use pure JDBC and manage my connections in wicket code?
>> >> > Or should I use Hibernate?
>> >> > Or tomcat database connection pool - I have never use it
>> so I don't
>> >> > know how to make it and use with tomcat and wicket.
>> >>
>> >> Don't mix database and wicket java code.
>> >>
>> >> Make a database service module (or use a ready one from
>> spring etc.)
>> >> and make invocations to it from wicket.
>> >>
>> >> Is just the same as using swing.
>> >>
>> >> **
>> >> Martin
>> >>
>> >> >
>> >> > Please be patient to me - wicket and tomcat is something
>> new for me
>> >> > and I'm confused with doc I have found. In finish I don't
>> >> know where
>> >> > is right docu for this problem.
>> >> >
>> >> > Examples are welcome.
>> >> >
>> >> > Thanks in advance,
>> >> >
>> >> > Miro
>> >> >
>> >> >
>> >> >
>> >>
>> ---------------------------------------------------------------------
>> >> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> >> > For additional commands, e-mail: users-help@wicket.apache.org
>> >> >
>> >> >
>> >>
>> >>
>> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> >> For additional commands, e-mail: users-help@wicket.apache.org
>> >>
>> >>
>> >
>> >
>> >
>> ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > For additional commands, e-mail: users-help@wicket.apache.org
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: database

Posted by "Miroslav F." <mi...@seznam.cz>.
Separate project? I would to deploy just one .jar into tomcat for my wicket
app. I think this wicket app .jar should contain database code for wicket
app.

I don't need to mix swing apps with wicket apps.
 

> -----Original Message-----
> From: Martin Makundi [mailto:martin.makundi@koodaripalvelut.com] 
> Sent: Saturday, 04. June 2011 15:34
> To: users@wicket.apache.org
> Subject: Re: database
> 
> Hi!
> 
> Make a separate project for wicket app and database module, 
> so you don't need to worry about where to place what in what 
> combination.
> 
> This way you can share you db module with both your wicket 
> project and swing project. Also you should keep swing project 
> and wicket project sparate.
> 
> **
> Martin
> 
> 2011/6/4 Miroslav F. <mi...@seznam.cz>:
> > Hi Martin,
> >
> > ok, so can I use Hibernate as in my Swing apps? And Hibernate .jars 
> > just to incude in same place as wicket .jar? Where to store 
> Hibernate config file?
> >
> > Miro
> >
> >
> >> -----Original Message-----
> >> From: Martin Makundi [mailto:martin.makundi@koodaripalvelut.com]
> >> Sent: Saturday, 04. June 2011 14:59
> >> To: users@wicket.apache.org
> >> Subject: Re: database
> >>
> >> Hi!
> >>
> >> > I'm newbie in wicket. I would like to make my wicket app 
> to store 
> >> > images in database. No problem but I don't know how to configure 
> >> > tomcat + wicket for database. I'm using database in 
> other java apps 
> >> > (I'm Java SWING programmer).
> >> >
> >> > Should I use pure JDBC and manage my connections in wicket code?
> >> > Or should I use Hibernate?
> >> > Or tomcat database connection pool - I have never use it 
> so I don't 
> >> > know how to make it and use with tomcat and wicket.
> >>
> >> Don't mix database and wicket java code.
> >>
> >> Make a database service module (or use a ready one from 
> spring etc.) 
> >> and make invocations to it from wicket.
> >>
> >> Is just the same as using swing.
> >>
> >> **
> >> Martin
> >>
> >> >
> >> > Please be patient to me - wicket and tomcat is something 
> new for me 
> >> > and I'm confused with doc I have found. In finish I don't
> >> know where
> >> > is right docu for this problem.
> >> >
> >> > Examples are welcome.
> >> >
> >> > Thanks in advance,
> >> >
> >> > Miro
> >> >
> >> >
> >> >
> >> 
> ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> > For additional commands, e-mail: users-help@wicket.apache.org
> >> >
> >> >
> >>
> >> 
> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: database

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Hi!

Make a separate project for wicket app and database module, so you
don't need to worry about where to place what in what combination.

This way you can share you db module with both your wicket project and
swing project. Also you should keep swing project and wicket project
sparate.

**
Martin

2011/6/4 Miroslav F. <mi...@seznam.cz>:
> Hi Martin,
>
> ok, so can I use Hibernate as in my Swing apps? And Hibernate .jars just to
> incude in same place as wicket .jar? Where to store Hibernate config file?
>
> Miro
>
>
>> -----Original Message-----
>> From: Martin Makundi [mailto:martin.makundi@koodaripalvelut.com]
>> Sent: Saturday, 04. June 2011 14:59
>> To: users@wicket.apache.org
>> Subject: Re: database
>>
>> Hi!
>>
>> > I'm newbie in wicket. I would like to make my wicket app to store
>> > images in database. No problem but I don't know how to configure
>> > tomcat + wicket for database. I'm using database in other java apps
>> > (I'm Java SWING programmer).
>> >
>> > Should I use pure JDBC and manage my connections in wicket code?
>> > Or should I use Hibernate?
>> > Or tomcat database connection pool - I have never use it so I don't
>> > know how to make it and use with tomcat and wicket.
>>
>> Don't mix database and wicket java code.
>>
>> Make a database service module (or use a ready one from
>> spring etc.) and make invocations to it from wicket.
>>
>> Is just the same as using swing.
>>
>> **
>> Martin
>>
>> >
>> > Please be patient to me - wicket and tomcat is something new for me
>> > and I'm confused with doc I have found. In finish I don't
>> know where
>> > is right docu for this problem.
>> >
>> > Examples are welcome.
>> >
>> > Thanks in advance,
>> >
>> > Miro
>> >
>> >
>> >
>> ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> > For additional commands, e-mail: users-help@wicket.apache.org
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: database

Posted by "Miroslav F." <mi...@seznam.cz>.
Hi Martin,

ok, so can I use Hibernate as in my Swing apps? And Hibernate .jars just to
incude in same place as wicket .jar? Where to store Hibernate config file?

Miro


> -----Original Message-----
> From: Martin Makundi [mailto:martin.makundi@koodaripalvelut.com] 
> Sent: Saturday, 04. June 2011 14:59
> To: users@wicket.apache.org
> Subject: Re: database
> 
> Hi!
> 
> > I'm newbie in wicket. I would like to make my wicket app to store 
> > images in database. No problem but I don't know how to configure 
> > tomcat + wicket for database. I'm using database in other java apps 
> > (I'm Java SWING programmer).
> >
> > Should I use pure JDBC and manage my connections in wicket code?
> > Or should I use Hibernate?
> > Or tomcat database connection pool - I have never use it so I don't 
> > know how to make it and use with tomcat and wicket.
> 
> Don't mix database and wicket java code.
> 
> Make a database service module (or use a ready one from 
> spring etc.) and make invocations to it from wicket.
> 
> Is just the same as using swing.
> 
> **
> Martin
> 
> >
> > Please be patient to me - wicket and tomcat is something new for me 
> > and I'm confused with doc I have found. In finish I don't 
> know where 
> > is right docu for this problem.
> >
> > Examples are welcome.
> >
> > Thanks in advance,
> >
> > Miro
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: database

Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Hi!

> I'm newbie in wicket. I would like to make my wicket app to store
> images in database. No problem but I don't know how to configure
> tomcat + wicket for database. I'm using database in other java apps
> (I'm Java SWING programmer).
>
> Should I use pure JDBC and manage my connections in wicket code?
> Or should I use Hibernate?
> Or tomcat database connection pool - I have never use it so I don't
> know how to make it and use with tomcat and wicket.

Don't mix database and wicket java code.

Make a database service module (or use a ready one from spring etc.)
and make invocations to it from wicket.

Is just the same as using swing.

**
Martin

>
> Please be patient to me - wicket and tomcat is something new for me
> and I'm confused with doc I have found. In finish I don't know where
> is right docu for this problem.
>
> Examples are welcome.
>
> Thanks in advance,
>
> Miro
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org