English 中文(简体)
Lotus Notes XPages for design and Oracle (or other RDBMS) for data
原标题:

I plan to make an web application using XPages for the design (plus the Lotus Notes Elements), but instead of storing the data in Lotus Notes, I will store the data in a RDBMS (specifically an Oracle Database). As you can see, I want to create a clear separation between the design and data. Is there a way I can do this? I mean, is there a way I can use Oracle as the data source and XPages/Lotus Notes for the UI only? Thanks a lot!

最佳回答

There actually has been native support for RDBMS/JDBC connectivity in Xpages since July 2011. Take a look at the Extension Library on OpenNTF (http://extlib.openntf.org/) and read the blogpost announcing the functionality: http://www.openntf.org/blogs/openntf.nsf/d6plinks/NHEF-8JYMXE.

It s not yet officially supported through IBM (not part of the Upgrade Pack 1 - http://www-01.ibm.com/software/lotus/notesanddomino/nd85-UpgradePack853-1.html), but there will be support for it in the future.

问题回答

The short answer appears to be "yes but no" .

XPages is JDBC compliant, so you can connect to anything, including Oracle. The snag is, you ll probably have to write the code yourself. Apparently there are plans to open source a JDBC-based Relational Database XPages DataSource but there s been no activity as such. Find out more

XPages101.net may be a good site for cutting your teeth on Xpages. They have 60 lessons you can subscribe to. They are highly recommended. You may be particularly interested in lesson 55.

DISCLAIMER: I am not affiliated with XPages101.net in any way.

The XPages environment doesn t have any particular support for relational data sources, but there are two viable options depending on how cautious your organization is about using recent and beta software and how much support code you re willing to write.

For the former case, the XPages Extension Library (http://extlib.openntf.org/) is adding in relational database support for the 8.5.3 release of Domino, which is scheduled to come out at the beginning of next month. I m not in the 8.5.3 beta, so I haven t seen this in action, but the video on their page looks promising and the Extension Library is high-quality in general. So if you re willing to deploy 8.5.3 when it comes out and use the Extension Library, it ll likely do just what you want.

If you won t be immediately upgrading or don t want to deploy the Library, you can write your own code using JDBC drivers; there s an example of this technique here: http://www-10.lotus.com/ldd/ddwiki.nsf/dx/xpage_integration_rdb.htm . While you can t, for example, just pass a RecordSet to a Repeat control on an XPage, if you re willing to write your own ORM, you could make your objects implement the List interface use Java-Bean-style naming, which would let you use them in standard controls and write expression language like "#{someRecord.someField}".





相关问题
Export tables from SQL Server to be imported to Oracle 10g

I m trying to export some tables from SQL Server 2005 and then create those tables and populate them in Oracle. I have about 10 tables, varying from 4 columns up to 25. I m not using any constraints/...

Connecting to Oracle 10g with ODBC from Excel VBA

The following code works. the connection opens fine but recordset.recordCount always returns -1 when there is data in the table. ANd If I try to call any methods/properties on recordset it crashes ...

How to make a one to one left outer join?

I was wondering, is there a way to make a kind of one to one left outer join: I need a join that matches say table A with table B, for each record on table A it must search for its pair on table B, ...

Insert if not exists Oracle

I need to be able to run an Oracle query which goes to insert a number of rows, but it also checks to see if a primary key exists and if it does, then it skips that insert. Something like: INSERT ALL ...

How can I store NULLs in NOT NULL field?

I just came across NULL values in NOT-NULL fields in our test database. How could they get there? I know that NOT-NULL constraints can be altered with NOVALIDATE clause, but that would change table s ...

Type reference scope

I m studying databases and am currently working on a object-relational DB project and I ve encountered a small problem with the number of possible constraints in an object table. I m using "Database ...

OracleParameter and DBNull.Value

we have a table in an Oracle Database which contains a column with the type Char(3 Byte). Now we use a parameterized sql to select some rows with a DBNull.Value and it doesn t work: OracleCommand ...

热门标签