You can subscribe to this list here.
| 2003 |
Jan
|
Feb
(55) |
Mar
(100) |
Apr
(203) |
May
(330) |
Jun
(190) |
Jul
(302) |
Aug
(323) |
Sep
(197) |
Oct
(245) |
Nov
(490) |
Dec
(330) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(194) |
Feb
(400) |
Mar
(416) |
Apr
(415) |
May
(359) |
Jun
(381) |
Jul
(491) |
Aug
(311) |
Sep
(291) |
Oct
(273) |
Nov
(355) |
Dec
(266) |
| 2005 |
Jan
(306) |
Feb
(303) |
Mar
(520) |
Apr
(346) |
May
(255) |
Jun
(221) |
Jul
(171) |
Aug
(247) |
Sep
(147) |
Oct
(125) |
Nov
(165) |
Dec
(65) |
| 2006 |
Jan
(90) |
Feb
(53) |
Mar
(121) |
Apr
(103) |
May
(113) |
Jun
(103) |
Jul
(104) |
Aug
(67) |
Sep
(78) |
Oct
(82) |
Nov
(78) |
Dec
(70) |
| 2007 |
Jan
(77) |
Feb
(76) |
Mar
(63) |
Apr
(30) |
May
(47) |
Jun
(41) |
Jul
(44) |
Aug
(44) |
Sep
(49) |
Oct
(33) |
Nov
(25) |
Dec
(21) |
| 2008 |
Jan
(45) |
Feb
(13) |
Mar
(15) |
Apr
(12) |
May
(9) |
Jun
(33) |
Jul
(30) |
Aug
(7) |
Sep
(20) |
Oct
(17) |
Nov
(20) |
Dec
(10) |
| 2009 |
Jan
(8) |
Feb
(5) |
Mar
(12) |
Apr
(17) |
May
(19) |
Jun
(97) |
Jul
(77) |
Aug
(33) |
Sep
(24) |
Oct
(41) |
Nov
(16) |
Dec
(32) |
| 2010 |
Jan
(24) |
Feb
(14) |
Mar
(50) |
Apr
(71) |
May
(70) |
Jun
(64) |
Jul
(45) |
Aug
(62) |
Sep
(32) |
Oct
(4) |
Nov
(12) |
Dec
(2) |
| 2011 |
Jan
(1) |
Feb
(3) |
Mar
(4) |
Apr
(3) |
May
(6) |
Jun
(1) |
Jul
(4) |
Aug
(3) |
Sep
(4) |
Oct
(6) |
Nov
(3) |
Dec
(3) |
| 2012 |
Jan
(4) |
Feb
(8) |
Mar
(6) |
Apr
(10) |
May
(2) |
Jun
(3) |
Jul
(11) |
Aug
(10) |
Sep
(4) |
Oct
|
Nov
(1) |
Dec
(1) |
| 2013 |
Jan
(4) |
Feb
(1) |
Mar
(9) |
Apr
(1) |
May
(8) |
Jun
(2) |
Jul
(5) |
Aug
(2) |
Sep
|
Oct
(3) |
Nov
(10) |
Dec
(8) |
| 2014 |
Jan
(3) |
Feb
(12) |
Mar
(9) |
Apr
(12) |
May
(2) |
Jun
|
Jul
(3) |
Aug
(1) |
Sep
(1) |
Oct
(4) |
Nov
|
Dec
(2) |
| 2015 |
Jan
(1) |
Feb
(3) |
Mar
(4) |
Apr
(9) |
May
(2) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(7) |
Oct
(9) |
Nov
(7) |
Dec
(9) |
| 2016 |
Jan
(7) |
Feb
(5) |
Mar
(5) |
Apr
(5) |
May
(8) |
Jun
(4) |
Jul
(5) |
Aug
(4) |
Sep
(6) |
Oct
(7) |
Nov
(2) |
Dec
(3) |
| 2017 |
Jan
(7) |
Feb
(8) |
Mar
(7) |
Apr
(3) |
May
(4) |
Jun
(3) |
Jul
(5) |
Aug
(8) |
Sep
(4) |
Oct
(2) |
Nov
(3) |
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2019 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2021 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2022 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
| 2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
(2) |
Aug
(5) |
Sep
(2) |
Oct
|
Nov
|
Dec
(1) |
| 2026 |
Jan
(1) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Kopylenko, D. <dko...@ac...> - 2003-12-24 14:56:14
|
Everyone, I would like to take this opportunity to wish everyone a very happy and safe holidays. It's been a great year for evolution of Spring Framework. I really am proud to be a part of this great team of such talented people. I have a feeling the new year would be very positive for Spring Framework and continuing trend towards lightweight architectures. Merry Christmas and Happy New Year!!! Cheers, Dmitriy. |
|
From: Luke T. <ne...@fr...> - 2003-12-23 23:47:18
|
Thanks Alef. I'll try that out. Looking at the code for the CC scheduler, though, I think you have to put the multiple="1" builder last or it'll be used each time (because 1 divides any number) and any additional builders will be ignored. I've also hacked the xsl to remove most of the output apart from build errors. I'll leave it running over the holiday period and if it seems happy enough I'll get it to mail failures to the list. cheers, Luke. Alef Arendsen wrote: > > No problem. You can have multiple AntBuilder elements in your config > file. For instance like this: > > <antbuilder target="clean build" mulitple="5"/> > <antbuilder target="build"/> > > Then it'll do a clean build every five builds (the other builds are > normal ones). > > When using the MavenBuilder, you can do the same thing. OF course if > you're builing hourly, the clean-build should have a multiple attribute > of 24 (or 23, I never know ;-): > > <mavenbuilder goal="maven:distribute" multiple="1"/> <!-- multiple = 1 > by default --> > <mavenbuilder goal="clean maven:distribute" multiple="5"/> > > Should do the trick... > > Alef > -- Luke Taylor. Monkey Machine Ltd. PGP Key ID: 0x57E9523C http://www.monkeymachine.ltd.uk |
|
From: Alef A. <al...@jt...> - 2003-12-23 14:51:53
|
> I've got it on hourly builds at the moment while I'm > tinkering with it. > It's also just doing an update but I'd like to do a clean > build at least > once a day. Perhaps Alef can help with that as he said he's pretty > familiar with CC. No problem. You can have multiple AntBuilder elements in your config file. For instance like this: <antbuilder target="clean build" mulitple="5"/> <antbuilder target="build"/> Then it'll do a clean build every five builds (the other builds are normal ones). When using the MavenBuilder, you can do the same thing. OF course if you're builing hourly, the clean-build should have a multiple attribute of 24 (or 23, I never know ;-): <mavenbuilder goal="maven:distribute" multiple="1"/> <!-- multiple = 1 by default --> <mavenbuilder goal="clean maven:distribute" multiple="5"/> Should do the trick... Alef |
|
From: Luke T. <ne...@fr...> - 2003-12-23 14:36:10
|
Rod Johnson wrote: > Luke > > This is pretty cool now. I don't need to run Clover locally any more, > which is good as I never got the Eclipse plugin to work with the > flaky milestone releases of Eclipse I'm stupid enough to use :-) > > How often does the build run? > I've got it on hourly builds at the moment while I'm tinkering with it. It's also just doing an update but I'd like to do a clean build at least once a day. Perhaps Alef can help with that as he said he's pretty familiar with CC. > It would be nice to link from the home page in the near future. > However, this could produce a lot of hits. Do you have any problems > with that? Not as far as I know :), but I'm pretty new to hosting business so the exerience is welcome. It's running on a DSL line which seems to be OK. I get quite a lot of hits already just from Google searches on the Spring and JBoss stuff. Luke. P.S. The CC reports are here http://monkeymachine.co.uk/cruisecontrol/buildresults/spring I'd like to cut down the amount of output and remove the account info in there but I'm working on that... |
|
From: Luke T. <lu...@mo...> - 2003-12-23 14:34:22
|
Rod Johnson wrote: > Luke > > This is pretty cool now. I don't need to run Clover locally any more, which > is good as I never got the Eclipse plugin to work with the flaky milestone > releases of Eclipse I'm stupid enough to use :-) > > How often does the build run? > I've got it on hourly builds at the moment while I'm tinkering with it. It's also just doing an update but I'd like to do a clean build at least once a day. Perhaps Alef can help with that as he said he's pretty familiar with CC. > It would be nice to link from the home page in the near future. However, > this could produce a lot of hits. Do you have any problems with that? > Not as far as I know :), but I'm pretty new to hosting business so the exerience is welcome. It's running on a DSL line which seems to be OK. I get quite a lot of hits already just from Google searches on the Spring and JBoss stuff. Luke. P.S. The CC reports are here http://monkeymachine.co.uk/cruisecontrol/buildresults/spring I'd like to cut down the amount of output and remove the account info in there but I'm working on that... -- Luke Taylor. Monkey Machine Ltd. PGP Key ID: 0x57E9523C http://www.monkeymachine.ltd.uk |
|
From: Luke T. <lu...@mo...> - 2003-12-23 14:29:08
|
Rod Johnson wrote: > Luke > > This is pretty cool now. I don't need to run Clover locally any more, which > is good as I never got the Eclipse plugin to work with the flaky milestone > releases of Eclipse I'm stupid enough to use :-) > > How often does the build run? > I've got it on hourly builds at the moment while I'm tinkering with it. It's also just doing an update but I'd like to do a clean build at least once a day. Perhaps Alef can help with that as he said he's pretty familiar with CC. > It would be nice to link from the home page in the near future. However, > this could produce a lot of hits. Do you have any problems with that? > Not as far as I know :), but I'm pretty new to hosting business so the exerience is welcome. It's running on a DSL line which seems to be OK. I get quite a lot of hits already just from Google searches on the Spring and JBoss stuff. Luke. -- Luke Taylor. Monkey Machine Ltd. PGP Key ID: 0x57E9523C http://www.monkeymachine.ltd.uk |
|
From: Rod J. <rod...@in...> - 2003-12-23 14:02:41
|
Luke This is pretty cool now. I don't need to run Clover locally any more, which is good as I never got the Eclipse plugin to work with the flaky milestone releases of Eclipse I'm stupid enough to use :-) How often does the build run? It would be nice to link from the home page in the near future. However, this could produce a lot of hits. Do you have any problems with that? Regards, Rod ----- Original Message ----- From: "Luke Taylor" <ne...@fr...> To: <spr...@li...> Sent: Sunday, December 21, 2003 5:45 PM Subject: Re: [Springframework-developer] Maven/Cruise Control Build > Hi Alef, > > I'm still finding my way around CC, but there's a "spamwhilebroken" > which I think can be used to disable repeated notifications of a broken > build. The mails are too big just now anyway, so I need to find a way to > cut down the CC report first... and then wait for someone to break the > build :). > > Luke. > > > > Alef Arendsen wrote: > >>Shall I set up a mail to the dev list for failed builds? > > > > > > Hey, cool! > > > > Well, buildfailed mails to the Dev list is fine with, as long as > > buildAfterBuildFailed property of CC is false (we've got that turned on > > here, and I'm getting mails each hour if build fails :) > > > > Alef > > > > > -- > Luke Taylor. Monkey Machine Ltd. > PGP Key ID: 0x57E9523C http://www.monkeymachine.ltd.uk > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > |
|
From: Rod J. <rod...@in...> - 2003-12-22 23:14:38
|
Mark Commons Attributes looks adequate, although I have some reservations about its parsing capability. (It doesn't really parse at all.) I think that the approach of generating Java source files works pretty well. I think it will become more evident as more people use Spring's attributes integration whether Commons Attributes is the way forward. The Spring Attributes interface provides a facade, allowing pluggable attribute provides (including, of course, eventually JSR-175, and possible a hierarchy of different providers allowing for overriding source-level attributes in configuration). Btw I've added an attributes example to the new JPetStore; this illustrate build process and usage. This provides declarative transaction management based on attributes, with no need for a TransactionProxyFactoryBean. See the /attributes directory of the sample app for Regards, Rod ----- Original Message ----- From: "Mark Pollack" <Mar...@Co...> To: <spr...@li...> Sent: Monday, December 22, 2003 9:15 PM Subject: Re: [Springframework-developer] BcelAttributes > Hi, > > Sounds ok, I've had precious little time to devote to the attribute stuff. > Is a side file implementation needed or is attributes-commons fitting the > bill now? > - Mark > > > We should keep it for reference. I did mean to make it abstract and > > comment > > out the contents today so it compiled, but didn't get around to it. > > > > ----- Original Message ----- > > From: "Kopylenko, Dmitry" <dko...@su...> > > To: <spr...@li...> > > Sent: Monday, December 22, 2003 7:10 PM > > Subject: [Springframework-developer] BcelAttributes > > > > > >> Mark, everyone, > >> > >> the BcelAttributes and BcelAttributeWriter classes in the sandbox tree > > won't > >> compile because bcel.jar is gone from the lib tree. Should we keep it > > around > >> or should we get rid of it? > >> > >> Regards, > >> Dmitriy. > >> > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: IBM Linux Tutorials. > > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > > _______________________________________________ > > Springframework-developer mailing list > > Spr...@li... > > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > |
|
From: Ross M. <ro...@at...> - 2003-12-22 23:07:47
|
Hi J=FCrgen, i've been testing against the lastest M4 src and everything seems to be=20 fine. So we have migrated to your OpenSessionInViewFilter. As usual=20 guys, things just work properly... Well done! Cheers, Ross j=FCrgen h=F6ller [werk3AT] wrote: > FYI, we've migrated our AOP framework to CGLIB2 today, also shipping Hi= bernate 2.1.1 now and building Spring against it. This will be the basis = for 1.0 M4, to be released mid next week. So there shouldn't be any poten= tial for Hibernate 2.1/CGLIB2 issues anymore! >=20 > Finally, congratulations on your beta, of course! >=20 > Juergen >=20 >=20 > -----Original Message----- > From: spr...@li... > [mailto:spr...@li...]On Behalf > Of Ross Mason > Sent: Friday, December 19, 2003 9:23 AM > To: spr...@li... > Subject: Re: [Springframework-developer] Refreshing the > ApplicationContext... >=20 >=20 > Hi J=FCrgen, >=20 > Just to let you know I didn't have time today to try out the=20 > OpenSessionInViewFilter, we've been busy doing a release of Confluence=20 > beta1. I'll try it out on Monday now. > I remember last week there were some postings about removing/changing=20 > the Spring Wiki, so you might be interested in checking out=20 > http://confluence.atlassian.com. And of course it's using Spring ;-) >=20 > Have a good weekend, >=20 > Ross >=20 > j=FCrgen h=F6ller [werk3AT] wrote: >=20 >=20 >>Ross, >> >>I've just re-tested Petclinic from our current CVS HEAD against a dropp= ed-in Hibernate 2.1 final (plus cglib2, minus cglib-asm), with and withou= t OpenSessionInViewFilter. Works nicely for me - no VerifyErrors. Could y= ou please re-try and re-report if there are still issues? >> >>Note that the AOP framework is not migrated to CGLIB2 yet (it's in the = works), but this shouldn't affect you at all if you just proxy via interf= aces (the default). Simply remove cglib-asm from the class path, drop in = hibernate2, cglib2, eh-cache - and you should be done. >> >>Juergen >> >> >>-----Original Message----- >>From: spr...@li... >>[mailto:spr...@li...]On Behalf >>Of Ross Mason >>Sent: Tuesday, December 16, 2003 11:46 PM >>To: spr...@li... >>Subject: Re: [Springframework-developer] Refreshing the >>ApplicationContext... >> >> >>Hi j=FCrgen, >> >>Sounds interesting, anything without EJB is always a bonus in my book -= =20 >>excuse the pun ;-) >> >>We've actually decided to wait for the M4 release before migrating. Th= e=20 >>problem is that we're using a hibernate 2.1 jar built from HEAD and I=20 >>was getting VerifyErrors errors when running with the latest from Sprin= g=20 >>HEAD due to an incompatability with the two jars. >> >>If you would like me to test it once M4 is using hibernate 2.1 and=20 >>before you make the actual release I would be happy to. >> >>Cheers, >> >>Ross >> >>j=FCrgen h=F6ller [werk3AT] wrote: >> >> >> >>>It's "J2EE Development Without EJB", co-authored by Rod and me, the fo= llow-up to Rod's "J2EE Design and Development". Editing deadline is mid J= anuary, so you can guess that we're quite busy! >>> >>>Of course, the book uses Spring for all examples - but it is an archit= ecture book, not a Spring tutorial. A dedicated Spring book will follow l= ater next year :-) >>> >>>BTW, does the OpenSessionInViewFilter work for you? If there are any i= ssues with it, please tell me before the M4 release... >>> >>>Finally, is there some documentation on the "external-ref" mechanism t= hat you use for XWork/Spring integration? We will probably refer to that = in Spring docs and the book, so I'd like to make sure that we get the syn= tax right. >>> >>>Juergen >>> >>> >>>-----Original Message----- >>>From: spr...@li... >>>[mailto:spr...@li...]On Behal= f >>>Of Ross Mason >>>Sent: Tuesday, December 16, 2003 3:39 AM >>>To: spr...@li... >>>Subject: Re: [Springframework-developer] Refreshing the >>>ApplicationContext... >>> >>> >>>Ok mate, sounds like it's time for you to hit the sack. >>> >>>BTW What's the book? you can tell me in the morning ;-) >>> >>>Cheers, >>> >>>Ross >>> >>>j=FCrgen h=F6ller [werk3AT] wrote: >>> >>> >>> >>> >>>>I could have thought of that if it wasn't already so late (3:20 in th= e morning now). Yes, that's a known limitation: If you proxy an object, b= oth the proxy and the target object will match the type. You need to reso= rt to explicit references for such beans - as I said, this will even work= for specific references if you apply autowire-by-type in general. >>>> >>>>BTW, have I mentioned that writing a book is *damn hard work*? ;-) >>>> >>>>Juergen >>>> >>>> >>>>________________________________ >>>> >>>>Von: spr...@li... im Auftrag= von Ross Mason >>>>Gesendet: Di 16.12.2003 02:23 >>>>An: spr...@li... >>>>Betreff: Re: [Springframework-developer] Refreshing the ApplicationCo= ntext... >>>> >>>> >>>> >>>>Hi j=FCrgen, >>>> >>>>When I run getBeansOfType() on our config (turning off autowireByType= ) I >>>>do get two beans returned: >>>>- I get the emialTemplateManager as expected (this is a proxy >>>>org.springframework.transaction.interceptor.TransactionProxyFactoryBe= an). >>>>- I also get back our emailTemplateManagerTarget which is our proxied >>>>object. >>>> >>>>This suggests you can't use autowireByType when using >>>>TransactionProxyFactoryBean or any other ProxyFactoryBean. Is this >>>>intended behaviour? >>>> >>>>Cheers, >>>> >>>>Ross >>>> >>>> >>>>j=FCrgen h=F6ller [werk3AT] wrote: >>>> >>>> >>>> >>>> >>>> >>>>>Ross, >>>>> >>>>>If you build a single context from multiple files, autowiring will a= utomatically scan all the bean definitions in those files. In your case, = I assume that you do have multiple definitions of type EmailTemplateManag= er, possibly in two different context files. You could check that program= matically by examining the result of ApplicationContext.getBeansOfType(Em= ailTemplateManager.class, true, true). >>>>> >>>>>In any case, even if you apply autowiring in general, you can always= override a specific dependency, like an explicit bean reference from pro= perty "emailTemplateManager" of bean "notifierCreatePage" to a specific b= ean of type EmailTemplateManager: >>>>> >>>>><bean id=3D"notifierCreatePage" class=3D"..." autowire=3D"byType"> >>>>><property name=3D"emailTemplateManager"><ref bean=3D"myEmailTemplate= Manager"/></property> >>>>>... >>>>></bean> >>>>> >>>>>Juergen >>>>> >>>>> >>>>>________________________________ >>>>> >>>>>Von: spr...@li... im Auftra= g von Ross Mason >>>>>Gesendet: Di 16.12.2003 01:00 >>>>>An: spr...@li... >>>>>Betreff: Re: [Springframework-developer] Refreshing the ApplicationC= ontext... >>>>> >>>>> >>>>> >>>>>Hi j=FCrgen, >>>>> >>>>>We were using refresh as we needed to defer the initialisation of th= e >>>>>String container the first time our app is run until the user has se= tup >>>>>their db settings, at which point we initialise the container. Afte= r >>>>>that, if/when the server is restarted we use your ContextLoaderListe= ner >>>>>is used to initialise the container. >>>>> >>>>>I think I've just realised what the problem is. We have 3 >>>>>applicationContexts and the bean causing the error is defined in a >>>>>different context. Is there a way to autowire over multiple context= s? >>>>> >>>>>If this is the case, the exception for this scenario is a bit mislea= ding >>>>>as it tells me there is more than one satifiable dependency. >>>>> >>>>>The exception we get is - >>>>>org.springframework.beans.FatalBeanException: Can't resolve referenc= e to >>>>>bean 'notifierCreatePage' while setting property 'listeners[0]' on b= ean >>>>>'producerCreatePage'; nested exception is: >>>>>org.springframework.beans.factory.UnsatisfiedDependencyException: Be= an >>>>>with name 'notifierCreatePage' has an unsatisfied dependency express= ed >>>>>through property 'emailTemplateManager': set this property value or >>>>>disable dependency checking for this bean; detail message =3D [There= are 2 >>>>>beans of type [interface >>>>>com.atlassian.confluence.mail.template.EmailTemplateManager] for >>>>>autowire by type. There should have been 1 to be able to autowire >>>>>property 'emailTemplateManager' of bean 'notifierCreatePage'.] >>>>>(This is very informative excetion BTW ;-)) >>>>> >>>>>Cheers, >>>>> >>>>>Ross >>>>> >>>>> >>>>>j=FCrgen h=F6ller [werk3AT] wrote: >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>Hi Ross, >>>>>> >>>>>>"refresh" is now in ConfigurableApplicationContext, but you shouldn= 't need that for typical usages anyway. I guess what you're trying to do = is custom initialization of the root WebApplicationContext, storing it in= a custom place via the setApplicationContext call. That should be fine: = I suppose that the error you're getting has other origins. Autowiring has= been significantly reworked; could you check for which components you ge= t more than one matching bean? The reason could be that you actually *hav= e* multiple matching beans, which just weren't found by M2's autowire imp= lementation, maybe due to being created by FactoryBeans. Could you quote = relevant parts of your configuration? >>>>>> >>>>>>Juergen >>>>>> >>>>>> >>>>>>________________________________ >>>>>> >>>>>>Von: spr...@li... im Auftr= ag von Ross Mason >>>>>>Gesendet: Mo 15.12.2003 07:50 >>>>>>An: spr...@li... >>>>>>Betreff: [Springframework-developer] Refreshing the ApplicationCont= ext... >>>>>> >>>>>> >>>>>> >>>>>>Hi, >>>>>> >>>>>>In the latest source the ApplicationContext.refresh() method has be= en >>>>>>removed. What is the recommended way of refreshing an >>>>>>applicationContext now. I'm trying - >>>>>> >>>>>> ContextLoader loader =3D new ContextLoader(); >>>>>> setApplicationContext( >>>>>>loader.initWebApplicationContext(servletContext) ); >>>>>> >>>>>>But I am getting an error saying that there is more than one matchi= ng >>>>>>bean on some components when autoWiring by type. Our code and cofi= g >>>>>>works fine with M2 release, but we're mored to the latest source to= make >>>>>>use of the OpenSessionInViewFilter. >>>>>> >>>>>>Any ideas? >>>>>> >>>>>> >>>>>>Cheers, >>>>>> >>>>>>Ross >>>>>> >>>>>> >>>>>> >>>>>>------------------------------------------------------- >>>>>>This SF.net email is sponsored by: IBM Linux Tutorials. >>>>>>Become an expert in LINUX or just sharpen your skills. Sign up for= IBM's >>>>>>Free Linux Tutorials. Learn everything from the bash shell to sys = admin. >>>>>>Click now! http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dc= lick >>>>>>_______________________________________________ >>>>>>Springframework-developer mailing list >>>>>>Spr...@li... >>>>>>https://lists.sourceforge.net/lists/listinfo/springframework-develo= per >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>------------------------------------------------------- >>>>>>This SF.net email is sponsored by: IBM Linux Tutorials. >>>>>>Become an expert in LINUX or just sharpen your skills. Sign up for= IBM's >>>>>>Free Linux Tutorials. Learn everything from the bash shell to sys = admin. >>>>>>Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=CCk >>>>>>_______________________________________________ >>>>>>Springframework-developer mailing list >>>>>>Spr...@li... >>>>>>https://lists.sourceforge.net/lists/listinfo/springframework-develo= per >>>>>> >>>>> >>>>> >>>>> >>>>> >>>>>------------------------------------------------------- >>>>>This SF.net email is sponsored by: IBM Linux Tutorials. >>>>>Become an expert in LINUX or just sharpen your skills. Sign up for = IBM's >>>>>Free Linux Tutorials. Learn everything from the bash shell to sys a= dmin. >>>>>Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick >>>>>_______________________________________________ >>>>>Springframework-developer mailing list >>>>>Spr...@li... >>>>>https://lists.sourceforge.net/lists/listinfo/springframework-develop= er >>>>> >>>>> >>>>> >>>>> >>>>>------------------------------------------------------- >>>>>This SF.net email is sponsored by: IBM Linux Tutorials. >>>>>Become an expert in LINUX or just sharpen your skills. Sign up for = IBM's >>>>>Free Linux Tutorials. Learn everything from the bash shell to sys a= dmin. >>>>>Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=CCk >>>>>_______________________________________________ >>>>>Springframework-developer mailing list >>>>>Spr...@li... >>>>>https://lists.sourceforge.net/lists/listinfo/springframework-develop= er >>>>> >>>> >>>> >>>> >>>> >>>>------------------------------------------------------- >>>>This SF.net email is sponsored by: IBM Linux Tutorials. >>>>Become an expert in LINUX or just sharpen your skills. Sign up for I= BM's >>>>Free Linux Tutorials. Learn everything from the bash shell to sys ad= min. >>>>Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick >>>>_______________________________________________ >>>>Springframework-developer mailing list >>>>Spr...@li... >>>>https://lists.sourceforge.net/lists/listinfo/springframework-develope= r >>>> >>>> >>>> >>>> >>>>------------------------------------------------------- >>>>This SF.net email is sponsored by: IBM Linux Tutorials. >>>>Become an expert in LINUX or just sharpen your skills. Sign up for I= BM's >>>>Free Linux Tutorials. Learn everything from the bash shell to sys ad= min. >>>>Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=CCk >>>>_______________________________________________ >>>>Springframework-developer mailing list >>>>Spr...@li... >>>>https://lists.sourceforge.net/lists/listinfo/springframework-develope= r >>>> >>> >>> >>> >>> >>>------------------------------------------------------- >>>This SF.net email is sponsored by: IBM Linux Tutorials. >>>Become an expert in LINUX or just sharpen your skills. Sign up for IB= M's >>>Free Linux Tutorials. Learn everything from the bash shell to sys adm= in. >>>Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick >>>_______________________________________________ >>>Springframework-developer mailing list >>>Spr...@li... >>>https://lists.sourceforge.net/lists/listinfo/springframework-developer >>> >>> >>>------------------------------------------------------- >>>This SF.net email is sponsored by: IBM Linux Tutorials. >>>Become an expert in LINUX or just sharpen your skills. Sign up for IB= M's >>>Free Linux Tutorials. Learn everything from the bash shell to sys adm= in. >>>Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=CCk >>>_______________________________________________ >>>Springframework-developer mailing list >>>Spr...@li... >>>https://lists.sourceforge.net/lists/listinfo/springframework-developer >>> >> >> >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: IBM Linux Tutorials. >>Become an expert in LINUX or just sharpen your skills. Sign up for IBM= 's >>Free Linux Tutorials. Learn everything from the bash shell to sys admi= n. >>Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick >>_______________________________________________ >>Springframework-developer mailing list >>Spr...@li... >>https://lists.sourceforge.net/lists/listinfo/springframework-developer >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: IBM Linux Tutorials. >>Become an expert in LINUX or just sharpen your skills. Sign up for IBM= 's >>Free Linux Tutorials. Learn everything from the bash shell to sys admi= n. >>Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=CCk >>_______________________________________________ >>Springframework-developer mailing list >>Spr...@li... >>https://lists.sourceforge.net/lists/listinfo/springframework-developer >> >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM= 's > Free Linux Tutorials. Learn everything from the bash shell to sys admi= n. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer >=20 >=20 > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM= 's > Free Linux Tutorials. Learn everything from the bash shell to sys admi= n. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=CCk > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer >=20 |
|
From: Mike Cannon-B. <mi...@at...> - 2003-12-22 22:22:18
|
Yah, you can't really use GPL or LGPL code with Java - it would need to be under a BSD compatible license to be usable with Spring in any distributed applications. Cheers, Mike On 23/12/03 3:58 AM, "Ivan Ristic" (iv...@we...) penned the words: > Mark Imbriaco wrote: > >> Ivan Ristic <> scribbled on Monday, December 22, 2003 9:03 AM: >> >>> I don't want to label it full 1.0 before I (or someone else) actually >>> use it in a project. Ignore the licence, I always use GPL by default. >> >> I don't believe the ASL, which Spring is licensed under, can include GPLed >> code without violating the GPL. The LGPL would probably be ok, since it >> explicitly allows linking. >> >> I could be wrong, but that's my understanding of the situation. Someone >> please correct me if I'm missing something. > > I don't think that ASL is compatible with GPL (or LGPL) either. But > I had to put some kind of licence on the code and I normally use > GPL. > > If the scheduler makes it into Spring the licence will be ASL. |
|
From: Mark P. <Mar...@Co...> - 2003-12-22 21:15:41
|
Hi, Sounds ok, I've had precious little time to devote to the attribute stuff. Is a side file implementation needed or is attributes-commons fitting the bill now? - Mark > We should keep it for reference. I did mean to make it abstract and > comment > out the contents today so it compiled, but didn't get around to it. > > ----- Original Message ----- > From: "Kopylenko, Dmitry" <dko...@su...> > To: <spr...@li...> > Sent: Monday, December 22, 2003 7:10 PM > Subject: [Springframework-developer] BcelAttributes > > >> Mark, everyone, >> >> the BcelAttributes and BcelAttributeWriter classes in the sandbox tree > won't >> compile because bcel.jar is gone from the lib tree. Should we keep it > around >> or should we get rid of it? >> >> Regards, >> Dmitriy. >> > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > |
|
From: Colin S. <col...@ex...> - 2003-12-22 20:55:39
|
Colin Sampaleanu wrote: > Ivan Ristic wrote: > >> Kopylenko, Dmitry wrote: >> >>> Ivan, just FYI, in the pdf doc for the scheduler it says Hibernate >>> 1.0m1 3 >> >> >> >> Thanks, I missed that. The name is probably embedded somewhere >> in the stylesheet, and I haven't looked at it yet. >> >> Speaking of documentation, is anyone aware of a good visual tool >> for producing DocBook documentation? Altova's Authentic >> (http://www.altova.com/products_doc.html) is pretty >> good (and also free) but it does not support pre-formatted areas >> at the moment (I reported the bug). I've tried half of dozen of other >> XML editors but none seem to give you a real advantage over >> a plain old text editor. >> >> My other bet is OpenOffice, but its XSL stylesheet also needs to be >> tweaked to support preformatted areas. I haven't gotten around >> to doing that yet. >> > I just came across a referece to the XMLmind XML Editor, which > supports editing of DocBook format docs in the free version, as long > as you use the docbook dtd definition, not the schema def... Sorry, left out the URL: http://www.xmlmind.com/xmleditor/ |
|
From: Colin S. <col...@ex...> - 2003-12-22 20:50:23
|
Ivan Ristic wrote: > Kopylenko, Dmitry wrote: > >> Ivan, just FYI, in the pdf doc for the scheduler it says Hibernate >> 1.0m1 3 > > > Thanks, I missed that. The name is probably embedded somewhere > in the stylesheet, and I haven't looked at it yet. > > Speaking of documentation, is anyone aware of a good visual tool > for producing DocBook documentation? Altova's Authentic > (http://www.altova.com/products_doc.html) is pretty > good (and also free) but it does not support pre-formatted areas > at the moment (I reported the bug). I've tried half of dozen of other > XML editors but none seem to give you a real advantage over > a plain old text editor. > > My other bet is OpenOffice, but its XSL stylesheet also needs to be > tweaked to support preformatted areas. I haven't gotten around > to doing that yet. > I just came across a referece to the XMLmind XML Editor, which supports editing of DocBook format docs in the free version, as long as you use the docbook dtd definition, not the schema def... |
|
From: Rod J. <rod...@in...> - 2003-12-22 19:45:54
|
We should keep it for reference. I did mean to make it abstract and comment out the contents today so it compiled, but didn't get around to it. ----- Original Message ----- From: "Kopylenko, Dmitry" <dko...@su...> To: <spr...@li...> Sent: Monday, December 22, 2003 7:10 PM Subject: [Springframework-developer] BcelAttributes > Mark, everyone, > > the BcelAttributes and BcelAttributeWriter classes in the sandbox tree won't > compile because bcel.jar is gone from the lib tree. Should we keep it around > or should we get rid of it? > > Regards, > Dmitriy. > |
|
From: Kopylenko, D. <dko...@ac...> - 2003-12-22 19:42:00
|
Alef, what are you using for DocBook ? Dmitriy. -----Original Message----- From: Ivan Ristic [mailto:iv...@we...] Sent: Monday, December 22, 2003 2:02 PM To: spr...@li... Subject: Re: [Springframework-developer] Scheduler update #3 Kopylenko, Dmitry wrote: > Ivan, just FYI, in the pdf doc for the scheduler it says Hibernate > 1.0m1 3 Thanks, I missed that. The name is probably embedded somewhere in the stylesheet, and I haven't looked at it yet. Speaking of documentation, is anyone aware of a good visual tool for producing DocBook documentation? Altova's Authentic (http://www.altova.com/products_doc.html) is pretty good (and also free) but it does not support pre-formatted areas at the moment (I reported the bug). I've tried half of dozen of other XML editors but none seem to give you a real advantage over a plain old text editor. My other bet is OpenOffice, but its XSL stylesheet also needs to be tweaked to support preformatted areas. I haven't gotten around to doing that yet. -- ModSecurity (http://www.modsecurity.org) [ Open source IDS for Web applications ] ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |
|
From: Ivan R. <iv...@we...> - 2003-12-22 19:13:23
|
Kopylenko, Dmitry wrote: > Ivan, just FYI, in the pdf doc for the scheduler it says Hibernate 1.0m1 3 Thanks, I missed that. The name is probably embedded somewhere in the stylesheet, and I haven't looked at it yet. Speaking of documentation, is anyone aware of a good visual tool for producing DocBook documentation? Altova's Authentic (http://www.altova.com/products_doc.html) is pretty good (and also free) but it does not support pre-formatted areas at the moment (I reported the bug). I've tried half of dozen of other XML editors but none seem to give you a real advantage over a plain old text editor. My other bet is OpenOffice, but its XSL stylesheet also needs to be tweaked to support preformatted areas. I haven't gotten around to doing that yet. -- ModSecurity (http://www.modsecurity.org) [ Open source IDS for Web applications ] |
|
From: Kopylenko, D. <dko...@ac...> - 2003-12-22 19:12:28
|
Mark, everyone, the BcelAttributes and BcelAttributeWriter classes in the sandbox tree won't compile because bcel.jar is gone from the lib tree. Should we keep it around or should we get rid of it? Regards, Dmitriy. |
|
From: Kopylenko, D. <dko...@ac...> - 2003-12-22 18:42:34
|
Ivan, just FYI, in the pdf doc for the scheduler it says Hibernate 1.0m1 3 Regards, Dmitriy. -----Original Message----- From: Ivan Ristic [mailto:iv...@we...] Sent: Monday, December 22, 2003 11:58 AM To: spr...@li... Subject: Re: [Springframework-developer] Scheduler update #3 Mark Imbriaco wrote: > Ivan Ristic <> scribbled on Monday, December 22, 2003 9:03 AM: > >>I don't want to label it full 1.0 before I (or someone else) actually >>use it in a project. Ignore the licence, I always use GPL by default. > > I don't believe the ASL, which Spring is licensed under, can include > GPLed code without violating the GPL. The LGPL would probably be ok, > since it explicitly allows linking. > > I could be wrong, but that's my understanding of the situation. > Someone please correct me if I'm missing something. I don't think that ASL is compatible with GPL (or LGPL) either. But I had to put some kind of licence on the code and I normally use GPL. If the scheduler makes it into Spring the licence will be ASL. -- ModSecurity (http://www.modsecurity.org) [ Open source IDS for Web applications ] ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |
|
From: Michael Y. <sp...@on...> - 2003-12-22 18:33:27
|
Hi gurus, I have some questions on JdbcTemplate and JdbcDaoSupport classes. In JdbcTemplate's afterPropertiesSet() method, the exception translator was eagerly created, which causes problems for me when I try to dynamically use datasources to connect to different databases. I have a wrapper class for datasources, which doesn't know which database to connect to when the beans are set up first. So this afterPropertiesSet() in JdbcTemplate doesn't work in this case. Maybe we can remove the eager creation of exception translator? I do have a work around, which is create a new class that extends from JdbcTemplate and overwrite the afterPropertiesSet() method. The next question on JdbcDaoSupport doesn't have as nice a workaround as the above one. In JdbcDaoSupport, many methods are final, which prevents me from overwriting them. This is kind of inflexible though. I can understand we may want to have final methods, but we can probably never anticipate all the cases where the classes may be used. So is it possible to remove "final" from some of the methods? My workdaround is duplicate JdbcDaoSupport into my own class, which is not as nice as extending it and overwrite some behavior. Spring is pretty flexible, so we should probably maintain this flexibility. Thanks! /Michael. |
|
From: Michael Y. <sp...@on...> - 2003-12-22 18:19:06
|
That's a nice idea. I guess this will be in m4 build in the next
few days?
Regarding why I would like to have some specific context associated
with Axis servlet, I guess my idea was more along the line of the
way that Spring allows us to have different DispatcherServlet's
with different context associations. I think it'll be more flexible.
However, I still think the following idea is possible:
Get rid of Axis servlet, and integrate Axis (or other WS providers)
more tightly into Spring so that we can have Web Services controllers
that invoke Axis etc.
Does it make sense for other people?
Thanks! --Pinghua
On Friday, Dec-19-2003 04:14 AM (PST) jue...@we... (j=FCrgen=
h=F6ller [werk3AT]) wrote:
> This is very similar to what I use and recommend: keeping the business ob=
jects that your Web Services access in the root application context, if app=
ropriate in a separate definition file.
> =20
> In contrast to the Axis-specific MessageContext, you can also use the JAX=
-RPC ServiceLifecycle interface: The passed in context object will be of ty=
pe ServletEndpointContext, allowing access to the ServletContext and thus t=
o the root WebApplicationContext. This is exactly what Spring's new Servlet=
EndpointSupport convenience base class is for: It pre-implements that looku=
p.
> =20
> Implementing an Axis handler to keep your Web Service implementations ind=
ependent from the Servlet API is not a bad idea. But of course, you depend =
on Axis then, which might be even less desirable. By implementing javax.rpc=
.server.ServiceLifecycle or deriving from ServletEndpointSupport, you can d=
eploy your Web Services to any JAX-RPC compliant solution as a JAX-RPC "Ser=
vlet endpoint".
> =20
> Juergen
> =20
>=20
> ________________________________
>=20
> Von: spr...@li... im Auftrag von=
Alastair Rodgers
> Gesendet: Fr 19.12.2003 12:48
> An: spr...@li...
> Betreff: RE: [Springframework-developer] Spring and axis
>=20
>=20
>=20
> Regarding wanting to have an axis servlet specific Spring application con=
text, I recently had the same problem. Here's how I got round it.
>=20
> In your web.xml, declare the Spring config(s) you want to be available to=
your web app in a context param and also declare a Spring ContextLoaderLis=
tener. This will initialise the Spring context and store it in your servlet=
context. For example:
>=20
> <context-param>
> <param-name>contextConfigLocation</param-name>
> <param-value>/WEB-INF/applicationContext-core.xml,/WEB-INF/applicatio=
nContext-web.xml</param-value>
> </context-param>
>=20
> <listener>
> <listener-class>org.springframework.web.context.ContextLoaderListener=
</listener-class>
> </listener>
>=20
> Now your POJOs which you expose as Axis web services need to be able to g=
et access to the servlet context so they can get at the Spring context. You=
can do this using the Axis MessageContext. In your POJO you would do somet=
hing like:
>=20
> import org.apache.axis.MessageContext;
> import org.apache.axis.transport.http.HTTPConstants;
> import org.springframework.context.ApplicationContext;
> import org.springframework.web.context.support.WebApplicationContextUtils=
;
> ...
> HttpServlet servlet =3D (HttpServlet)MessageContext.getCurrentContext().g=
etProperty(HTTPConstants.MC_HTTP_SERVLET);
>=20
> ApplicationContext springContext =3D WebApplicationContextUtils.getWebApp=
licationContext(servlet.getServletContext());
>=20
>=20
> This is the simplest approach, and is OK provided your web services are o=
nly ever accessed by HTTP. However, I don't like the fact this exposes the =
servlet API to your web service object. So to remove this dependency, I cre=
ated an Axis Handler (HTTPSpringContextHandler extends org.apache.axis.hand=
lers.BasicHandler) which I attach to the HTTP request flow. This handler's =
invoke() method is along the lines of:
>=20
> public final void invoke(MessageContext oContext) throws AxisFault
> {
> if (oContext.isClient()) {
> throw new AxisFault("Cannot use server-only handler in a client con=
text");
> }
>=20
> /* This handler only deals with SOAP requests, not responses */
> if (!context.getPastPivot()) {
>=20
> HttpServlet servlet =3D (HttpServlet)context.getProperty(HTTPConsta=
nts.MC_HTTP_SERVLET);
>=20
> if (servlet !=3D null) {
> // Get the Spring context from web app context and add it to the =
Axis message context
> ApplicationContext springContext =3D WebApplicationContextUtils.g=
etWebApplicationContext(servlet.getServletContext());
> context.setProperty("MySpringContextProperty", springContext);
> }
> }
> }
>=20
> Add this to the HTTP request flow in your Axis WSDD file:
>=20
> <transport name=3D"http">
> <requestFlow>
> ...
> <handler type=3D"java:com.blah.HTTPSpringContextHandler"/>
> ...
> </requestFlow>
> </transport>
>=20
> Then in your web service POJO you can retrieve the Spring context from th=
e Axis MessageContext:
>=20
> MessageContext msgContext =3D MessageContext.getCurrentContext();
> ApplicationContext springContext =3D (ApplicationContext)msgContext.g=
etProperty("MySpringContextProperty");
>=20
>=20
> Also, my web service POJOs are just thin wrappers around Spring beans whi=
ch implement all the functionality, so really the POJOs just become 'adapto=
rs' for Axis.
>=20
> Hope this helps.
>=20
> Regards,
> Al.
>=20
>=20
>=20
> > -----Original Message-----
> > From: spr...@li...
> > [mailto:spr...@li...]
> > On Behalf Of Michael Young
> > Sent: 18 December 2003 21:27
> > To: Spr...@li...;
> > Spr...@li...
> > Subject: [Springframework-developer] Spring and axis
> >
> >
> > I wonder if anyone has integrated axis into Spring Framework,
> > or if the gurus can shed some lights on this?
> >
> > We are building a web application with some UI components,
> > but most of the interfaces are Web Services. We are using
> > Spring and Axis. The problem is Axis needs its own servlet so
> > that it knows which web services classes to call when a web
> > services request comes in.
> >
> > So for the axis servlet (and my web services classes that get
> > called it), I can only get hold of the application wide
> > application context from Spring framework. I can't seem to
> > have an axis servlet specific Spring application context.
> >
> > It seems one should be able to use Spring to handle web
> > services requests as well. Spring can just delegate the
> > requests to some controllers, and the controllers will invoke Axis?
> >
> > Any thoughts? Thanks! /Michael.
> >
>=20
>=20
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
> Free Linux Tutorials. Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dick
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
>=20
>=20
>=20
>=20
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
> Free Linux Tutorials. Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id371&op=3Dclick
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
|
|
From: Michael Y. <sp...@on...> - 2003-12-22 18:18:31
|
Al, this is very good. Thanks! I used the same trick of using
the Axis's static get property method of MessageContext to get hold
of the (Spring) web application context, but I was hoping for more
tighter integration of Axis (or others) into Spring.
/Michael.
On Friday, Dec-19-2003 03:48 AM (PST) ala...@ph... (Alastair Rodgers) wrote:
> Regarding wanting to have an axis servlet specific Spring application context, I recently had the same problem. Here's how I got round it.
>
> In your web.xml, declare the Spring config(s) you want to be available to your web app in a context param and also declare a Spring ContextLoaderListener. This will initialise the Spring context and store it in your servlet context. For example:
>
> <context-param>
> <param-name>contextConfigLocation</param-name>
> <param-value>/WEB-INF/applicationContext-core.xml,/WEB-INF/applicationContext-web.xml</param-value>
> </context-param>
>
> <listener>
> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
> </listener>
>
> Now your POJOs which you expose as Axis web services need to be able to get access to the servlet context so they can get at the Spring context. You can do this using the Axis MessageContext. In your POJO you would do something like:
>
> import org.apache.axis.MessageContext;
> import org.apache.axis.transport.http.HTTPConstants;
> import org.springframework.context.ApplicationContext;
> import org.springframework.web.context.support.WebApplicationContextUtils;
> ...
> HttpServlet servlet = (HttpServlet)MessageContext.getCurrentContext().getProperty(HTTPConstants.MC_HTTP_SERVLET);
>
> ApplicationContext springContext = WebApplicationContextUtils.getWebApplicationContext(servlet.getServletContext());
>
>
> This is the simplest approach, and is OK provided your web services are only ever accessed by HTTP. However, I don't like the fact this exposes the servlet API to your web service object. So to remove this dependency, I created an Axis Handler (HTTPSpringContextHandler extends org.apache.axis.handlers.BasicHandler) which I attach to the HTTP request flow. This handler's invoke() method is along the lines of:
>
> public final void invoke(MessageContext oContext) throws AxisFault
> {
> if (oContext.isClient()) {
> throw new AxisFault("Cannot use server-only handler in a client context");
> }
>
> /* This handler only deals with SOAP requests, not responses */
> if (!context.getPastPivot()) {
>
> HttpServlet servlet = (HttpServlet)context.getProperty(HTTPConstants.MC_HTTP_SERVLET);
>
> if (servlet != null) {
> // Get the Spring context from web app context and add it to the Axis message context
> ApplicationContext springContext = WebApplicationContextUtils.getWebApplicationContext(servlet.getServletContext());
> context.setProperty("MySpringContextProperty", springContext);
> }
> }
> }
>
> Add this to the HTTP request flow in your Axis WSDD file:
>
> <transport name="http">
> <requestFlow>
> ...
> <handler type="java:com.blah.HTTPSpringContextHandler"/>
> ...
> </requestFlow>
> </transport>
>
> Then in your web service POJO you can retrieve the Spring context from the Axis MessageContext:
>
> MessageContext msgContext = MessageContext.getCurrentContext();
> ApplicationContext springContext = (ApplicationContext)msgContext.getProperty("MySpringContextProperty");
>
>
> Also, my web service POJOs are just thin wrappers around Spring beans which implement all the functionality, so really the POJOs just become 'adaptors' for Axis.
>
> Hope this helps.
>
> Regards,
> Al.
>
>
>
> > -----Original Message-----
> > From: spr...@li...
> > [mailto:spr...@li...]
> > On Behalf Of Michael Young
> > Sent: 18 December 2003 21:27
> > To: Spr...@li...;
> > Spr...@li...
> > Subject: [Springframework-developer] Spring and axis
> >
> >
> > I wonder if anyone has integrated axis into Spring Framework,
> > or if the gurus can shed some lights on this?
> >
> > We are building a web application with some UI components,
> > but most of the interfaces are Web Services. We are using
> > Spring and Axis. The problem is Axis needs its own servlet so
> > that it knows which web services classes to call when a web
> > services request comes in.
> >
> > So for the axis servlet (and my web services classes that get
> > called it), I can only get hold of the application wide
> > application context from Spring framework. I can't seem to
> > have an axis servlet specific Spring application context.
> >
> > It seems one should be able to use Spring to handle web
> > services requests as well. Spring can just delegate the
> > requests to some controllers, and the controllers will invoke Axis?
> >
> > Any thoughts? Thanks! /Michael.
> >
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
> Free Linux Tutorials. Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
|
|
From: Michael Y. <sp...@on...> - 2003-12-22 18:01:44
|
Thanks Rob! I'll give it a shot. /Michael. On Friday, Dec-19-2003 18:52 PM (PST) rob...@ur... (Rob Rudin) wrote: > Hi Michael - I've pasted the example configuration below. That's one of the > nice things of the Glue-Spring integration - there's no coding involved. > When we did this (back in spring of 2003), we were able to expose > Spring-configured objects as web services with no coding, just a little > configuration. Only thing we had to do was create a class with a static > method "getBean" that provides access to the BeanFactory (or > ApplicationContext) that you're using, similar to the BeanFactoryBootstrap > in org.springframework.beans.factory.support. We actually already had a > class like this, since we earlier had a need to have a singleton that makes > the ApplicationContext available (we weren't using Spring's MVC, so we > didn't have access to something like WebApplicationContext). > > So assuming you have a class called something like "BeanFactoryAccessor" and > a static method called "getBean" on it, which would just access the > BeanFactory and call getBean on that, and assuming you have an object in > Spring called "MyService" that you want Glue to publish as a web service, > the configuration in the Glue services file is just: > > <service> > <factory> > <class>com.foo.BeanFactoryAccessor</class> > <method>getBean</method> > <args> > <arg>MyService</arg> > </args> > </factory> > ... other Glue configuration attributes... > </service> > > And that's all there is to it. It's really nice because you don't have to > use any Glue or Spring API's in the object that you want to publish. Check > out the Glue docs to learn about the services config file. You pretty much > just drop it into your webapp under WEB-INF, and when you start it up, Glue > will publish the web service and then load objects via Spring to handle web > service requests. > > Hope that helps! > > Rob > > ----- Original Message ----- > From: "Michael Young" <sp...@on...> > To: <spr...@li...> > Sent: Thursday, December 18, 2003 11:18 PM > Subject: Re: [Springframework-developer] Spring and axis > > > > Rob, > > > > Thank you for your reply. Yes I can try Glue. Can you send me > > some sample code? > > > > Thanks! /Michael. > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IBM Linux Tutorials. > Become an expert in LINUX or just sharpen your skills. Sign up for IBM's > Free Linux Tutorials. Learn everything from the bash shell to sys admin. > Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer |
|
From: Ivan R. <iv...@we...> - 2003-12-22 17:02:52
|
Mark Imbriaco wrote: > Ivan Ristic <> scribbled on Monday, December 22, 2003 9:03 AM: > >>I don't want to label it full 1.0 before I (or someone else) actually >>use it in a project. Ignore the licence, I always use GPL by default. > > I don't believe the ASL, which Spring is licensed under, can include GPLed > code without violating the GPL. The LGPL would probably be ok, since it > explicitly allows linking. > > I could be wrong, but that's my understanding of the situation. Someone > please correct me if I'm missing something. I don't think that ASL is compatible with GPL (or LGPL) either. But I had to put some kind of licence on the code and I normally use GPL. If the scheduler makes it into Spring the licence will be ASL. -- ModSecurity (http://www.modsecurity.org) [ Open source IDS for Web applications ] |
|
From: Mark I. <mar...@po...> - 2003-12-22 16:16:37
|
Ivan Ristic <> scribbled on Monday, December 22, 2003 9:03 AM: > I don't want to label it full 1.0 before I (or someone else) actually > use it in a project. Ignore the licence, I always use GPL by default. I don't believe the ASL, which Spring is licensed under, can include GPLed code without violating the GPL. The LGPL would probably be ok, since it explicitly allows linking. I could be wrong, but that's my understanding of the situation. Someone please correct me if I'm missing something. -Mark |
|
From: Ivan R. <iv...@we...> - 2003-12-22 14:02:49
|
I've managed to spend some more time working the scheduler, and now I'm mostly satisfied with it. Since the last time I added the JUnit tests (with 83% coverage measured with Clover), made changes as was suggested (most importantly added the name field), and packaged the library as a proper project (using the Hibernate documentation generation method). You can download it from here: http://www.webkreator.com/download/chronos-1.0m1.zip I don't want to label it full 1.0 before I (or someone else) actually use it in a project. Ignore the licence, I always use GPL by default. Trevor, do you think you could look at it and see if the interfaces are clean enough to be used with Quartz? -- ModSecurity (http://www.modsecurity.org) [ Open source IDS for Web applications ] |