using CIS with POJO

Hi all,

I am a developer who just started with the stellent product. I want to create an Java application that communicates with the stellent CMS using CIS. Also I want to use POJO's and not an additional application server to communicate with stellent.

Currently I get in my Java application an exception: Unable to retrieve information about the revision. Permission denied. Address '192.168.140.1' is not an allowable remote socket address.

however I did not set that IP address? Any help would be very appreciated!

I followed the SDK guidelines to create my code, but I am not able to get it working, this is what I come up with:

public void doSearch() throws CommandException, MalformedURLException, RemoteException, com.stellent.command.CommandException
{
ICISApplication application;

URL xmlRes = new File("d:\\stellent\\adapterconfig.xml").toURI().toURL();

String adapXML = xmlRes.toExternalForm();
System.out.println(adapXML);

Properties properties = new Properties();
properties.setProperty(ICISApplication.PROPERTY_CONFIG_TYPE, "server");
properties.setProperty(ICISApplication.PROPERTY_CONFIG_SERVER_ADAPTER_CONFIG, xmlRes.toExternalForm());
properties.setProperty(ICISApplication.PROPERTY_CONFIG_SERVER_TYPE, "standalone");
application = CISApplicationFactory.initialize(properties);

// create context

com.stellent.cis.client.api.scs.context.ISCSContext context = application.getUCPMAPI().getActiveAPI()._createSCSContext();
context.setUser("sysadmin");
context.setAdapterName("myadapter");
context.setIdcUser("sysadmin");

ISCSDocumentInformationAPI documentInfoAPI = application.getUCPMAPI().getActiveAPI().getDocumentInformationAPI();
ISCSDocumentID documentID = (ISCSDocumentID) application.getUCPMAPI().createObject(ISCSDocumentID.class);
documentID.setDocumentID("LALA");

ISCSDocumentInformationResponse docResponse = documentInfoAPI.getDocumentInformationByID(context, documentID);

System.out.println(docResponse.toString());
System.exit(0);

}

And the adapterconfig.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!--
Adapter configuration file for CIS. Each "adapter" element represents an individual connection to a particular
Stellent server.
-->


socket 192.168.140.128 4444


Cheers

check the socket filter in config.cfg

CIS uses a trusted connection, so you need to alter the socket address filter in the config.cfg of the content server, in order to allow the connection. Reboot the server, and you should be fine.

Check the CIS install docs for more info.

Thanks bex, it works now!

Thanks bex, it works now!

caching problem?

I created code to add content to the CMS, after this I submit a revision content to the CMS followed directly by a search query on the same content. However the revision content is not updated until 4 seconds later.

I tried to fix it by setting the content release date to a date prior to the current date and by disabling the caching. But with no luck.

Is there a way to have the latest content change to be directly reflected in a query?

I am using CIS with pojo's.

Cheers,
Arjen

Re: caching problem?

I'm a little late with this reply, but that's a bug in the 8.0.0.0 and 8.0.0.1 versions of the API. If you upgrade to the 8.0.0.2 (10/31/2007) or later release, the issue is resolved. 8.0.0.4 is currently the latest release of the API.

Increase connectiontimeout in adapterconfig.xml

Hi Bex,

We are using cis api with out ucm installation. Here's out adapterconfig.xml


lg345 socket false 4444 20000

So I would like to know what is the significance of persistent connection and connectiontimeout. Since we have set persistenconnection value to false, does it matter what value we have in connectiontimeout. As per documentation, connectiontimeout is the amount of time scoket would wait for another request to come in, if persistent connection is true.

We are having intermittent checkin failures when we run bacth to insert into ucm. We cant see anything in ucm logs either. Would it make any sense to increase connectiontimeout value?

We are very close to GoLive.. An early reply would be highly appreciated.
Thanks in advance.

full text search takes time

You can't instantly run a search query to find an item you just checked in... it takes a few seconds to be "full text indexed."

If you want to instantly find it, you have to do a content info by dDocName.

intermittent checkin failures using cis api.

