[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[aspectj-users] Inter-type Declartions and RMI
|
Hello,
I have not been able to make successful RMI calls to methods that have been
added to a server using AspectJ inter-type declarations. When my client
makes the call to the new method that has been added to both the remote
interface and the implementation of the interface, the server never receives
the request (the aspect code, i.e., a println, is not executed). No
exceptions are raised on either side. Has anyone encountered this before?
Heres a bit of background on my debugging so far:
-As someone has already posted, rmic doesnt seem to like already weaved
code, so I:
-compile my server interface and server implementation with javac
-run rmic to generate my stub and skeleton
-put the server interface class file, server implementation class file,
stub and skeleton in a jar file
-run ajc with the injars option with this jar file and my aspect code
(Note that Ive successfully tried this procedure with an aspect that
intercepts executions to server methods.)
-I have verified that both the server and the client are aware of the new
method. I did this by calling the getDeclaredMethods() in the
java.lang.reflect api on the remote instance the client gets. The new method
is present in the stub on the client side and present in the server
implementation instance on the server side. I even tried, without any
success, to call it using the reflection api on the remote instance (method
invoke).
- I have tried different aspects: (1) add the method definition to the
remote interface and add the implementation of the method to the server
class in the same aspect; (2) add only a new implementation to the remote
interface (i.e. added a concrete method to the interface). Both have the
same result: the call is successfully made by the client but is never
received by the server.
Thanks,
Johanne Leduc
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963