Is there Remote Method Invocation in Jade?

For questions and postings not covered by the other forums
ken chiam
Posts: 18
Joined: Tue May 11, 2010 1:34 pm

Is there Remote Method Invocation in Jade?

Postby ken chiam » Mon Jun 21, 2010 1:37 pm

Does anyone know is there remote method invocation in Jade? just like Java, there is JRMI.

cheers
ken

User avatar
BeeJay
Posts: 312
Joined: Tue Jun 30, 2009 2:42 pm
Location: Christchurch, NZ

Re: Is there Remote Method Invocation in Jade?

Postby BeeJay » Tue Jun 22, 2010 3:17 pm

It may perhaps help to put some more context into your question to indicate what you're actually trying to achieve?

User avatar
Dino
Posts: 49
Joined: Wed Jun 24, 2009 6:55 am
Location: London
Contact:

Re: Is there Remote Method Invocation in Jade?

Postby Dino » Tue Jun 22, 2010 3:48 pm

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.

ken chiam
Posts: 18
Joined: Tue May 11, 2010 1:34 pm

Re: Is there Remote Method Invocation in Jade?

Postby ken chiam » Thu Jun 24, 2010 1:56 pm

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

torrie
Posts: 92
Joined: Fri Aug 14, 2009 11:24 am

Re: Is there Remote Method Invocation in Jade?

Postby torrie » Thu Jun 24, 2010 2:08 pm

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.

metehanpataci
Posts: 2
Joined: Sun Jul 08, 2012 7:28 am

Re: Is there Remote Method Invocation in Jade?

Postby metehanpataci » Sun Jul 08, 2012 7:36 am

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.

User avatar
Dino
Posts: 49
Joined: Wed Jun 24, 2009 6:55 am
Location: London
Contact:

Re: Is there Remote Method Invocation in Jade?

Postby Dino » Sun Jul 08, 2012 11:17 am

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

metehanpataci
Posts: 2
Joined: Sun Jul 08, 2012 7:28 am

Re: Is there Remote Method Invocation in Jade?

Postby metehanpataci » Sun Jul 08, 2012 7:22 pm

Hi Dino,

Thanks for resply. I am so sorry to waste your time.

Kind regards.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 6 guests