Hi Bex,

We are using cis api with out ucm installation. Here's out adapterconfig.xml


lg345 socket false 4444 20000

So I would like to know what is the significance of persistent connection and connectiontimeout. Since we have set persistenconnection value to false, does it matter what value we have in connectiontimeout. As per documentation, connectiontimeout is the amount of time scoket would wait for another request to come in, if persistent connection is true.

We are having intermittent checkin failures when we run bacth to insert into ucm. We cant see anything in ucm logs either. Would it make any sense to increase connectiontimeout value?

We are very close to GoLive.. An early reply would be highly appreciated.
Thanks in advance.

content server architecture question

I had 3 questions regarding the architecture of the content server. My understanding is that when the content server was initially designed(back in 1995) J2EE specs etc were not defined, application servers were not developed etc.. at the time. The content server is a Java Application. In your opinion if the content server was being designed today would it still be just a java app or would you/stellent have leveraged J2EE? How does the content server provide the services that an EJB container or servlet container currently provide(security etc)? Was the content server design based on a given framework like struts etc..(could you elaborate on this assuming it is not proprietary information or point me to any documentation if available).

One last question is that I'm in the process of trying to learn Oracle's UCM product..do you have any advice as to how one should go about learning the product? It seems to me from a content server perspective the most important thing to understand is the component architecture and services. Your thoughts?

Thanks.

How to do a full text search using CIS Search API?

Hello All,

Is there a way to do a full text search of the content Server using the CIS Apis..

I tried using the CIS Search API but the query string should be of the format "dDocTitle and if I give just "`test`" I get all random results ..

Please let me know if anyone has a solution.

Thanks
Manoj

lots of questions...

I cover most of the architecture questions in chapters 2 and 12 of my book. Chapters 7-11 cover component architecture, including Java component architecture, which is very important to know...

You should start with my book, then use the public forums for any specific questions:

http://bexhuff.com/topic/technology/oracle-stellent

Now: if I were to write Stellent from scratch, would I use J2EE? I'd say that there would only be a 50/50 chance of that, and it would be a political/sales/marketing decision... not a technical one. J2EE is a good framework for writing solutions, but its not a great framework for writing products. There are better options...

How to view content immediately

Hi,

I am using the CIS to integrate with some upload and fielstreaming servlets that we have in our app.

When I upload an image, the app redisplays the screen that should show the image. The image is streamed via another servlet, but shows the previous version. If I redisplay the page it shows up correctly. I am guessing that the newest version of the image takes a moment to appear in the index as the current version, and therefore does not appear correctly in the immediately displayed page. Is there any way I can force the image to become the current version immediately, that is, are there flags or an API call I can make inside of the upload servlet that will guarantee the just uploaded file will appear as the current version?

Thanks in advance for you answer!

Carl

How to integrate Stellent with JBoss ?

Hi All,
I am starting-up a J2EE application to be written in JBoss Seam Framework.
I need to use Stellent Content Management for this application, where Stellent api would be used by my J2EE application to retrieve and insert content into the Content Management Server.
How do I set up Stellent with JBoss ?
Is there any initial set up document available for this ?

Please help !!

Stellent integration with webcenter and other applications

I installed CIS and STELLENT server, i want to integrate stellent content sever with webcenter applicaions and other application. is there any document explaining the steps to integrate stellent with webcenter using CIS provided api any other methods. please help to get solve the issue.

with regars
satyamshi

Integrate stellent with Weblogic.

Hi All,

I have to install Stellent where I need to use Weblogic application server. I wanted to know that when I am using one application server is it necessary to install a webserver also.
Please also do let me know what configuration I need to do in both the servers, Application server and web server.

Please Help.

How to create the login page using CIS API for UCM

I want to create a login page for validating and login the user name and password using CIS API for UCM.
I request you all to suggest me ?

How to delete the content from ucm using cis api

Can somebody provide me the cis api for deleting the content from ucm

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This form prevents comments spam...
Image CAPTCHA
Enter the characters shown in the image.

Recent comments