[jboss-user] [JBoss AOP] - Re: Intercepting web deployment

2007-10-11 Thread stevev
I'm still not having any luck. I've stripped down the original .aop file from the example and put the SimpleInterceptor class in it's own jar file without a META-INF/jboss-aop.xml file. I have put this jar in the jboss-aop-jdk50.deployer directory. I then added the following to the

[jboss-user] [JBoss AOP] - Intercepting web deployment

2007-10-10 Thread stevev
I'm trying to use JBoss AOP to intercept the execution of TomcatDeployer performDeploy method so that I can manipulate the WebApplication object but it doesn't seem to work for me. I followed the instructions on READ THIS FIRST sticky post of this forum to set up AOP on JBoss 4.2.1 which

[jboss-user] [JBoss AOP] - Re: Intercepting web deployment

2007-10-10 Thread stevev
Thanks Kabir. I guess I need to take a look at deployment order so that my interceptor is loaded before TomcatDeployer. Would putting the .aop archive file in the jboss-aop-jdk50.deployer directory be a good solution? As far as I can tell this directory gets deployed before the

[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-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-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] [Installation, Configuration DEPLOYMENT] - Sharing wars between virtual hosts

2007-07-17 Thread stevev
Hi, I'm moving my application from Tomcat to JBoss and I have a question. I need to allow multiple virtual hosts to use the same wars. On Tomcat I did this with hosts described in server.xml and context fragments (TOMCAT_DIR/conf/Catalina/my-host.com/ROOT.xml) for each domain. Within these

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Sharing wars between virtual hosts

2007-07-17 Thread stevev
I think this is actually just a JNDI question. In JBoss, is there a JNDI context for each web context or virtual host, and if so where is it configured? I've been looking at the JBoss Wiki: http://wiki.jboss.org/wiki/Wiki.jsp?page=JNDIBindingServiceMgr and this page looks like it could be the

[jboss-user] [Installation, Configuration DEPLOYMENT] - Re: Sharing wars between virtual hosts

2007-07-17 Thread stevev
Thanks for getting back to me. I think what you're describing is a env-entry for a certain web-app that can be defined in web.xml. This would then be the same for all virtual hosts that use this web app. I'm looking for a env-entry for each virtual host. So that depending on which domain name

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Virtual Hosts and JNDI

2007-07-17 Thread stevev
This post started here: http://www.jboss.org/index.html?module=bbop=viewtopict=113731 but I thought it might be more appropriate in the Tomcat forum. Does anyone know how to configure a separate JNDI context for each virtual host using the same war? I'm currently doing this with stand alone

[jboss-user] [Tomcat, HTTPD, Servlets JSP] - Virtual Hosts and JNDI

2007-07-17 Thread stevev
This post started here: http://www.jboss.org/index.html?module=bbop=viewtopict=113731 but I thought it might be more appropriate in the Tomcat forum. Does anyone know how to configure a separate JNDI context for each virtual host using the same war? I'm currently doing this with stand alone