[jboss-user] [JNDI/Naming/Network] - Re: Extremely basic JNDI question

2007-09-03 Thread stevev
Thanks Wayne. Do you know whether a web contexts ENC can be set up dynamically with MBeans under JBoss. I know that Tomcat has pretty good MBeans support and in stand alone mode this can be done, but as far as I know JBoss handles Tomcat's JNDI when it's embedded. Any thoughts? Steve View

[jboss-user] [JNDI/Naming/Network] - Re: Extremely basic JNDI question

2007-08-26 Thread waynebaylor
not that i know of :( View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4078156#4078156 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4078156 ___ jboss-user mailing list

[jboss-user] [JNDI/Naming/Network] - Re: Extremely basic JNDI question

2007-08-24 Thread stevev
waynebaylor wrote: anonymous wrote : each web context should have its own ENC. so, for a given WAR file you can define java:comp/env/... lookups in its web.xml/jboss-web.xml. That's true. But if each war file is being shared by multiple web contexts then they all share the same ENC. Is there a

[jboss-user] [JNDI/Naming/Network] - Re: Extremely basic JNDI question

2007-08-16 Thread stevev
Before I continue looking for a way to initialise a name space for each web context maybe I should be asking whether there is one in the fist place. So does anyone know whether each web context is given it's own JNDI name space? Thanks, Steve View the original post :

[jboss-user] [JNDI/Naming/Network] - Re: Extremely basic JNDI question

2007-08-16 Thread waynebaylor
each web context should have its own ENC. so, for a given WAR file you can define java:comp/env/... lookups in its web.xml/jboss-web.xml. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4074860#4074860 Reply to the post :

[jboss-user] [JNDI/Naming/Network] - Re: Extremely basic JNDI question

2007-08-16 Thread dbronk
This unfortunately does not satisfy my needs. I'll go about it in a different way. But, this is extremly easy to do in Tomcat so I thought it would be easy to do in JBoss. But, we have found other issues moving from Tomcat to JBoss with JNDI also. Placing data sources in Tomcat we find them

[jboss-user] [JNDI/Naming/Network] - Re: Extremely basic JNDI question

2007-08-16 Thread jaikiran
dbronk wrote : Placing data sources in Tomcat we find them by looking up java:comp/env/. Move the same app to JBoss and add a x-datasource.xml to JBoss, and it will not find it when we lookup java:comp/env/. We need to remove the java:comp/env/ portion of our lookup... not very

[jboss-user] [JNDI/Naming/Network] - Re: Extremely basic JNDI question

2007-08-14 Thread stevev
I'm having a very similar problem; multiple web contexts sharing a war file, each using distinct data. I solved the problem slightly differently in Tomcat stand alone. Each context is given a unique key via JNDI that it uses to select the relevant rows of a shared database. But I think we're

[jboss-user] [JNDI/Naming/Network] - Re: Extremely basic JNDI question

2007-08-09 Thread dbronk
Sorry, I guess some of the xml got removed... here it is again but with some spaces so it does not get removed. This is the tomcat, easy, setup... Context path=/myApp ... !-- Datasource -- Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource /

[jboss-user] [JNDI/Naming/Network] - Re: Extremely basic JNDI question

2007-08-09 Thread PeterJ
I guess some questions come in threes, but to access a data source using the ENC, see http://www.jboss.com/index.html?module=bbop=viewtopict=115556 Not sure about the custom pojo, maybe someone else knows. View the original post :

[jboss-user] [JNDI/Naming/Network] - Re: Extremely basic JNDI question

2007-08-09 Thread dbronk
Thanks for the very fast reply. I looked at that thread and not sure that is going to give me what I want. I'm assuming that in the thread you pointed me to there would be a someds-ds.xml in the deploy directory of JBoss. That xml will point to the database. The problem now comes in that