Hi Ben,
Yep, spot on. I was thinking that the server code would be a Java RMI server
that starts the X10 program. The X10 program loads up the places with their
relevant data, then place 0 would poll a queue of some sort, examine the
request in terms of mapping it to the places that have the interested data. I'm
looking at ordered time series data at the moment for this experiment.
The Java RMI server would have an interface into the X10 queue, and when it
receives client tasks, it would convert them to X10 tasks and put them on the
queue.
Cheers,
Jason
On 12/11/2013, at 6:31 AM, Benjamin Herta <bhe...@us.ibm.com> wrote:
> Hi Jason - I have a few questions for you.
>
> Is your intent to connect a Java-only client program to a multi-place X10
> program on the server side? I assume this from your description, but I want
> to be sure.
>
> Do you expect to manually start up the X10 program as a long-lived program,
> and then point your client program(s) to it after it's running?
>
> Will you use Java RMI to link the client to X10 place 0, and your question
> relates to linking the server-side RMI code to the X10 worker threads? Do
> you plan on using some form of work queue where the RMI server puts work for
> the X10 worker thread to pick up?
>
>
> We have recently done some integration work that brings Managed X10 places
> into java processes, with a hand off of work initiated by the java code and
> processed by the X10 runtime. So I know that what you want to do is
> possible, but it is more tricky to get X10 to process code initiated in Java
> threads than it is to call Java code from X10 code.
>
>
> - Ben
>
> <graycol.gif>"Jason Separovic" ---11/09/2013 06:12:23 PM---Hi,
>
> From: "Jason Separovic" <jseparo...@nexoss.com.au>
> To: <x10-users@lists.sourceforge.net>,
> Date: 11/09/2013 06:12 PM
> Subject: [X10-users] Implementing an X10 Server within a Java
> client/server architecture
>
>
>
> Hi,
>
> I’m trying to come up with a Java Client/Server framework for executing tasks
> on my X10 implementation.
> I’ve read that we can call X10 code from java so I thought using a Java RMI
> client/server approach might suit.
> Basically, the Java RMI server would start the X10 application code and
> provide an interface for a client to send tasks which would be executed on
> the X10 memory grid once loaded.
>
> Does this approach sound feasible? Are there any code samples around for
> calling X10 code from within a Java Class?
>
> Cheers,
>
> Jason
>
> ------------------------------------------------------------------------------
> November Webinars for C, C++, Fortran Developers
> Accelerate application performance with scalable programming models. Explore
> techniques for threading, error checking, porting, and tuning. Get the most
> from the latest Intel processors and coprocessors. See abstracts and register
> http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk_______________________________________________
> X10-users mailing list
> X10-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x10-users
>
> ------------------------------------------------------------------------------
> November Webinars for C, C++, Fortran Developers
> Accelerate application performance with scalable programming models. Explore
> techniques for threading, error checking, porting, and tuning. Get the most
> from the latest Intel processors and coprocessors. See abstracts and register
> http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk_______________________________________________
> X10-users mailing list
> X10-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/x10-users
------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users