velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geir Magnusson Jr. <ge...@optonline.net>
Subject Re: Velocity in EJB Container
Date Tue, 21 Oct 2003 11:44:49 GMT

On Monday, October 20, 2003, at 08:32 AM, Ganesh wrote:

>
> Hi,
> I am trying to use Velocity inside an EJB Container. There are
> programming restriction of EJB 1.1 spec (section 18.1.2), as given  
> below
> in using the File System.
>
> "An enterprise bean must not use the java.io package to attempt to
> access files and directories in the file system.
>
> The file system APIs are not well-suited for business components to
> access data. Business components should use a resource manager API,  
> such
> as JDBC API, to store data. "
>
> In this scenario,which is best resource loader for Velocity to be used?
> Will the selected resource loader, provide the caching facility as  
> well?
> Please let me know if there any know issues of using Velocity inside an
> EJB container. Apart from the fact that I can see some 'synchronized'
> keywords being used in the velocity source code.

I think the best resource loader is the webapp resource loader, if you  
are in the servlet part of the container, or the classpath resource  
loader.

What's the problem with synchronization?

>
> Regards,
> Ganesh
>
> **************************Disclaimer*********************************** 
> *
>
> Information contained in this E-MAIL being proprietary to Wipro  
> Limited is
> 'privileged' and 'confidential' and intended for use only by the  
> individual
>  or entity to which it is addressed. You are notified that any use,  
> copying
> or dissemination of the information contained in the E-MAIL in any  
> manner
> whatsoever is strictly prohibited.
>
> *********************************************************************** 
> ****
>
-- 
Geir Magnusson Jr                                   203-247-1713(m)
geirm@optonline.net


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


Mime
View raw message