Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Lyo » SecureHelloWorld - consumerStore is null(How does this example initialize its consumer store ?)
SecureHelloWorld - consumerStore is null [message #1236533] Mon, 27 January 2014 07:55 Go to next message
David Harrison is currently offline David Harrison
Messages: 2
Registered: January 2014
Junior Member
Could you please help me to understand this example of Lyo OAuth. The consumer store is always null. Bugzilla example uses an xml file to initialize the consumerStore but I see nothing in the securehelloworld example, except for the RDFStore.

BR
David
Re: SecureHelloWorld - consumerStore is null [message #1236565 is a reply to message #1236533] Mon, 27 January 2014 09:53 Go to previous messageGo to next message
Samuel Padgett is currently offline Samuel Padgett
Messages: 14
Registered: July 2009
Junior Member
David,

I think Bugzilla is probably a better example of using the OAuth library. The hello world sample predated the Bugzilla one and was the only sample at the time. It was meant to show in code how you can include the library, more than something you would run and play with.

The consumer store is pluggable. You can use one of the out of the box stores or implement an interface to create your own. The hello world sample uses Jena TDB to store the consumers, which is probably overkill Smile Bugzilla uses a simple file-based store. Again, I think Bugzilla is probably a better model to follow here.

Good luck.

Sam
Re: SecureHelloWorld - consumerStore is null [message #1236571 is a reply to message #1236533] Mon, 27 January 2014 10:07 Go to previous messageGo to next message
David Harrison is currently offline David Harrison
Messages: 2
Registered: January 2014
Junior Member
Ok, thanks, but what consumers are in the RDFStore for the securehelloworld example. I used this as the base for my test, would save time for me.
Re: SecureHelloWorld - consumerStore is null [message #1236976 is a reply to message #1236571] Tue, 28 January 2014 09:21 Go to previous message
Samuel Padgett is currently offline Samuel Padgett
Messages: 14
Registered: July 2009
Junior Member
No consumers are predefined. Easiest is to edit the sample and call RdfConsumerStore.addConsumer() before config.setConsumerStore().
Previous Topic:Connection Timeout error while running StockQuotes sample
Next Topic:is there an OSLC4J example for RM ?
Goto Forum:
  


Current Time: Thu Jul 24 19:12:59 EDT 2014

Powered by FUDForum. Page generated in 0.01625 seconds