Just to follow this up, here's an abridged summary of the to/fro
against the support ticket:

Alan:
the 'foo' variable isn't even getting presented to the Servlet Engine,
because, we simply defer to the REQ.getHeader("foo") if we don't see
it in our standard list.

Looks like you are using Apache httpd to pass through content to the
backend Servlet Engine.   If it isn't being passed through, then we
won't be able to pick it up.

Me:
I'm not quite sure what else I need to do to expose that custom
variable to OBD?  In CF and PHP (once I work out how to set one with
Resin's web server, I'll test Railo too), all I need to do is set it.
That's it.

I have to concede I am out of my depth with all this,[...]

OK.  So if "that the 'foo' variable isn't even getting presented to
the Servlet Engine" is the case... how is it CF and PHP both see it?
Obviously it's being presented to *their* servlet engines (it's the
same Apache server running all three, btw).  SO Apache is creating the
variable.  CF & PHP both "get it".  Does something need to be done on
the Tomcat side of things to get it to pay attention to what Apache is
saying, and accordingly for it to expose it for OBD to see it?  And
this is something CF's JRun connector does by default, and PHP...
um... well whatever it does.

Is it down to the fact that CF and PHP connect to Apache via an SO
module, whereas I've had to do a bunch of proxy "stuff" to get OBD/
Tomcat/Apache all playing nice (from Matt's instructions here:
http://www.mattwoodward.com/blog/index.cfm?event=showEntry&entryId=03233F6F-ED2C-43C7-AFF5FA2B3C3D845B)?

Alan:
The Servlet connector mechanism will have a huge impact on the scope
of variables presented to it.

PHP has a very tight integration to httpd, so that is probably a bad
example to use at this point.   I expect a whole manner of httpd
parameters to be available to PHP that probably wouldn't be available
out-of-the-box to a Java backend.

There are a two major ways to connect to the backend: mod_proxy and
mod_jk.  I suspect the ACF JRun will be setup to use mod_jk; which is
the more complicated of the two, but it is the more tightly coupled of
the two.

I have never seen their connection so I can't comment on how they
integrate to Apache.

Sounds like you've gone down the mod_proxy route (as per Matt's blog)
which looks like there isn't as much data available through this
mechanism.

This is fascinating revelations.


(that's the end of the copy and paste)

Anyway, I figure this conversation is probably better on the list than
against the support ticket.

So...  as I said I'm out of my depth with this... I guess I've been
spoilt by the easy of installing CF and it doing it all for me.  So
whilst I can follow instructions (great instructions btw, Matt), I
don't really know what I'm doing or why, so cannot intuit what else I
might have to do to get Apache to tell Tomcat about my environment
variables, and accordingly how to get Tomcat to tell OBD.  Or...
what...

Can anyone point me in the right direction?  I did google around a
fair bit y/day, but didn't spot anything.  I might not have been
googling for the right stuff.

Cheers.

--
Adam




On Jun 5, 11:39 am, Adam Cameron <[email protected]>
wrote:
> > I assume you'll want to just submit a ticket on that one so it's on the
> > radar. Thanks.
>
> Done:http://code.google.com/p/openbluedragon/issues/detail?id=356
>
> Cheers.
>
> --
> Adam

-- 
official tag/function reference: http://openbd.org/manual/
 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to