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:




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

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.

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.

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

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.

Post new comment

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This form prevents comments spam...