You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Paul Stanton <pa...@mapshed.com.au> on 2010/09/14 02:31:50 UTC

T5+hibernate - multiple session factories

  I have an tapestry app that needs to connect to 2 different databases.

Has anyone done this with tapestry-hibernate?

thanks, p.

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


Re: T5+hibernate - multiple session factories

Posted by cleverpig <gr...@gmail.com>.
you guy,maybe you should hack hibernate module to support multiple datasource.

On Tue, Sep 14, 2010 at 9:35 AM, Fanzhen <fa...@hotmail.com> wrote:
>
>  well I am using spring + hibernate(JPA features) ,you can set up two more
> persist unit.
>
>
> On 2010-9-14 8:31, Paul Stanton wrote:
>>
>>  I have an tapestry app that needs to connect to 2 different databases.
>>
>> Has anyone done this with tapestry-hibernate?
>>
>> thanks, p.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
cleverpig(Dan)
Location: Beijing
Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
Zipcode: 100031
MSN: great_liudan@hotmail.com
QQ: 149291732
Skype: cleverpigatmatrix
Facebook ID:cleverpig
Blog: cleverpig.name/dan/
Tags: del.icio.us/cleverpig
Twitter: twitter.com/cleverpig
新浪微博: t.sina.com.cn/cleverpig
Organization: www.beijing-open-party.org
Organ@Facebook: http://www.facebook.com/group.php?gid=8159558294

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


Re: T5+hibernate - multiple session factories

Posted by Fanzhen <fa...@hotmail.com>.
  well I am using spring + hibernate(JPA features) ,you can set up two 
more persist unit.


On 2010-9-14 8:31, Paul Stanton wrote:
>  I have an tapestry app that needs to connect to 2 different databases.
>
> Has anyone done this with tapestry-hibernate?
>
> thanks, p.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>


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


Re: T5+hibernate - multiple session factories

Posted by cleverpig <gr...@gmail.com>.
oh,I found hibernate shards? It handle multiple database naturally.
anyone used it with T5?

hibernate shards:http://www.hibernate.org/subprojects/shards.html

On Tue, Sep 14, 2010 at 5:17 PM, antalk <an...@intercommit.nl> wrote:
>
> Hi,
>
> I have done this successfully but i had to create my own implementations of
> HibernateConfigurer, HibernateSessionManager and HibernateSessionSource.
>
> There is also an open issue about this:
> https://issues.apache.org/jira/browse/TAP5-48
> https://issues.apache.org/jira/browse/TAP5-48
>
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/T5-hibernate-multiple-session-factories-tp2838477p2838865.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>



-- 
cleverpig(Dan)
Location: Beijing
Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China
Zipcode: 100031
MSN: great_liudan@hotmail.com
QQ: 149291732
Skype: cleverpigatmatrix
Facebook ID:cleverpig
Blog: cleverpig.name/dan/
Tags: del.icio.us/cleverpig
Twitter: twitter.com/cleverpig
新浪微博: t.sina.com.cn/cleverpig
Organization: www.beijing-open-party.org
Organ@Facebook: http://www.facebook.com/group.php?gid=8159558294

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


Re: T5+hibernate - multiple session factories

Posted by antalk <an...@intercommit.nl>.
Hi,

I have done this successfully but i had to create my own implementations of
HibernateConfigurer, HibernateSessionManager and HibernateSessionSource.

There is also an open issue about this: 
https://issues.apache.org/jira/browse/TAP5-48
https://issues.apache.org/jira/browse/TAP5-48 


-- 
View this message in context: http://tapestry.1045711.n5.nabble.com/T5-hibernate-multiple-session-factories-tp2838477p2838865.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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