Or maybe have a feature where you can define a resource that gets
injected as a URL or something. Then you could define resources with
your module along side your configs and services.

Stanczak Group wrote:

>Achim Hügen wrote:
>
>  
>
>>In which way is HiveMind involved?
>>    
>>
>
>I'm using a service to send the email. The service loads the external
>file for the body of the email.
>
>  
>
>>What do you expect hivemind to do with the file?
>>    
>>
>
>I guess just find the file and pass me a inputstream. Which I understand
>that's what the class loaders do. I was just curious how others where
>doing this when using HiveMind.
>
>  
>
>>Achim
>>
>>Am Tue, 12 Jul 2005 11:10:31 +0000 schrieb Stanczak Group
>><[EMAIL PROTECTED]>:
>>
>>    
>>
>>>I've written a servlet with HiveMind and Tapestry that needs to load a
>>>file for parsing. Usually I would do this:
>>>
>>>context.getServlet().getServletContext().getResourceAsStream("filename");
>>>
>>>
>>>I've tried just using the:
>>>
>>>this.getClass().getResourceAsStream("filename");
>>>
>>>But I can't seem to get that to work and the first method references the
>>>servlet. What's the proper way to do this the HiveMind way? Thanks.
>>>
>>>      
>>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>    
>>
>
>  
>

-- 
Justin Stanczak
Stanczak Group
812-735-3600

"All that is necessary for the triumph of evil is that good men do nothing."
Edmund Burke

..________...............__.................
./  _____/..____..._____/..|_..____...____....
/...\..____/.__.\./....\...__\/.._.\./._..\....
\....\_\..\..___/|...|..\..|.(..<_>.|.<_>..)....
.\______../\___.._\__|../__|..\____/.\____/......
........\/.....\/.....\/..........................


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to