[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Application Scoped datasources
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 application? 2) To me, this sounds like something JBoss could benefit from. How do I go about a feature enhancement to get something like this in? Sadly, I am not much of a coder, more of a system admin type person so I am of very little help when it comes to enhancements. thanks for the discussion. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250202#4250202 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250202 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Application Scoped datasources
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 JIRA issue at http://jira.jboss.org/. You can use your forum account and password to log into JIRA. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250216#4250216 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250216 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Application Scoped datasources
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 mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Application Scoped datasources
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 application is deployed, I see: INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=datasource1' from JNDI name 'java:datasource1' on the console. A second applications (DBTester) can read the datasoure by issuing a | INFO [ConnectionFactoryBindingService] Unbound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=datasource1' from JNDI name 'java:datasource1' | Thanks for the suggestion, other ideas? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250002#4250002 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250002 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Application Scoped datasources
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 : http://www.jboss.org/index.html?module=bbop=viewtopicp=4250047#4250047 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4250047 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Application Scoped datasources
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-app | module | servicedatabase-ds.xml/service | /module | /jboss-app | At least now its defined by your individual app. Jboss AS offers a mechanism to prevent classes being visible to other applications. This is called scoped class loading and works by defining a class loader repository. Maybe a similar mechanism (or perhaps even that exact mechanism) could be used to prevent the datasource from being visible to other apps. I'm not the greatest Jboss expert, but maybe this give you some pointers and hopefully a real expert will give some better advice. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4249741#4249741 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4249741 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Application Scoped datasources
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 : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4245882 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user