Say in a typical app where you have a framework of service classes, that do the business. And you then have a set of classes that represent business entities. The former set may be easily wired...
Type: Posts; User: visionset; Keyword(s):
Say in a typical app where you have a framework of service classes, that do the business. And you then have a set of classes that represent business entities. The former set may be easily wired...
Please, does anybody know how to get the spring/axis client to transparently receive business exceptions i.e. without having to deal with RemoteAccessExceptions?
I'm trying to throw a checked business exception from my web service and have this handled transparently by spring via a JaxRpcPortProxyFactoryBean.
However whatever I do, I only get a...
Fixed it now.
Axis auto generates the WSDL in the background from the supplied WSDD. Alot of the WSDL attributes seem to be inferred from namespace attributes, so contrary to normal namespace...
I'm trying to write a simple web service as per chapter 17.5.1 of the core spring manual.
I have a wsdd and have web.xml updated to use spring and the axis servlet. I can browse to the wsdl at...
Another thing that's been bugging me and I've posted on a few days back (with no takers :( ) Is the statement at the beginning of Chapter7
So why are we even looking at Chapter 7?
Because...
There are 2 problems with the current workrounds.
1/ I can't just call proceed() or have it called for me by a wrapper.
2/ Other Spring context beans interfere even if I do just call proceed().
...
The problem is the way I'm using that invoke method. I can't always call super.invoke() or indeed methodInvocation.proceed()
Here's a truncated version of what I'm really doing.
public...
No it's still not working. It's fine as a simple example, but as soon as I stick it in to the mix the Interceptor affects other beans and won't set the context up.
I'm getting really hacked off...
Okay so the new code complains appropriately but still. Why is it getting called at all. And if it has to be why can't Spring intercept it internally and, realise it doesn't blinking well apply (due...
Actually I was too confident in your response
public class MyAdvisor extends DefaultIntroductionAdvisor {
public interface MyInterface {}
public MyAdvisor() {
super(new...
Yes it looks like you are probably right. The last few hours have cleared up quite a few details. You never know I might get round to some domain logic soon!
Hence the post ;)
The workaround is quite straightforward. You just check that methodInvocation.getThis() instanceof MyTypeImExpecting otherwise methodInvocation.proceed() with no intervention.
But yes you are correct, changing to arg0.proceed() allows the demo context to load flawlessly.
But I want to know why that Advisor is being invoked at all at that stage and especially by that...
It shouldn't be getting called at all!
That was just any old implementation to demonstrate the wierd fact that some unrelated object was getting passed in (ie DataSource in this case)
Or am I...
JDK1.5 / Spring 2.0 final
I can't really believe this is a bug but I've distilled the problem down to the essentials so it should be very easy to say one way or the other.
There seems to be a...
I'll add some more info.
I've managed to get the latest AspectJ style annotations to work as described in the manual for Advice and Introductions.
I've got my plain interface and a default...
To aid my AOP learning 'experience' could some kind soul tell me if it is possible to AutoProxy my regular interface using Spring2 ?
In the manual it states that chapter 7 is devoted to pre...
You are absolutely correct.
The final release of JDK6 released only last week, fails whilst JDK5 works fine.
Well I can't get much more minimal. But since the Introductions are working, I've removed them and just have 3 beans (and just those 3 delcared in xml)
AnotherAspect declares the Pointcut...
It is failing during the xml load
I just have these beans declared in the xml, AnotherAspect delcares the PointCut and HelloAspect references it.
Declaration order should not matter?
<bean...
I'm so sorry, I was following things to the letter, or so I thought, I must have misread, though how I don't know.
Anyway, I've removed @Aspect from HelloRunner and now I do get the advice.
...
I have done so, though not in JUnit format.
Yes I have already done that and it made no difference.
If this is a bug, I'm frankly amazed! How can it have got passed to final release?
I'm...
Damn, I missed that one out
package timeout.helloworld;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
@Aspect
I have managed to get Introductions to work, in that an introduced concrete method does run.
I've included that as well as the failing advice so you can see that most of my cofig and setup must be...