Page 1 of 1
Is there Remote Method Invocation in Jade?
Posted: Mon Jun 21, 2010 1:37 pm
by ken chiam
Does anyone know is there remote method invocation in Jade? just like Java, there is JRMI.
cheers
ken
Re: Is there Remote Method Invocation in Jade?
Posted: Tue Jun 22, 2010 3:17 pm
by BeeJay
It may perhaps help to put some more context into your question to indicate what you're actually trying to achieve?
Re: Is there Remote Method Invocation in Jade?
Posted: Tue Jun 22, 2010 3:48 pm
by Dino
Do you mean, Is there a way from an app server or standard client node of invoking a (remote) method on the database server node?
If so, then yes. If you add "serverExecution" to the end of a method signature, then when this method is invoked, if the calling method is not already executing on the database server, JADE will shift execution of the calling process to the database server before invoking the method. When the serverExecution method completes, execution will return to the original node.
Likewise you can specify "clientExecution" to cause execution to move from a database server method back to the app server/standard client node.
There is no equivalent to invoke a method in another app server/standard client node (either in the same system or a separate system), but you could expose a web service to achieve this.
Dean.
Re: Is there Remote Method Invocation in Jade?
Posted: Thu Jun 24, 2010 1:56 pm
by ken chiam
hi Dean, thanks for your input. Can i know the "serverExecution" is added at the app server methods or the database server method?
Ok, maybe i am not clear with my requirement. i should elaborate more. Basically, i implementing 2 schema using Jade. Both are application, there can run separately. But some methods are shared among both application.
e.g.
Schema 1 has 3 methods: getName(), setName(), and deleteName().
Schema 2 has 3 methods: getPlace(),setPlace() and deletePlace().
is it possible in Schema 2 call Schema1.getName() during runtime and retrieve data in Schema one based on request?
cheer
px
Re: Is there Remote Method Invocation in Jade?
Posted: Thu Jun 24, 2010 2:08 pm
by torrie
Packages within Jade should allow you to do this. You can export a interface from one schema and load it into another. Take a look at Chapter 13 in the Jade Developers Reference.
If you have common methods like controls etc that are used across multiple applications, then perhaps you should consider having a common super schema.
We have a Base schema which contains subclassed controls, security classes which is then used by applications in sub schemas. While we could use packages for some of this, having the code in a super schema can make things more transparent.
One disadvantage of the super schema approach is that you cannot have inverses that are defined across different schemas.
Re: Is there Remote Method Invocation in Jade?
Posted: Sun Jul 08, 2012 7:36 am
by metehanpataci
Hi,
Is there any sample code or sample example about remote method call by using jade agents? I couldnt't find any example code to call a remote method by using JADE agents.
Thanks for your kindly helps.
Re: Is there Remote Method Invocation in Jade?
Posted: Sun Jul 08, 2012 11:17 am
by Dino
Because you mention "agents", are you using the Java Agent Development Framework, which is also called JADE? If so, then the home page for this product is here:
http://jade.cselt.it/
The JADE product discussed in these forums is unrelated to the Java Agent Development Framework.
Dean.
@CooperDino
Re: Is there Remote Method Invocation in Jade?
Posted: Sun Jul 08, 2012 7:22 pm
by metehanpataci
Hi Dino,
Thanks for resply. I am so sorry to waste your time.
Kind regards.