• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Non transactional resources management

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,
I'm starting to design a solution for non transactional resources management.
I have some legacy systems accessed by http call which have to act as partecipating in a transaction.
These systems provide an interface working in do/undo way i.e. you can do something like:
http://do.jsp?p=1&c=1 and http://undo.jsp?p=1&c=1

My idea would be to hide one (or more) legacy system behind one XAResource implementation and enlist it (at ejb level)
in a bean managed transaction with others 'standard' resources (connection to db).
I guess will have to consider locking and concurrence issues ...
Have someone approached one similar problem ? Are there different ways to do that?
I'm doing things too much complicated, I'm missing something?
Any tip will be welcome.
Thanks
 
Author
Posts: 234
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Pedro,
If I understand your question it sounds like you might want to consider a J2EE conector. What is your 'non-transactional resource'. If you can cover it with a connector then you'd be good to go and be able to use delcartive transactions from a session facade that could cover your entities and the other resource.
Hope this helps.
 
He was expelled for perverse baking experiments. This tiny ad is a model student:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic