是否像使用@Transactional方法創建POJO一樣簡單?Spring中的EJB 3.0會話Bean的等價物是什麼?
2
A
回答
2
是的,春豆是pojos。您必須在applicationCotnext.xml
中聲明它或使用@Service
註釋它。
1
在Spring中,您將其創建爲普通bean,並指定session scope或@Scope
註釋。
1
用@Transactional
註釋的春豆(即適當聲明)可與相媲美本地會話豆。對於遠程會話Bean,您將不得不添加一些遠程處理到您的Spring配置(RMI,Web服務,Hessian,Burlap,HTTP invokers)。但是,Spring Remoting不支持開箱即用的安全性和事務傳播(與EJB不同)。
相關問題
- 1. 什麼是@Postconstruct的ejb-jar.xml等價物?
- 2. 爲什麼EJB會話bean有「會話」的名字?
- 3. 什麼是VC7中的strtok_s等價物?
- 4. 什麼是Silverlight中的OnRender等價物?
- 5. C#中TreeBidiMap的等價物是什麼?
- 6. 什麼是C#中的vbNullChar等價物?
- 7. MySQL中'go'的等價物是什麼?
- 8. Bash中%%〜nxD的等價物是什麼?
- 9. C#中memset的等價物是什麼?
- 10. Monotouch中的CGPDFDocumentGetCatalog等價物是什麼?
- 11. C#中bigint的等價物是什麼?
- 12. 什麼是android中的dataWithContentsOfURL等價物?
- 13. jquery中Ajax.updater的等價物是什麼?
- 14. url中的「 - 」等價物是什麼?
- 15. TensorFlow中np.std()的等價物是什麼?
- 16. 什麼是Ruby中的「sys.stdout.write()」等價物?
- 17. wxWidgets中UpdateWindow()的等價物是什麼?
- 18. JQuery中innerHTML的等價物是什麼?
- 19. Bindingsource中EOF的等價物是什麼?
- 20. RDFlib中rdf:ID的等價物是什麼?
- 21. python中'gem'的等價物是什麼?
- 22. gcc中的#pragma等價物是什麼?
- 23. Python中imadjust的等價物是什麼?
- 24. python中print_r()的等價物是什麼?
- 25. Spring MVC中Struts ActionMessages的等價物是什麼?
- 26. MessageFormat的Pattern.quote()的等價物是什麼?
- 27. 什麼是Python的os.walk的等價物?
- 28. 什麼是PHP的preg_quote的等價物?
- 29. 什麼是CDI的InjectionPoint的Spring DI等價物?
- 30. 什麼是Win32_OperatingSystem的64位等價物?
這是有效的嗎?那個spring remoting不支持開箱即用的安全性和事務傳播?交易傳播..你是什麼意思?你不能(例如)堅持/合併東西到數據庫? – Alex 2012-03-31 21:56:54