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: WangW <wa...@ne...> - 2003-12-22 01:41:07
|
i am the same which is from China. fine! :) Congratulation! -----=D3=CA=BC=FE=D4=AD=BC=FE----- =B7=A2=BC=FE=C8=CB: = spr...@li... [mailto:spr...@li...] = =B4=FA=B1=ED yanger =B7=A2=CB=CD=CA=B1=BC=E4: 2003=C4=EA12=D4=C220=C8=D5 17:36 =CA=D5=BC=FE=C8=CB: spr...@li... =D6=F7=CC=E2: [Springframework-developer] Spring reference in Chinese We completed Spring reference in Chinese .Alef, It's definitely going to = be very helpful for Chinese users . =3D=3D=3D=3D=3D Give my best to you! __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around = http://mail. yahoo.com=20 |
|
From: Alef A. <al...@jt...> - 2003-12-21 18:46:48
|
That's one yeah... There's also a 'buildafterbuildfailed' flag on the project element, which you can set to true or false. If false, if a build fails, it'll wait with a new build until somebody commits, if true, it keeps trying to build... If your build is deterministic (which it should be of course), buildafterbuildfailed can be set to false... About the emails, if you're using the htmlemail in the publishers element, it'll indeed be quite big, but there's also another emailer, which just generates a link to the results page (if you have set that up also)... Alef P.s. if there's any issues or questions with CC you have, just email me, I've been using it for quite a while so know my way around it pretty well... > -----Original Message----- > From: spr...@li... > [mailto:spr...@li...] > On Behalf Of Luke Taylor > Sent: Sunday, December 21, 2003 6:46 PM > To: spr...@li... > 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: Luke T. <ne...@fr...> - 2003-12-21 17:45:33
|
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 |
|
From: Alef A. <al...@jt...> - 2003-12-21 15:13:44
|
> 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 |
|
From: Luke T. <ne...@fr...> - 2003-12-21 12:22:16
|
Hi all, I've set up cruise control to run Maven so it should be running on a regular basis and the reports should be up to date. I've also got rid of the test errors by including xerces and some other jars in the project. As before, the site's here: http://monkeymachine.co.uk/spring/maven-reports.html Just need to look at the logo/stylesheets now. Shall I set up a mail to the dev list for failed builds? Luke. -- Luke Taylor. Monkey Machine Ltd. PGP Key ID: 0x57E9523C http://www.monkeymachine.ltd.uk |
|
From: Mark M. <mar...@co...> - 2003-12-20 16:22:28
|
Paul Hammant mentions Spring Framework in his "Inversion of Control Rocks" article that appears in the Dec 03 Java Developers Journal. He mentions the three IoC types with corresponding framework examples: Type 1: Avalon, JContainer Type 2: Spring Framework, WebWork2, HiveMind Type 3: PicoContainer Also available online: http://www.sys-con.com/story/?storyid=38102 Mark |
|
From: <yan...@ya...> - 2003-12-20 09:36:24
|
We completed Spring reference in Chinese .Alef, It's definitely going to be very helpful for Chinese users . ===== Give my best to you! __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
|
From: Rob R. <rob...@ur...> - 2003-12-20 02:52:31
|
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.
>
|
|
From: <jue...@we...> - 2003-12-19 17:47:29
|
FYI, we've migrated our AOP framework to CGLIB2 today, also shipping = Hibernate 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 potential for Hibernate 2.1/CGLIB2 issues anymore! Finally, congratulations on your beta, of course! Juergen -----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... Hi J=FCrgen, 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 ;-) Have a good weekend, Ross j=FCrgen h=F6ller [werk3AT] wrote: > Ross, >=20 > I've just re-tested Petclinic from our current CVS HEAD against a = dropped-in Hibernate 2.1 final (plus cglib2, minus cglib-asm), with and = without OpenSessionInViewFilter. Works nicely for me - no VerifyErrors. = Could you please re-try and re-report if there are still issues? >=20 > 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 = interfaces (the default). Simply remove cglib-asm from the class path, = drop in hibernate2, cglib2, eh-cache - and you should be done. >=20 > Juergen >=20 >=20 > -----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... >=20 >=20 > Hi j=FCrgen, >=20 > Sounds interesting, anything without EJB is always a bonus in my book = -=20 > excuse the pun ;-) >=20 > We've actually decided to wait for the M4 release before migrating. = The=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 = Spring=20 > HEAD due to an incompatability with the two jars. >=20 > 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. >=20 > Cheers, >=20 > Ross >=20 > j=FCrgen h=F6ller [werk3AT] wrote: >=20 >=20 >>It's "J2EE Development Without EJB", co-authored by Rod and me, the = follow-up to Rod's "J2EE Design and Development". Editing deadline is = mid January, so you can guess that we're quite busy! >> >>Of course, the book uses Spring for all examples - but it is an = architecture book, not a Spring tutorial. A dedicated Spring book will = follow later next year :-) >> >>BTW, does the OpenSessionInViewFilter work for you? If there are any = issues with it, please tell me before the M4 release... >> >>Finally, is there some documentation on the "external-ref" mechanism = that 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 syntax right. >> >>Juergen >> >> >>-----Original Message----- >>From: spr...@li... >>[mailto:spr...@li...]On = Behalf >>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 = the morning now). Yes, that's a known limitation: If you proxy an = object, both the proxy and the target object will match the type. You = need to resort 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 = ApplicationContext... >>> >>> >>> >>>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.TransactionProxyFactoryBea= n). >>>- 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 = automatically scan all the bean definitions in those files. In your = case, I assume that you do have multiple definitions of type = EmailTemplateManager, possibly in two different context files. You could = check that programmatically by examining the result of = ApplicationContext.getBeansOfType(EmailTemplateManager.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 = property "emailTemplateManager" of bean "notifierCreatePage" to a = specific bean of type EmailTemplateManager: >>>> >>>><bean id=3D"notifierCreatePage" class=3D"..." autowire=3D"byType"> >>>><property name=3D"emailTemplateManager"><ref = bean=3D"myEmailTemplateManager"/></property> >>>>... >>>></bean> >>>> >>>>Juergen >>>> >>>> >>>>________________________________ >>>> >>>>Von: spr...@li... im = Auftrag von Ross Mason >>>>Gesendet: Di 16.12.2003 01:00 >>>>An: spr...@li... >>>>Betreff: Re: [Springframework-developer] Refreshing the = ApplicationContext... >>>> >>>> >>>> >>>>Hi j=FCrgen, >>>> >>>>We were using refresh as we needed to defer the initialisation of = the >>>>String container the first time our app is run until the user has = setup >>>>their db settings, at which point we initialise the container. = After >>>>that, if/when the server is restarted we use your = ContextLoaderListener >>>>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 = contexts? >>>> >>>>If this is the case, the exception for this scenario is a bit = misleading >>>>as it tells me there is more than one satifiable dependency. >>>> >>>>The exception we get is - >>>>org.springframework.beans.FatalBeanException: Can't resolve = reference to >>>>bean 'notifierCreatePage' while setting property 'listeners[0]' on = bean >>>>'producerCreatePage'; nested exception is: >>>>org.springframework.beans.factory.UnsatisfiedDependencyException: = Bean >>>>with name 'notifierCreatePage' has an unsatisfied dependency = expressed >>>>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 get more than one matching bean? The reason could = be that you actually *have* multiple matching beans, which just weren't = found by M2's autowire implementation, maybe due to being created by = FactoryBeans. Could you quote relevant parts of your configuration? >>>>> >>>>>Juergen >>>>> >>>>> >>>>>________________________________ >>>>> >>>>>Von: spr...@li... im = Auftrag von Ross Mason >>>>>Gesendet: Mo 15.12.2003 07:50 >>>>>An: spr...@li... >>>>>Betreff: [Springframework-developer] Refreshing the = ApplicationContext... >>>>> >>>>> >>>>> >>>>>Hi, >>>>> >>>>>In the latest source the ApplicationContext.refresh() method has = been >>>>>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 = matching >>>>>bean on some components when autoWiring by type. Our code and = cofig >>>>>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=3Dclick >>>>>_______________________________________________ >>>>>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 = 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-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 = 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-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 = 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-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 = 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= >>> >>> >>> >>> >>>------------------------------------------------------- >>>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-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_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 = 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-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=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 = 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-developer >=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 |
|
From: Colin S. <col...@ex...> - 2003-12-19 12:16:52
|
jürgen höller [werk3AT] wrote: >Ross, > >Never mind, I understand that a beta of Confluence has priority. It would be good to sort any issues out before Christmas though, so I would be happy to come back to this on Monday if possible. If there aren't any obstacles, I will release 1.0 M4 a couple of hours before Christmas... > >It is indeed tempting to use Confluence as Spring Wiki - what do others think? BTW, it's really good to see that such a major, publically visible product is based on Spring! Now you just need to base the next major release of JIRA on Spring, then I'm perfectly happy ;-) > > +1 |
|
From: <jue...@we...> - 2003-12-19 12:15:36
|
This is very similar to what I use and recommend: keeping the business =
objects that your Web Services access in the root application context, =
if appropriate 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 type ServletEndpointContext, allowing access to the ServletContext =
and thus to the root WebApplicationContext. This is exactly what =
Spring's new ServletEndpointSupport convenience base class is for: It =
pre-implements that lookup.
=20
Implementing an Axis handler to keep your Web Service implementations =
independent 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 deploy your Web Services to any JAX-RPC =
compliant solution as a JAX-RPC "Servlet endpoint".
=20
Juergen
=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
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/applicationCon=
text-web.xml</param-value>
</context-param>
<listener>
=
<listener-class>org.springframework.web.context.ContextLoaderListener</li=
stener-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 =3D =
(HttpServlet)MessageContext.getCurrentContext().getProperty(HTTPConstants=
.MC_HTTP_SERVLET);
ApplicationContext springContext =3D =
WebApplicationContextUtils.getWebApplicationContext(servlet.getServletCon=
text());
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 =3D =
(HttpServlet)context.getProperty(HTTPConstants.MC_HTTP_SERVLET);
if (servlet !=3D null) {
// Get the Spring context from web app context and add it to the =
Axis message context
ApplicationContext springContext =3D =
WebApplicationContextUtils.getWebApplicationContext(servlet.getServletCon=
text());
context.setProperty("MySpringContextProperty", springContext);
}
}
}
Add this to the HTTP request flow in your Axis WSDD file:
<transport name=3D"http">
<requestFlow>
...
<handler type=3D"java:com.blah.HTTPSpringContextHandler"/>
...
</requestFlow>
</transport>
Then in your web service POJO you can retrieve the Spring context from =
the Axis MessageContext:
MessageContext msgContext =3D MessageContext.getCurrentContext();
ApplicationContext springContext =3D =
(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_id=1278&alloc_id371&op=3Dick
_______________________________________________
Springframework-developer mailing list
Spr...@li...
https://lists.sourceforge.net/lists/listinfo/springframework-developer
|
|
From: Dmitriy K. <dko...@ru...> - 2003-12-19 11:59:08
|
Confluence looks good. Congratulation Atlassian! So, what architecture do you have for this one? WW2(MVC) + Spring(IoC) + Hibernate(O/R)? Do you use any features of SpringAOP module? Regards, Dmitriy. ----- Original Message ----- From: Rod Johnson <rod...@in...> Date: Friday, December 19, 2003 4:25 am Subject: Re: [Springframework-developer] Refreshing the ApplicationContext... > >It is indeed tempting to use Confluence as Spring Wiki - what do > othersthink? BTW, it's really good to see that such a major, > publically visible > product is based on Spring! Now you just need to base the next > major release > of JIRA on Spring, then I'm perfectly happy ;-) > > I think this is a great idea. And congratulations on getting your > beta out. > > Regards, > Rod > > > > > ------------------------------------------------------- > 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: Alastair R. <ala...@ph...> - 2003-12-19 11:48:43
|
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/applicationCon=
text-web.xml</param-value>
</context-param>
<listener>
=
<listener-class>org.springframework.web.context.ContextLoaderListener</li=
stener-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:=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().getProperty(HTTPConstants=
.MC_HTTP_SERVLET);
ApplicationContext springContext =3D =
WebApplicationContextUtils.getWebApplicationContext(servlet.getServletCon=
text());
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:=20
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 =3D =
(HttpServlet)context.getProperty(HTTPConstants.MC_HTTP_SERVLET);
if (servlet !=3D null) {
// Get the Spring context from web app context and add it to the =
Axis message context
ApplicationContext springContext =3D =
WebApplicationContextUtils.getWebApplicationContext(servlet.getServletCon=
text());
context.setProperty("MySpringContextProperty", springContext);
}
}
}
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>
Then in your web service POJO you can retrieve the Spring context from =
the Axis MessageContext:
MessageContext msgContext =3D MessageContext.getCurrentContext();
ApplicationContext springContext =3D =
(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.=20
Hope this helps.
Regards,=20
Al.
> -----Original Message-----
> From: spr...@li...=20
> [mailto:spr...@li...]
> On Behalf Of Michael Young
> Sent: 18 December 2003 21:27
> To: Spr...@li...;=20
> Spr...@li...
> Subject: [Springframework-developer] Spring and axis
>=20
>=20
> I wonder if anyone has integrated axis into Spring Framework,=20
> or if the gurus can shed some lights on this?
>=20
> We are building a web application with some UI components,=20
> but most of the interfaces are Web Services. We are using=20
> Spring and Axis. The problem is Axis needs its own servlet so=20
> that it knows which web services classes to call when a web=20
> services request comes in.
>=20
> So for the axis servlet (and my web services classes that get=20
> called it), I can only get hold of the application wide=20
> application context from Spring framework. I can't seem to=20
> have an axis servlet specific Spring application context.
>=20
> It seems one should be able to use Spring to handle web=20
> services requests as well. Spring can just delegate the=20
> requests to some controllers, and the controllers will invoke Axis?
>=20
> Any thoughts? Thanks! /Michael.
>=20
|
|
From: Rod J. <rod...@in...> - 2003-12-19 09:25:35
|
>It is indeed tempting to use Confluence as Spring Wiki - what do others think? BTW, it's really good to see that such a major, publically visible product is based on Spring! Now you just need to base the next major release of JIRA on Spring, then I'm perfectly happy ;-) I think this is a great idea. And congratulations on getting your beta out. Regards, Rod |
|
From: <jue...@we...> - 2003-12-19 08:47:23
|
Ross, =20 Never mind, I understand that a beta of Confluence has priority. It = would be good to sort any issues out before Christmas though, so I would = be happy to come back to this on Monday if possible. If there aren't any = obstacles, I will release 1.0 M4 a couple of hours before Christmas... =20 It is indeed tempting to use Confluence as Spring Wiki - what do others = think? BTW, it's really good to see that such a major, publically = visible product is based on Spring! Now you just need to base the next = major release of JIRA on Spring, then I'm perfectly happy ;-) =20 Have a good weekend too! =20 Juergen =20 ________________________________ Von: spr...@li... im Auftrag = von Ross Mason Gesendet: Fr 19.12.2003 09:23 An: spr...@li... Betreff: Re: [Springframework-developer] Refreshing the = ApplicationContext... Hi J=FCrgen, Just to let you know I didn't have time today to try out the OpenSessionInViewFilter, we've been busy doing a release of Confluence beta1. I'll try it out on Monday now. I remember last week there were some postings about removing/changing the Spring Wiki, so you might be interested in checking out http://confluence.atlassian.com. And of course it's using Spring ;-) Have a good weekend, Ross j=FCrgen h=F6ller [werk3AT] wrote: > Ross, > > I've just re-tested Petclinic from our current CVS HEAD against a = dropped-in Hibernate 2.1 final (plus cglib2, minus cglib-asm), with and = without OpenSessionInViewFilter. Works nicely for me - no VerifyErrors. = Could you 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 = interfaces (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 = - > excuse the pun ;-) > > We've actually decided to wait for the M4 release before migrating. = The > problem is that we're using a hibernate 2.1 jar built from HEAD and I > was getting VerifyErrors errors when running with the latest from = Spring > 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 > 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 = follow-up to Rod's "J2EE Design and Development". Editing deadline is = mid January, so you can guess that we're quite busy! >> >>Of course, the book uses Spring for all examples - but it is an = architecture book, not a Spring tutorial. A dedicated Spring book will = follow later next year :-) >> >>BTW, does the OpenSessionInViewFilter work for you? If there are any = issues with it, please tell me before the M4 release... >> >>Finally, is there some documentation on the "external-ref" mechanism = that 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 syntax right. >> >>Juergen >> >> >>-----Original Message----- >>From: spr...@li... >>[mailto:spr...@li...]On = Behalf >>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 = the morning now). Yes, that's a known limitation: If you proxy an = object, both the proxy and the target object will match the type. You = need to resort 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 = ApplicationContext... >>> >>> >>> >>>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.TransactionProxyFactoryBea= n). >>>- 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 = automatically scan all the bean definitions in those files. In your = case, I assume that you do have multiple definitions of type = EmailTemplateManager, possibly in two different context files. You could = check that programmatically by examining the result of = ApplicationContext.getBeansOfType(EmailTemplateManager.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 = property "emailTemplateManager" of bean "notifierCreatePage" to a = specific bean of type EmailTemplateManager: >>>> >>>><bean id=3D"notifierCreatePage" class=3D"..." autowire=3D"byType"> >>>><property name=3D"emailTemplateManager"><ref = bean=3D"myEmailTemplateManager"/></property> >>>>... >>>></bean> >>>> >>>>Juergen >>>> >>>> >>>>________________________________ >>>> >>>>Von: spr...@li... im = Auftrag von Ross Mason >>>>Gesendet: Di 16.12.2003 01:00 >>>>An: spr...@li... >>>>Betreff: Re: [Springframework-developer] Refreshing the = ApplicationContext... >>>> >>>> >>>> >>>>Hi j=FCrgen, >>>> >>>>We were using refresh as we needed to defer the initialisation of = the >>>>String container the first time our app is run until the user has = setup >>>>their db settings, at which point we initialise the container. = After >>>>that, if/when the server is restarted we use your = ContextLoaderListener >>>>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 = contexts? >>>> >>>>If this is the case, the exception for this scenario is a bit = misleading >>>>as it tells me there is more than one satifiable dependency. >>>> >>>>The exception we get is - >>>>org.springframework.beans.FatalBeanException: Can't resolve = reference to >>>>bean 'notifierCreatePage' while setting property 'listeners[0]' on = bean >>>>'producerCreatePage'; nested exception is: >>>>org.springframework.beans.factory.UnsatisfiedDependencyException: = Bean >>>>with name 'notifierCreatePage' has an unsatisfied dependency = expressed >>>>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 get more than one matching bean? The reason could = be that you actually *have* multiple matching beans, which just weren't = found by M2's autowire implementation, maybe due to being created by = FactoryBeans. Could you quote relevant parts of your configuration? >>>>> >>>>>Juergen >>>>> >>>>> >>>>>________________________________ >>>>> >>>>>Von: spr...@li... im = Auftrag von Ross Mason >>>>>Gesendet: Mo 15.12.2003 07:50 >>>>>An: spr...@li... >>>>>Betreff: [Springframework-developer] Refreshing the = ApplicationContext... >>>>> >>>>> >>>>> >>>>>Hi, >>>>> >>>>>In the latest source the ApplicationContext.refresh() method has = been >>>>>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 = matching >>>>>bean on some components when autoWiring by type. Our code and = cofig >>>>>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=3Dclick >>>>>_______________________________________________ >>>>>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 = 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-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 = 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-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 = 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-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 = 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= >>> >>> >>> >>> >>>------------------------------------------------------- >>>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-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_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 = 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-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_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 = 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-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_id371&op=3Dick _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |
|
From: Ross M. <ro...@at...> - 2003-12-19 08:22:49
|
Hi J=FCrgen, 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 ;-) Have a good weekend, Ross j=FCrgen h=F6ller [werk3AT] wrote: > Ross, >=20 > 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? >=20 > 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. >=20 > Juergen >=20 >=20 > -----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... >=20 >=20 > Hi j=FCrgen, >=20 > Sounds interesting, anything without EJB is always a bonus in my book -= =20 > excuse the pun ;-) >=20 > 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. >=20 > 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. >=20 > Cheers, >=20 > Ross >=20 > j=FCrgen h=F6ller [werk3AT] wrote: >=20 >=20 >>It's "J2EE Development Without EJB", co-authored by Rod and me, the fol= low-up to Rod's "J2EE Design and Development". Editing deadline is mid Ja= nuary, so you can guess that we're quite busy! >> >>Of course, the book uses Spring for all examples - but it is an archite= cture book, not a Spring tutorial. A dedicated Spring book will follow la= ter next year :-) >> >>BTW, does the OpenSessionInViewFilter work for you? If there are any is= sues with it, please tell me before the M4 release... >> >>Finally, is there some documentation on the "external-ref" mechanism th= at you use for XWork/Spring integration? We will probably refer to that i= n Spring docs and the book, so I'd like to make sure that we get the synt= ax right. >> >>Juergen >> >> >>-----Original Message----- >>From: spr...@li... >>[mailto:spr...@li...]On Behalf >>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 the= morning now). Yes, that's a known limitation: If you proxy an object, bo= th the proxy and the target object will match the type. You need to resor= t 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 ApplicationCon= text... >>> >>> >>> >>>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.TransactionProxyFactoryBea= n). >>>- 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 au= tomatically scan all the bean definitions in those files. In your case, I= assume that you do have multiple definitions of type EmailTemplateManage= r, possibly in two different context files. You could check that programm= atically by examining the result of ApplicationContext.getBeansOfType(Ema= ilTemplateManager.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 prop= erty "emailTemplateManager" of bean "notifierCreatePage" to a specific be= an of type EmailTemplateManager: >>>> >>>><bean id=3D"notifierCreatePage" class=3D"..." autowire=3D"byType"> >>>><property name=3D"emailTemplateManager"><ref bean=3D"myEmailTemplateM= anager"/></property> >>>>... >>>></bean> >>>> >>>>Juergen >>>> >>>> >>>>________________________________ >>>> >>>>Von: spr...@li... im Auftrag= von Ross Mason >>>>Gesendet: Di 16.12.2003 01:00 >>>>An: spr...@li... >>>>Betreff: Re: [Springframework-developer] Refreshing the ApplicationCo= ntext... >>>> >>>> >>>> >>>>Hi j=FCrgen, >>>> >>>>We were using refresh as we needed to defer the initialisation of the >>>>String container the first time our app is run until the user has set= up >>>>their db settings, at which point we initialise the container. After >>>>that, if/when the server is restarted we use your ContextLoaderListen= er >>>>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 contexts= ? >>>> >>>>If this is the case, the exception for this scenario is a bit mislead= ing >>>>as it tells me there is more than one satifiable dependency. >>>> >>>>The exception we get is - >>>>org.springframework.beans.FatalBeanException: Can't resolve reference= to >>>>bean 'notifierCreatePage' while setting property 'listeners[0]' on be= an >>>>'producerCreatePage'; nested exception is: >>>>org.springframework.beans.factory.UnsatisfiedDependencyException: Bea= n >>>>with name 'notifierCreatePage' has an unsatisfied dependency expresse= d >>>>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 i= s 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 get= more than one matching bean? The reason could be that you actually *have= * multiple matching beans, which just weren't found by M2's autowire impl= ementation, maybe due to being created by FactoryBeans. Could you quote r= elevant parts of your configuration? >>>>> >>>>>Juergen >>>>> >>>>> >>>>>________________________________ >>>>> >>>>>Von: spr...@li... im Auftra= g von Ross Mason >>>>>Gesendet: Mo 15.12.2003 07:50 >>>>>An: spr...@li... >>>>>Betreff: [Springframework-developer] Refreshing the ApplicationConte= xt... >>>>> >>>>> >>>>> >>>>>Hi, >>>>> >>>>>In the latest source the ApplicationContext.refresh() method has bee= n >>>>>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 matchin= g >>>>>bean on some components when autoWiring by type. Our code and cofig >>>>>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 a= dmin. >>>>>Click now! http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dcl= ick >>>>>_______________________________________________ >>>>>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: <jue...@we...> - 2003-12-19 07:52:53
|
Michael, =20 I've done some Spring/Axis integration myself in the last couple of = days. In the course of this, I've added JAX-RPC support classes to = org.springframework.remoting.jaxrpc (to be committed todays): mainly for = *accessing* Web Services via JAX-RPC, exposing their proxies for bean = references (similar to JndiObjectFactoryBean or the existing = Hessian/Burlap integration). This should work with any JAX-RPC compliant = Web Service tool, including Axis and GLUE. =20 Regarding *exporting* Spring beans as Web Services, this is = unfortunately not possible with the current Web Service tools that I = know of: They all assume to create their service instances themselves in = their own dispatcher servlet, without a way to use existing = pre-configured instances or get invoked via a web MVC framework. So the = only way that I see is writing specific service classes that delegate to = Spring-managed business beans, as you seem to have tried too. =20 I've also added a ServiceEndpointSupport convenience base class to = org.springframework.remoting.jaxrpc, implementing ServiceLifecycle to = look up the Spring root web application context. This way, it's as = convenient as possible in the face of the JAX-RPC service implementation = model: Implementing Web Service wrappers for existing application = services is straightforward with it. =20 I'm not sure what a Spring application context specific to the = AxisServlet would be good for. What would you set up there? If it's = generic services, they belong to the root application context, IMO. And = what kind of Axis-supporting but not generic classes could be managed = there? Please share your thoughts :-) I recommend to *always* put = generic services in the root context: You can split the root context = definition into as many files as you like, via multiple paths as = "contextConfigLocation" context-param. =20 Juergen =20 ________________________________ Von: spr...@li... im Auftrag = von Michael Young Gesendet: Do 18.12.2003 22:27 An: Spr...@li...; = Spr...@li... Betreff: [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_id=3D1278&alloc_id=3D3371&op=3Dclick _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |
|
From: Michael Y. <sp...@on...> - 2003-12-19 04:50:06
|
Rod, It does seem to be JBoss's problem. I'll dig up more on jboss web site to see what's going on. In the mean time, my requirement is to be able to connect to two different instances of Oracle dbs, or two instances of ms sql, so this is working so far for me. Now some Spring specific question: I really like Spring's way of configuring all my objects (beans), but how can I dynamically switch out the data source from one instance of db to the other one? If I want my DAO objects to be able to handle both instances of dbs, what's the best way to dynmically load the right datasource at request time based on, say, a request parameter or url path info etc? Thanks! /Michael. On Thursday, Dec-18-2003 14:08 PM (PST) rod...@in... (Rod Johnson) wrote: > Michael > > Spring won't mess with the drivers, so I suspect your problem is that you've > specified the wrong driver for one of the container datasources. > > Please double check that you've used the right driver for each database. > Also try connecting within JBoss (say from a JSP) to each database to make > sure that it works if Spring is out of the picture. > > If you still think the problem is a Spring problem after trying this, please > post your stack trace and we'll take a look. > > Regards, > Rod > > ----- Original Message ----- > From: "Michael Young" <sp...@on...> > To: <Spr...@li...>; > <Spr...@li...> > Sent: Thursday, December 18, 2003 9:30 PM > Subject: [Springframework-developer] Connecting to two database: one Oracle > and one MSSql > > > > I'm using Spring inside JBoss 3.2.3, and I was experimenting with > > connecting to two dbs (one oracle and ms sql), but got a problem > > when Spring is trying to load meta data for sql error codes and > > exception handling. The exception I got is: cannot connect to > > database because the driver is for the wrong database. > > > > I wonder if this is a JBoss issue, or Spring related? > > > > 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 > > > > > > > ------------------------------------------------------- > 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-19 04:35:22
|
Rob, Thank you for your reply. Yes I can try Glue. Can you send me some sample code? Thanks! /Michael. On Thursday, Dec-18-2003 19:32 PM (PST) rob...@ur... (Rob Rudin) wrote: > Michael - it sounds like you want to have the classes that handle web > service requests loaded by Spring? As you mention, it's most likely not > possible to do this in Axis. If you're not forced to use Axis, you could try > the standard edition of Glue from TheMindElectric (free for most uses, > according to their website). Glue allows you to specify a factory for > loading objects, and it's very straightforward to use the Spring BeanFactory > for loading objects to handle web service requests. And that particular > BeanFactory can be configured specifically for your web services. It's a > very nice, clean integration. Invoking web services is also significantly > easier to do in Glue. If you can switch to Glue, give it a shot, I can find > some sample code too if you need it. > > Rob > > ----- Original Message ----- > From: "Michael Young" <sp...@on...> > To: <Spr...@li...>; > <Spr...@li...> > Sent: Thursday, December 18, 2003 4:27 PM > 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_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: Rob R. <rob...@ur...> - 2003-12-19 03:33:10
|
Michael - it sounds like you want to have the classes that handle web service requests loaded by Spring? As you mention, it's most likely not possible to do this in Axis. If you're not forced to use Axis, you could try the standard edition of Glue from TheMindElectric (free for most uses, according to their website). Glue allows you to specify a factory for loading objects, and it's very straightforward to use the Spring BeanFactory for loading objects to handle web service requests. And that particular BeanFactory can be configured specifically for your web services. It's a very nice, clean integration. Invoking web services is also significantly easier to do in Glue. If you can switch to Glue, give it a shot, I can find some sample code too if you need it. Rob ----- Original Message ----- From: "Michael Young" <sp...@on...> To: <Spr...@li...>; <Spr...@li...> Sent: Thursday, December 18, 2003 4:27 PM 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_id=1278&alloc_id=3371&op=click > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > |
|
From: Darren D. <da...@da...> - 2003-12-19 01:46:45
|
I've committed a first cut of some of the code and scripts. One or two bits of functionality are missing: - according to the readme.txt, app server tarballs will be downloaded if they don't exist locally : they won't - some of the scripts need streamlining. - The resin server doesn't shutdown if you build on resin2, use Ctrl-C in the command window to terminate the script afterwards. Proper httpunit tests only exist for petclinic at present, others are being worked on, so only skeleton versions of those source files are uploaded. See the file /autobuilds/readme.txt if you'd like to have a go with it. Should you try it out, I'd be interested to know.. - if the readme is lacking - if the windows batch file works correctly (I don't have 'doze on any of my home machines to test it) - if anything breaks (at least if anything breaks building petclinic on tomcat 4/5 or resin 2) Regards, -- Darren Davison Public Key: http://www.davison.uk.net/key.jsp |
|
From: Ross M. <ro...@at...> - 2003-12-18 22:26:42
|
Ok mate, I'll get on the case today Ross j=FCrgen h=F6ller [werk3AT] wrote: > Ross, >=20 > 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? >=20 > 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. >=20 > Juergen >=20 >=20 > -----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... >=20 >=20 > Hi j=FCrgen, >=20 > Sounds interesting, anything without EJB is always a bonus in my book -= =20 > excuse the pun ;-) >=20 > 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. >=20 > 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. >=20 > Cheers, >=20 > Ross >=20 > j=FCrgen h=F6ller [werk3AT] wrote: >=20 >=20 >>It's "J2EE Development Without EJB", co-authored by Rod and me, the fol= low-up to Rod's "J2EE Design and Development". Editing deadline is mid Ja= nuary, so you can guess that we're quite busy! >> >>Of course, the book uses Spring for all examples - but it is an archite= cture book, not a Spring tutorial. A dedicated Spring book will follow la= ter next year :-) >> >>BTW, does the OpenSessionInViewFilter work for you? If there are any is= sues with it, please tell me before the M4 release... >> >>Finally, is there some documentation on the "external-ref" mechanism th= at you use for XWork/Spring integration? We will probably refer to that i= n Spring docs and the book, so I'd like to make sure that we get the synt= ax right. >> >>Juergen >> >> >>-----Original Message----- >>From: spr...@li... >>[mailto:spr...@li...]On Behalf >>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 the= morning now). Yes, that's a known limitation: If you proxy an object, bo= th the proxy and the target object will match the type. You need to resor= t 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 ApplicationCon= text... >>> >>> >>> >>>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.TransactionProxyFactoryBea= n). >>>- 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 au= tomatically scan all the bean definitions in those files. In your case, I= assume that you do have multiple definitions of type EmailTemplateManage= r, possibly in two different context files. You could check that programm= atically by examining the result of ApplicationContext.getBeansOfType(Ema= ilTemplateManager.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 prop= erty "emailTemplateManager" of bean "notifierCreatePage" to a specific be= an of type EmailTemplateManager: >>>> >>>><bean id=3D"notifierCreatePage" class=3D"..." autowire=3D"byType"> >>>><property name=3D"emailTemplateManager"><ref bean=3D"myEmailTemplateM= anager"/></property> >>>>... >>>></bean> >>>> >>>>Juergen >>>> >>>> >>>>________________________________ >>>> >>>>Von: spr...@li... im Auftrag= von Ross Mason >>>>Gesendet: Di 16.12.2003 01:00 >>>>An: spr...@li... >>>>Betreff: Re: [Springframework-developer] Refreshing the ApplicationCo= ntext... >>>> >>>> >>>> >>>>Hi j=FCrgen, >>>> >>>>We were using refresh as we needed to defer the initialisation of the >>>>String container the first time our app is run until the user has set= up >>>>their db settings, at which point we initialise the container. After >>>>that, if/when the server is restarted we use your ContextLoaderListen= er >>>>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 contexts= ? >>>> >>>>If this is the case, the exception for this scenario is a bit mislead= ing >>>>as it tells me there is more than one satifiable dependency. >>>> >>>>The exception we get is - >>>>org.springframework.beans.FatalBeanException: Can't resolve reference= to >>>>bean 'notifierCreatePage' while setting property 'listeners[0]' on be= an >>>>'producerCreatePage'; nested exception is: >>>>org.springframework.beans.factory.UnsatisfiedDependencyException: Bea= n >>>>with name 'notifierCreatePage' has an unsatisfied dependency expresse= d >>>>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 i= s 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 get= more than one matching bean? The reason could be that you actually *have= * multiple matching beans, which just weren't found by M2's autowire impl= ementation, maybe due to being created by FactoryBeans. Could you quote r= elevant parts of your configuration? >>>>> >>>>>Juergen >>>>> >>>>> >>>>>________________________________ >>>>> >>>>>Von: spr...@li... im Auftra= g von Ross Mason >>>>>Gesendet: Mo 15.12.2003 07:50 >>>>>An: spr...@li... >>>>>Betreff: [Springframework-developer] Refreshing the ApplicationConte= xt... >>>>> >>>>> >>>>> >>>>>Hi, >>>>> >>>>>In the latest source the ApplicationContext.refresh() method has bee= n >>>>>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 matchin= g >>>>>bean on some components when autoWiring by type. Our code and cofig >>>>>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 a= dmin. >>>>>Click now! http://ads.osdn.com/?ad_id=3D1278&alloc_id=3D3371&op=3Dcl= ick >>>>>_______________________________________________ >>>>>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: Rod J. <rod...@in...> - 2003-12-18 22:08:42
|
Michael Spring won't mess with the drivers, so I suspect your problem is that you've specified the wrong driver for one of the container datasources. Please double check that you've used the right driver for each database. Also try connecting within JBoss (say from a JSP) to each database to make sure that it works if Spring is out of the picture. If you still think the problem is a Spring problem after trying this, please post your stack trace and we'll take a look. Regards, Rod ----- Original Message ----- From: "Michael Young" <sp...@on...> To: <Spr...@li...>; <Spr...@li...> Sent: Thursday, December 18, 2003 9:30 PM Subject: [Springframework-developer] Connecting to two database: one Oracle and one MSSql > I'm using Spring inside JBoss 3.2.3, and I was experimenting with > connecting to two dbs (one oracle and ms sql), but got a problem > when Spring is trying to load meta data for sql error codes and > exception handling. The exception I got is: cannot connect to > database because the driver is for the wrong database. > > I wonder if this is a JBoss issue, or Spring related? > > 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: Michael Y. <sp...@on...> - 2003-12-18 21:47:27
|
I'm using Spring inside JBoss 3.2.3, and I was experimenting with connecting to two dbs (one oracle and ms sql), but got a problem when Spring is trying to load meta data for sql error codes and exception handling. The exception I got is: cannot connect to database because the driver is for the wrong database. I wonder if this is a JBoss issue, or Spring related? Thanks! /Michael. |
|
From: Michael Y. <sp...@on...> - 2003-12-18 21:44:07
|
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. |