[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Application Scoped datasources

2009-08-18 Thread matanderson
So it seems not possible to true application scoped datasources at this time. I have a few followup questions. 1) How are others working with this issue? Do you trust your developers to not comb the jndi tree and look for datasources? Or do you just spawn a new jboss install for each

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Application Scoped datasources

2009-08-18 Thread PeterJ
1) By restricting who has access to the production server (only the sysadmin is allowed to deploy apps to production) and by using code reviews to make sure that no developer write a datasource fishing app. For really secure environments, an app server instance per app is also used. 2) Enter a

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Application Scoped datasources

2009-08-17 Thread matanderson
Thanks henk53 - this is the sort of idea I was looking for. I'll see what I can figure out from this. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4249926#4249926 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4249926

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Application Scoped datasources

2009-08-17 Thread matanderson
I did what you suggested - and It still added the datasource on the global jndi tree. In this case, i put my test datasource in the META-INF directory. | jboss-app | module | serviceMETA-INF/datasource1-ds.xml/service | /module | /jboss-app | When the

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Application Scoped datasources

2009-08-17 Thread jaikiran
As Peter said, even if you package the datasource within your app, the datasource will finally be bound to a JNDI tree which can be accessible by other applications deployed on the same server instance. View the original post :

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Application Scoped datasources

2009-08-14 Thread henk53
matanderson wrote : I am looking for a way to setup application scoped datasources within JBoss (4.2.3 or 5).[...] Is this possible on JBoss? | | I think so, put your database-ds.xml in your ear at the top level, and define a reference to it in yourear/META-INF/jboss-app.xml: |

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Application Scoped datasources

2009-07-24 Thread PeterJ
As far as I know, once the datasource is deployed and its name show up in the JNDI tree, any app can connect to the database. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4245882#4245882 Reply to the post :