• Post Reply Bookmark Topic Watch Topic
  • New Topic

JINI: transactions  RSS feed

 
karl koch
Ranch Hand
Posts: 388
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all
i need to send some data (serialized objects...) from service A to service B.
upon succesful transfer of an ser. object, A must delete files related to this object, B must create files related to this object.
i thought about using jini transactions for this. can somebody give me a hint on how to do this ? what part of code goes where in the TransactionParticipant methods ?
i hope this was halfway clear....kind' hart to explain for me....
k
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Based on my rather tenuous understanding of the full Jini package, I think you really only need Java Message Service or JavaSpaces. If I understand you, service A does not need to discover service B, so JMS or JavaSpaces would work.
In either case you need some sort of server that brokers the exchange of information.
Of course, it could be even simpler if A and B can talk sockets to each other directly.
Bill
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There doesn't appear to be any need for a transaction system based on what you're describing. Some form of "named pipe" would work (that's more or less what a JavaSpace is), but unless you've reducing a much more complex problem for our benefit, it's probably overkill.
If it's just service A and service B, the need for an intermediary isn't so clear. You could do the same thing with RMI and save yourself a lot of indirection.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!