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

Ask Your Question

Web app accesing space without GSC

Is it possible to have application (web app) ran outside GSC and still conect to gigaspace? Like Web Application that can perform read operation?

Would it be possible to configuate it via pu.xml fule? - jetty loads web.xml at startup, so add some iport?

Or am I completly out?

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=2802]{quote}

asked 2009-01-13 09:35:43 -0500

hurda gravatar image

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

jaissefsfex gravatar image
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

You can run web server to access a remote space.
Make sure the web server code (servlet) will have the right space URL
and libraries in its CLASSPATH (or war).
Any special problem you are facing?

answered 2009-01-13 09:56:19 -0500

shay hassidim gravatar image
edit flag offensive delete link more


I quite don't know what exactly do I need to change

  • add org.openspaces libraries to war? I'm using maven - so whatever dependency I have in provided scope I just put inside war and then I make spring loader load configuration that would normaly be in pu.xml?

Is it that easy?

hurda gravatar imagehurda ( 2009-01-14 03:05:16 -0500 )edit

Why do you need to include the libraries in the giga install? Can the web app just connect to the remote space using your api? This makes no sense from the BANNON post?

answered 2009-01-14 12:21:17 -0500

edit flag offensive delete link more


Like any other space client - since the web application using the Space API it needs the GigaSpaces libraries.

shay hassidim gravatar imageshay hassidim ( 2009-01-14 13:09:39 -0500 )edit

It's really easy, and Shay was correct. If you're using Maven, all you have to do is make sure the openspaces artifacts are listed as dependencies; open up the Spring context and the connection will be made just as if you're running in any other environment. It's actually quite elegant.

jottinger gravatar imagejottinger ( 2009-01-14 14:01:07 -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


Asked: 2009-01-13 09:35:43 -0500

Seen: 5 times

Last updated: Jan 14 '09