7

Is there any information on how to create your own datasources for xpages? I'm busy developing a java API for a system of ours and I would like to be able to use the data as a datasource within xpages.

Per Henrik Lausten
  • 20,229
  • 3
  • 24
  • 72
jjtbsomhorst
  • 1,667
  • 11
  • 28
  • 2
    Data sources in XPages are a very specific topic and for XPages developers this question makes a lot of sense. – stwissel Oct 02 '12 at 16:03
  • 3
    @Abhinav-sarkar Data sources in XPages are a very specific topic and for XPages developers this question makes a lot of sense and isn't much for debate (like in J2EE spring vs EJB3 vs. whatever) – stwissel Oct 02 '12 at 16:13
  • 3
    This question is a very relevant topic for XPages and should not have been closed. – RoyRumaner Oct 02 '12 at 21:00
  • I agree this is a relevant question. but it should ask how to create a dinamyc datasource in xpages. The answer though is very relevant. – Gabriel Netto Feb 15 '13 at 13:43

2 Answers2

14

There was a Lotusphere 2011 session SHOW107 that walked you through the steps. Read about it on Jim's blog, the BleedYellow community, an excellent slideck from Paul (and related) as well as SHOW107 itself.

One caveat: The data sources don't show their fields in the Domino Designer. If you want that functionality then, instead of looking at com.ibm.xsp.extlib.model.ObjectDataSource you would subclass the DominoDocument and more or less overwrite all functions.

stwissel
  • 19,390
  • 6
  • 44
  • 90
2

You could look in the source code of the extension library. There you will find the class com.ibm.xsp.extlib.model.ObjectDataSource as an easy example.

Sven Hasselbach
  • 10,425
  • 1
  • 16
  • 26