Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Configure & Use Broker API in .Net Project

Can someone point me to documentation for setting up the Broker API to use from a .Net app? I've reviewed the documentation on livecontent, but I don't see anything specific on setting up & configuring the broker API to be used from a .net project: The documentation is all related to the server.

I've tried to piece this together by checking out how the OData service is set up, but I keep getting the errors listed below. So I've missed a step, but what step? Do I need to update some of the CD_*_CONF.xml config files?

One more question. Is it me or is the Tridion documentation somewhat incomplete? Basic instructions for how to use one of the product's key API's seem like a reasonable request. I apologize ahead of time if this document exists but I missed it.

ERRORS I'M GETTING

Could not initialize class com.tridion.storage.StorageManagerFactory

or

ClassNotFoundException: com.tridion.broker.querying.Query

Link to "install" topic on Live Content

UPDATE

Thanks for the quick response. I looked at the "Installing a Server role as a .net..." article. It looks like I've followed the steps but my app can't find the JAR files. In this case the cd_broker.jar is in the root/bin/lib directory of my .net project

Java.Lang.ClassNotFoundException: com.tridion.broker.querying.Query

UPDATE 2

I'm using Tridion 2011 SP1.

like image 863
Mr Smith Avatar asked Dec 28 '22 00:12

Mr Smith


1 Answers

I will assume for now you are using SDL Tridion 2011 SP1, so I think this is the link you are looking for:

http://sdllivecontent.sdl.com/LiveContent/content/en-US/SDL_Tridion_2011_SPONE/task_708AA488429D4457AC303DD121B22183

You will need to create a lib and config folder inside the bin directory of your application. The *.config files go in the config folder, and the jar files of from the roles in the install folder go in the lib directory.

You will need to make sure you have a valid license file on accessible, and make sure all your config files point to it (or you can save the file in the config folder itself).

If you are using OData, I suggest you set that up as a separate web application and query it from your app. The docs for that are here:

http://sdllivecontent.sdl.com/LiveContent/content/en-US/SDL_Tridion_2011_SPONE/task_3E3A2FB1B4E34C20934B5A841C2E0930

You will need to update all your config files to set up the correct bindings etc, and point to your Broker DB or File System. That is described here:

http://sdllivecontent.sdl.com/LiveContent/content/en-US/SDL_Tridion_2011_SPONE/task_005JJFGGGD8858699HHFHJF

Hope that helps

like image 64
Chris Summers Avatar answered Jan 28 '23 14:01

Chris Summers