Javaspaces/Gigaspaces--plz..give me a clue if possible...!
Hi friends !
I'm sorry to be asking a very un-related question perhaps...but i was just wondering if there's anyone who knows a bit of Gigaspaces ( implementation of Javaspaces--> see :- http://www.gigaspaces.com)...
I was trying to create an example to demonstrate the Transactions...
...The Javaspaces specs seems to suggest that we can have a Transaction spanning across Multiple Java spaces...
To Quote :--
#####
The JavaSpaces API uses the packagenet.jini.core.transaction
to provide basic atomic transactions that group multiple operationsacross multiple JavaSpaces services into a bundle that acts as a single atomic operation.
#####
But in the Gigaspaces, they've provided only aLocalTransactionManager implementation of theTransactionManager interface of Javaspaces...
Now, the problem is when i get theTransaction objects from THIS TransactionManager...it works ONLY within a SINGLE Java-Space...
I would be very grateful if any of you have ANY clue as to
whether it is possible to, say, perform awrite( ) of someEntry object into 2 Space-instances BUT under a SINGLE Transaction...so that if either of them fails, BOTH thewrite( )'s "roll-back"...
Right now, it seems that we have to write our own TransactionManager for that...which is clearly not feasible...!!
(I've also written to the Gigaspaces people....and have not yet got anything from them ...awaiting their response...
but it would be great to get to know from someone who's actually had some Experience with it...! :))
Thanks in advance....!
Have a great day ! :)
"r a g h u"// raghu.ugare@gmail.com
[1827 byte] By [
fritza] at [2007-10-3 3:10:06]

I think I Got it !! :)
{I just about stopped short of screaming "Eureka !"--that would probably make Archimedes sue me for stealing his phrase...! ;-)}
i think i've got a very nice way of getting a TransactionManager which can span multiple Javaspaces instances..!!! {
Thanks to the Gigaspaces people..who gave me a clue as to how to do it..!
The rest, is well, dependent on my efforts...!
(I will give it everything i've got...!! And i'm sure i WILL "Just Do it !!" :))
}
The idea is that Jini already provides a nice implementation of a Transaction-manager (called Mahalo perhaps?) which can give us Transaction objects that span multiple Jini-services (or "participants" rather...!)
Now, what i need to do is get a handle to THIS special transaction-manager by doing a look-up for it...just the way i do while getting a handle to a Java-space instance...
And...Voila ! I shall then be able to get Transaction objects which will allow me to do operations that can truly span Multiple Java-spaces instances...spread out across our whole local-network....!!
{Need to convince my neighbours to install & set-up a Java space now for a test of my idea...Hope they don't laugh at me ?!! :-) }
Whew !! My idea sure sounds great....my intuition says it MUST work...Hope i can pull it off too...!!?!
(Intuition can be Deceiving in Software--like when i learnt the classic scenario of WHY "an Ostrich IS-A Bird" can be Wrong according to OOP concepts !! That really taught me a nice lesson indeed..! )
Anyway, i have Promised my self that i WILL do it by TODAY !!
Let us C !! :-)
But Thanks to the special people here (esp., Ceci, Kaj, & many others!) who taught me that our own efforts are our BEST guides...!
We may stumble & Grope..but we'll learn a LOT that way !!
Thanks to their inspiration, i DID not stop MY efforts EVEN after i posted this problem..and i seem to have hit upon a Wonderful insight now !!:)
And Thank You everyone for bearing with ME, & My thoughts...i jussst couldn;t resist sharing them with you all...!!Cheers !!!
"r a g h u" // raghu.ugare@gmail.com
-
"God help those who do not help themselves."
-- Wilson Mizner
-
fritza at 2007-7-14 21:00:52 >

Yesssss !!! :)
I finally GOT it friends...!!!! :)
I was able to connect to 2 different Gigaspace-instances & do a write( ) into both of them...and then i purposely "aborted" the transaction...and i could not READ( ) the written Entry from either of the Spaces...!!
Exactly as i had Hoped for...!! :)
{
As i said earlier, i did it by looking up & connecting with Jini's Transaction Manager (mahalo)..and using it o create my Transaction objects...!!
}
And (co)-incidentally, THIS is my 100'th Post too...!!!
THANKS to ALL the great people here, who have made me Learn from my own efforts, & mistakes....!!
Thanks to them, i've been able to make a good beginning in Java..it's beautiful indeed...! :)Love & best Wishes,
"r a g h u" // raghu.ugare@gmail.com
Why DONT we prefer "the Joy of Pursuit" to "the Pursuit of Joy"?
--
Message was edited by:
fritz
fritza at 2007-7-14 21:00:52 >

Congratulations, I suppose :-)
Lokoa at 2007-7-14 21:00:52 >

Could you please reduce the usage of bold, italics and ALL CAPS and mutliple exclamation marks?!?! It's rather annoying to read. Sorry, I don't want to stop you from posting, but your chances of getting answers will probably increase when reading your postings becomes easier.
regards
> Could you please reduce the usage of bold,
> italics and ALL CAPS
--> I feel that actually helps to locate the important points...
> and mutliple exclamation marks?!?!
--> i absolutely Agree with this point, i need to really curb my habit of cluttering my mails & writings with ... & !!!
Anyway, thank u Joachim, i will certainly try to improve & try to keep it "easy on the eye" ( i suppose that is what u suggested, if i'm right?)
"raghu"
fritza at 2007-7-14 21:00:52 >

> > Could you please reduce the usage of
> bold,
> > italics and ALL CAPS
> --> I feel that actually helps to locate the
> important points...
I feel that it clutters the text flow, but that's just my personal opinion. I can't and don't want to force you to anything.
> > and mutliple exclamation marks?!?!
> --> i absolutely Agree with this point, i need to
> really curb my habit of cluttering my mails &
> writings with ... & !!!
Thanks ;-)
> Anyway, thank u Joachim, i will certainly try to
> improve & try to keep it "easy on the eye" ( i
> suppose that is what u suggested, if i'm right?)
Yes, that's basically what I was asking. Thanks for listening.
> Congratulations, I suppose :-)Thank you...thanks a lot...! :)
fritza at 2007-7-14 21:00:52 >
