]
Issue was automatically transitioned when pull request #658 was created in GitHub
---------------------------------------------------------------------------------
Status: Pull Request Sent (was: Open)
Improve Container API
---------------------
Key: JBTM-2057
URL:
https://issues.redhat.com/browse/JBTM-2057
Project: JBoss Transaction Manager
Issue Type: Feature Request
Components: STM
Affects Versions: 5.0.0.CR1
Reporter: Mark Little
Assignee: Mark Little
Priority: Major
RecoverableContainer<Sample> theContainer = new
RecoverableContainer<Sample>();
Sample obj1 = theContainer.create(new SampleLockable(10));
Sample obj2 = theContainer.create(new SampleLockable(10));
// todo make it easier to create and share objects.
Make sharing of objects like this the default even for pessimistic. Just pass back the
same instance in that case. Also hide getUidForHandle by simply passing the obj
instance.fr
Sample obj3 = theContainer.duplicate(obj1);
Sample obj4 = theContainer.duplicate(obj2);
but for duplicate to work, we'd need to create a new instance of SampleLockable, so
it needs to have a default constructor. And even then, it needs to be transactional.