(Xpages) SOA or Direct Database Access

北战南征 提交于 2019-12-24 10:59:18

问题


I'm currently doing an application usign Lotus Notes' XPages. I'm planning to use XPages(or Lotus Notes in general) as the front-end/UI/Design only (not a data storage), while an RDBMS (Oracle, MySQL) as the data storage. I found out that XPages currently doesn't support external RDBMS as data source. Based on my research, I have 2 options (or if you know of others, please put it in the comment section), either to so a SOA approach (where I will get my data using web services) or a direct access to the database (using a Java to RDBMS connector library) that I will wrap in XAgents. I don't want this question to be subjective, so I will just ask what are the pros and cons if using the approaches. I'm for speed and data reliability. Thanks a lot :D


回答1:


Why not consider using Extension Library? http://extlib.openntf.org/

This is a collaboration between developers on OpenNTF and IBM. Dead easy to install and has RDBMS support.




回答2:


I second the XPages Extension Library approach. The code is there and even takes advantage of session pooling. Just make sure you don't design an SQL injection attack vector. Of course you could consider DECS / LEI too



来源:https://stackoverflow.com/questions/7414822/xpages-soa-or-direct-database-access

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!