turbine-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason van Zyl <jvan...@apache.org>
Subject Re: ScheduledJob & Application tools
Date Tue, 14 Aug 2001 12:00:59 GMT
On 8/14/01 7:44 AM, "Scott Eade" <seade@backstagetech.com.au> wrote:

> From: "Scott Eade" <seade@backstagetech.com.au>
>> From: "Scott Eade" <seade@backstagetech.com.au>
>>> From: "Jason van Zyl" <jvanzyl@apache.org>
>>>> In 2.1 use the TurbineServletService to gain access to server information
>>>> from code that has no access to RunData. Take a peek at the TurbineServlet
>>>> static helper to get what you need.
>>>>  
>>>> jvz.
>>>> 
>>>> Jason van Zyl
>>>> 
>>> 
>>> I'm attempting to use TurbineServlet to initialise a ServerData instance
>>> as follows:
>>> 
>>>     ServerData sd = new ServerData(TurbineServlet.getServerName(),
>>>                
>>> Integer.parseInt(TurbineServlet.getServerPort()),
>>>                                    TurbineServlet.getServerScheme(),
>>>                                    "", // scriptName?
>>>                                    TurbineServlet.getContextPath());
>>> 
>>> [ I need the ServerData to pass to the TemplateLink constructor in my
>>> ScheduledJob (TemplateLink tl = new TemplateLink(sd);)  - i.e. the
>>> Context is not available. ]
>>> 
>>> The trouble is that TurbineServlet.getServerPort() is returning null
>>> rather than the expected "8080".  Any idea what is going wrong here?
>>> 
>>> Also, what is scriptName for?  Will it be okay to pass ""?
>>> 
>>> Thanks,
>>> 
>>> Scott
>> 
>> Actually, all of the TurbineServlet methods invoked above return null.
>> 
>> Is there something wrong with the way I am attempting to use TurbineServlet?
>> 
>> Thanks,
>> 
>> Scott
> 
> Am I having a conversation with myself here?  :-)
> 
> Is this going to be the same problem as highlighted in the following archived
> message?

Yes, same problem. This is not going to be a problem in 3.0, but I don't
have any time right now to debug 2.1.

 
> http://www.mail-archive.com/turbine-user@jakarta.apache.org/msg02323.html
> 
> Scott
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org

-- 

jvz.

Jason van Zyl

http://tambora.zenplex.org
http://jakarta.apache.org/turbine
http://jakarta.apache.org/velocity
http://jakarta.apache.org/alexandria
http://jakarta.apache.org/commons



---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Mime
View raw message