Hi,
I'm little bit confused what is the best(correct) way to obtain a service from 
Framework.
In our application we are using randomly both methods, but we don't have 
knowledge  where is better to use either of them.
Precisely, I have a service which wraps some logic based on Directory API and 
it  works with sessions, etc... This service is used by some beans and they are 
living on top level of the application - in seam framework. The problem is in 
different behavior when I'm running JUnit tests and in production environment 
in jboss. In first case there is no transaction manager, in second the 
configuration is to use XA. I notice that  using 
DirectoryService.open(DIRECTORY_NAME) and 
DirectoryService.getDirectory(DIRECTORY_NAME).getSession() is not the same.
Can someone give me a hint what is the proper way to work with Framework and 
where is better to isolate my code from configuration environment of JDBC?

Regards,
Stefan
--
Posted by "[email protected]" at Nuxeo Discussions 
<http://nuxeo.org/discussions>
View the complete thread: 
<http://www.nuxeo.org/discussions/thread.jspa?threadID=2900#8470>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to