Thanks Sumedha for the answers.
On Mon, Mar 18, 2013 at 11:54 AM, Sumedha Rubasinghe <[email protected]>wrote: > Some short answers. > > > On Mon, Mar 18, 2013 at 11:27 AM, Isuru Perera <[email protected]> wrote: > >> Hi all, >> >> I have a question regarding $subject. >> >> Is it already used inside core? Will we be able to use Spring Bean inside >> back-end services? >> > > Yes. No restrictions. > I asked this question as Spring has implemented classes in a simple way to use Java EE APIs. If there are no restrictions, we can think of re-using what Spring has done. >> I have used Spring Framework for many years and there are so many ways we >> can use it. We can also save a lot of time writing code. >> >> For example, Can we use Spring JDBC [1]? >> > Yes. > > I asked this as we also need to use JDBC within Carbon components and we can reduce the effort of creating data sources, transaction management etc. One problem is that the code will be coupled with Spring Framework, but I think that's a compromise we can make to reduce the effort to do everything manually. Currently how do these things related to JDBC are handled? Is there an example for me to check? I think API Manager also uses JDBC. >> Spring Framework is released under Apache License [2] and therefore I >> think there will be no problems with license. >> >> > Generally speaking, we have not added any restrictions on using any > framework with Carbon Framework. > However due to component architecture we have, there may be certain > restrictions that have creeped in without our knowledge. > This is especially true when it comes to resource loading (configuration > files) from classpaths. > > But bear in mind that when writing applications using third party > frameworks like this and if you expect your app to be multi tenant capable, > things like data isolation,execution isolation, security, sharing(caching), > efficient loading of classes, logging should be taken into consideration. > > > Yes, I understand. Introducing third party frameworks can be a risk to a more complex framework like Carbon. > > > >> [1] >> http://static.springsource.org/spring/docs/current/spring-framework-reference/htmlsingle/#jdbc >> [2] http://www.springsource.org/spring-framework >> -- >> Isuru Perera >> Senior Software Engineer | WSO2, Inc. | http://wso2.com/ >> Lean . Enterprise . Middleware >> >> Twitter: http://twitter.com/chrishantha | LinkedIn: >> http://lk.linkedin.com/in/chrishantha/ >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > /sumedha > m: +94 773017743 > b : bit.ly/sumedha > -- Isuru Perera Senior Software Engineer | WSO2, Inc. | http://wso2.com/ Lean . Enterprise . Middleware Twitter: http://twitter.com/chrishantha | LinkedIn: http://lk.linkedin.com/in/chrishantha/
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
