Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

How to reuse the same space.

Hi Group,

I am trying to integrate Gigaspace with my application.
I am creating the space with "finder.find("/./mySpace")" and able to write and read from the same space.
(Both my application and the Gigaspaces are in the same machine).
While I am closing my application the space is lost.
My requirement is that once I am able to write, I should be able to read from the same space after restarting my application.
Thanks for any suggestions.

Regards
Jitendra

This thread was imported from the previous forum.
For your reference, the original is available here

asked 2009-07-28 10:12:06 -0500

jknayak gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

2 options: - Run the space separately than the application. In this case the URL the application will will be: jini:////mySpace. A simple way to start the space separately will be to run the gsInstance command. - run a persistence space.

Shay

answered 2009-07-28 13:48:11 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Comments

Thank Shay, I have two questions here.

1) I am starting the space separately (by gsInstance.bat) and accessing the it by ("/./mySpace"). So do I have to use (jini:////mySpace) instead? 2) Do I need to pass any flag to make it persistent? Because from the GUI I am not able to check that option. I am able to select Privately only.

Jitendra

jknayak gravatar imagejknayak ( 2009-07-28 14:36:47 -0500 )edit
  1. When starting the space with gsInstance and using "/./mySpace" again with your application is wrong. You should use "jini:////mySpace".
  2. Yes - you need to use some setting when starting the space. For now - you don't need to use these options. Shay
shay hassidim gravatar imageshay hassidim ( 2009-07-28 14:42:21 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2009-07-28 10:12:06 -0500

Seen: 23 times

Last updated: Jul 28 '09