-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Hibernate Multi Tenancy setup problems (SCHEMA)
PostPosted: Fri May 09, 2014 8:50 am 
Newbie

Joined: Fri May 09, 2014 8:36 am
Posts: 1
Hi i am trying to setup my Multi Tenancy app but i can't set up my ConnectorProvider.

I am selecting DatasourceConnectionProviderImpl as a ConnectorProvider :

1.- Setup Database Source

Map lSettings = serviceRegistry.getService(ConfigurationService.class).getSettings();
MysqlDataSource mysqlDS = new MysqlDataSource();
mysqlDS.setURL("jdbc:mysql://localhost:3306/mt1");
mysqlDS.setUser("root");
mysqlDS.setPassword("");

2.- Initialice and setup ConnectorProvider with this database conf:

DatasourceConnectionProviderImpl dcp = new DatasourceConnectionProviderImpl();
dcp.setDataSource(mysqlDS);
try {

3.- Ever the same error when do this : (Provider is closed!)
connectionProvider = dcp;
connectionProvider.getConnection();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

Any idea???

Can anybody show me a full example of multi tenancy schema (basic applicationConfig)

Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.