Home | Oracle ECM Home Page  | Oracle ECM Documentation  | Oracle ECM Downloads  | Oracle ECM Forums  | Yahoo Intradoc Users Group Feed your aggregator (RSS 2.0)  
  Oracle Fusion ECM Blog. Are you "kuh n-tent" with your "kon-tent"?
 
 
# Tuesday, August 12, 2008

If you have never been to an Open World before and you are planning on going this year you will first have to deal with the general "Shock & Awe" of the size of the thing. Once you move past that you will likely be buried deep in trying to figure out what sessions to attend and a fair bit of social networking. At some point you are bound to notice this odd thing called Unconference. Un-what? It is called the Unconference, and it is a pretty neat concept.

This is a place where rookies as well as professional presenters can setup a session about what they feel is important with information they want to share with the community. Similar to the other presentations you go to you may (or may not) see a demonstration, a PowerPoint or some other kind of general presentation, but these tend to be less formal all the way up to entirely adhoc. You can check out the time slots and the proposed sessions here:

http://wiki.oracle.com/page/Oracle+Open World+Unconference?t=anon

Unfortunately at this time I do not see much on Fusion ECM. However, over on the Bex Huff blog he has indicated recently he may give his Enterprise 2.0 Rant presentation at the Oracle Open World Unconference. If you would like to get a sneak peek then head over and check out some of the info he's already got available on that subject:

http://bexhuff.com/2008/07/enterprise-2-0-rant-available-for-all

He also talks about some additional items he will be presenting here:

http://bexhuff.com/2008/08/six-weeks-till-open-world

Unconference is not for everyone all the time, but it certainly is a good compliment to the "structured" presetnations deployed throughout the rest of the conference. Each year is different, but the value of this particular part is soley dependent on the efforts put forth by the community. So, if Unconference flops this year, I guess it is on us.

Tuesday, August 12, 2008 7:50:05 AM (Central Daylight Time, UTC-05:00)  #    Comments [0]   Oracle UCM  | 
# Monday, August 11, 2008

Perhaps the context is Site Studio. Perhaps the context is a JSP (Java Server Page) checked into Content Server. Regardless, you will eventually begin to wonder "What is this ServerBean thing?" and "What can I do with it?" I often get asked about the existence of documentation on ServerBean, and it has recently been pointed out to me that this is covered in Bex Huff's book The Definitive Guide to Stellent Content Server Development (which is pretty darn good, so get it if you don't have it).

That said, there is some information I can present here about the ServerBean class starting with the signatures of the public methods. I've sprinkled sparse notes among the methods that may or may not be of use. The simplest description of ServerBean is a shortcut class for performing actions like manipulating the local data, executing services, reading enviornment variables and executing IdocScript.

class ServerBean
{
    // Constructor
    // NOTE: A single, no argument constructor is supplied and you must use the init method to initialize
    ServerBean()

    // After the constructor you must initialize with this method
    void init(ServletRequest servletrequest)

    // Remaining Methods ///////////////////////////////////////////////////////////////////////
    void addOptionList(String s, Vector v)
    void addResultSet(String s, ServerResultSet serverresultset)

    // Remaining methods in alphabetical order
    String evalIdcScp(String s) throws ContentServerException

    // If the flag is true it means you have already wrapped the String in <$$> offsets
    String evalIdcScp(String s, boolean flag)throws ContentServerException
    String evalResInc(String s) throws ContentServerException

    // This is the long hand version of evalIdcScp, just use evalIdcScp to save some processing
    String evaluateIdocScript(String s)throws ContentServerException
    String evaluateResourceInclude(String s) throws ContentServerException
    void executeService()throws ContentServerException
    Object getCachedObject(String s)
    ServerResultSet getCurrentActiveResultSet()
    Properties getEnvironment()
    String getEnvironmentValue(String s)
    String getLocal(String s)
    Properties getLocalData()
    Vector getOptionList(String s)
    Enumeration getOptionLists()
    ServerResultSet getResultSet(String s)
    Enumeration getResultSetList()
    void parseExecuteService(String s) throws ContentServerException
    void parseExecuteService(String s, char c, char c1)throws ContentServerException
    void putLocal(String s, String s1)
    void removeLocal(String s)
    ServerResultSet removeResultSet(String s)
    void setCachedObject(String s, Object obj)
    void setEnvironment(Properties p)
    void setEnvironmentValue(String s, String s1)
    void setLocalData(Properties p)
}
Monday, August 11, 2008 9:49:04 AM (Central Daylight Time, UTC-05:00)  #    Comments [0]   Oracle WCM  | 
# Wednesday, August 06, 2008

Just a quick note that SQL Server 2008 RTM'ed today.  Read about it here.

At this point, other than some general snooping around, I am wondering how the FILESTREAM feature of SQL Server 2008 compares to the Secure Files feature of Oracle 11g Database. From the Content Server view, how does this or would this affect the File Store Provider? I know, I know, so many questions and no answers. Sorry!

For a fairly in depth post on how Oracle UCM File Store Provider works with Oracle 11g Database and a little more background on the whole thing it is worth checking out an older post over at David Roe's blog.

Wednesday, August 06, 2008 10:18:22 PM (Central Daylight Time, UTC-05:00)  #    Comments [0]   Mindlessness  | 
# Monday, August 04, 2008
If you have not had a chance to check out the latest iteration of the Web Content Management offering from Oracle you are missing out. From a development point of view this is the most flexible version yet, and from the developer perspective it is certainly the most full of promise. There are at least three features of this release that can via for a compelling reason to upgrade.
Monday, August 04, 2008 8:01:49 AM (Central Daylight Time, UTC-05:00)  #    Comments [3]   Oracle WCM  | 
# Thursday, July 31, 2008

This is just a quick introduction to batch loading content into content server with the Batch Loader application. The application can be run from the command line as well as in graphical mode. I normally run it in graphical mode.

I also like to put the check mark in the box to produce an errors file. This file is kind of neat, if anything fails it is placed in that file where you can tweak the metadata and then point batch loader at that file to attempt loading all the content that failed to load. Why might things fail? Perhaps you forgot one of the required fields like dSecurityGroup or perhaps you performed a check-in using a particular metadata value that did not exist in a validated list.

Usually you will need to add a setting to the intradoc.cfg file called Batch Loader User Name. This setting in your configuration might look like this:

BatchLoaderUserName=sysadmin 

I am sure you could come up with better values to put in this field besides “sysadmin”, but for the sake of this demonstration/test this should get you running pretty easily.

NOTE: intradoc.cfg, not config.cfg.

Now you must construct the batch load file. Nothing scary here, just a text file. This file contains key=value pairs one to a line of metadata and values and uses hash/pound characters (#) to begin lines that are comments, like this:

# This is a comment
Action=insert
dDocType=ADCCT
dDocTitle=Product Details
dDocAuthor=sysadmin
dSecurityGroup=Public
primaryFile=<path to file>
dInDate=7/23/2008
dDocName=TestContentID
<<EOD>>

What if you wanted to perform a metadata only check in? Try something like this:

# This is a comment
Action=insert
dDocType=ADCCT
dDocTitle=Product Details
dDocAuthor=sysadmin
dSecurityGroup=Public
#primaryFile=<path to file>
dInDate=7/23/2008
dDocName=TestContentID
createPrimaryMetaFile=true
<<EOD>>
Thursday, July 31, 2008 8:25:58 AM (Central Daylight Time, UTC-05:00)  #    Comments [0]   Oracle UCM  | 
# Monday, July 28, 2008

Sometimes we encounter the need to perform a search in content server that requires a lot of work with the <OR> query operator. Between that and a few other variables it might be possible to craft a query that is too long for content server. This happens especially with generated queries. If you are using universal query syntax or a verity engine for your search engine you might also encounter this. If the data you are searching on is metadata based you might be better off temporarily switching over to a database based search on the fly to find your results. By adding this setting to the query string you can change how content server interprets your search:

SearchQueryFormat=DATABASE

In most installations the Search Query Format setting will default to UNIVESAL. Now that you have switched over to a database based search you can set your query string using the IN operator for a much shorter query converting from something like this:

QueryText=xType <MATCHES> `A` <OR> xType <MATCHES> `B` <OR> xType <MATCHES> `C` <OR> xType <MATCHES> `D`

Into:

QueryText=xType IN (‘A’, ‘B’, ‘C’, ‘D’)

If you’re on a Database Full Text setup to start with you can still do this type of thing AND use full text like this:

QueryText=( xType IN (‘A’, ‘B’, ‘C’, ‘D’)) and  (<ftx>keyword</ftx>)

Perhaps the best thing you can do is at least take a moment to evaluate why you must have so much “or” based logic in your query in the first place. Or is almost always one of the most costly instructions.

Monday, July 28, 2008 5:50:13 AM (Central Daylight Time, UTC-05:00)  #    Comments [1]   Oracle UCM  | 
# Thursday, July 24, 2008

Alex Suhre just posted to the Oracle ECM Forum a link to a JavaScript based HDA data parser that allows you to paste HDA formatted data into a box and get a more human readable view of that data. It looks nice, and I have tried a few pieces of data in there and it worked well. I have not put it through the paces to see how it handles odd data or characters. It looks like you can download it as well, although you have to supply some information to be able to do so.

Real world applications? Well...not sure just yet, but it is neat, and it is always nice when a tool is turned over for community use.

Thursday, July 24, 2008 5:22:17 PM (Central Daylight Time, UTC-05:00)  #    Comments [0]   Oracle UCM  | 

Over on David Roe’s Blog "Content on Content Management" he has recently posted a pretty good article on the newly added Content Server JCR Repository Adapter. I really liked his post because he presents this with a curious but wary attitude and then goes on to present some of the history of the process and the political landscape this "standard" traversed to get to where it is today.

Why was his general attitude important? Well, he did not just jump right up and say "Hey, look what got published, go use it now because it is simply the best." He begins to present pros and cons about his personal feelings on JSR/JCR process and how vendors can use this as part of their sales pitch and why that is almost comical. Finally, because he presents it with a bit of caution I am a lot more apt to take it seriously.

Why is the history important? Sometimes history is not all that important but sometimes that political/historical take can give you insight into standards that were driven by an agenda that may not be in the best interests of the community as a whole. As an example, look at Microsoft and their OOXML standard. If someone told you OOXML was a standard and you blindly followed it you may wish you had known the back story of that all along, especially if the standards ratification ends up getting overturned later.

To wrap up: great presentation, great insight. Oh, and the topic was interesting too!

Thursday, July 24, 2008 8:24:48 AM (Central Daylight Time, UTC-05:00)  #    Comments [0]   Oracle UCM  | 
# Tuesday, July 22, 2008

If you are trying to squeeze additional performance out of your production servers you might look into adding the setting DisableSharedCacheChecking. This would be placed in your config.cfg file or under general configuration through the admin server. As always, it may help to perform some kind of analysis or metrics gathering prior to adding the configuration and then re-analyze after configuration implementation. What this boils down to is content server watching dynamic html resource includes in components to see if they need to be reloaded.

DisableSharedCacheChecking=true

In other words: if in place on a production server (where you would not be changing includes like you would a development instance) this setting can alleviate a measureable amount of file system activity. This should translate into a performance gain in some fashion.  Or to say this as confusingly as possible: a reduction in performance degradation…I just thought that would be fun to say.

Potential flamebait warning: And as we all know, disks are slooowww. Maybe I just hook the disks up wrong?  I hope I hooked the disks up...

Tuesday, July 22, 2008 7:26:33 AM (Central Daylight Time, UTC-05:00)  #    Comments [0]   Oracle UCM  | 
# Saturday, July 19, 2008

Using "View Server Output" from the admin server can tell you a lot about what is going on inside your content server. The server output can accumulate so much information it can easily be overwhelming. To help with this we are going to take a closer look at the tracing sections and how we can expand the built in list of sections to allow us to trace and troubleshoot the code we build for content server. The information detailed in server output depends on your configuration setup in the System Audit page:

The comma separated list of active tracing sections can be saved into config.cfg under TraceSectionsList. The checkbox next to Full Verbose Tracing would represent TraceIsVerbose in the config.cfg file. Descriptions of these can be found in the IDOC Script Reference Guide. Recall your config.cfg file is in the <install>/config directory, not in the bin directory. The drop down list is filled with sections you can use to narrow or expand your tracing output with.

The server output does not show all activity from all of history. It only displays the most recent activity, and if you are planning on dumping out the full contents of a DataBinder you probably will miss some of the data. On windows, it comes in handy during a full-on-debug-session to add UseRedirectedOutput to your config.cfg file. This will dump the log out to a file on disk. Do not forget to turn this off later or you may run out of disk space or enjoy some decreasing performance metrics.

Excellent, with this basic information under our belt we can now look at how you might add a trace section to that drop down. Say for example you have some code you would like to instrument with tracing so you can see it in server output. Just how might you add your custom-section to the drop down list?

So, having replaced the defaulted information with my specific information I end up with the adjusted resource file looking something like this:

<tr>
    <td>TraceSample</td>
    <td>Example of custom section tracing</td>
    <td>false</td>
</tr>

Having used component manager or component wizard to ENABLE my component (you enabled yours right?) and restarted my content server (you restarted yours right?) I can now see my new custom tracing section in the drop down list in the System Audit page:

Whew. If you have made it this far please stick around a little longer, we are finally ready for the big payoff. We understand tracing now, we understand how to add sections to be traced. So, please, please just tell us how to instrument the code to take advantage of this already! To make use of this in IdocScript use the trace function like this:

IdocScript Tracing

<$trace("message", "#console", "CustomTraceSectionName")$>

So, for the example section I created I would write something like:

<$trace("Trace Test!", "#console", "TraceSample")$>

One word of caution, sometimes when you copy code like this off the web the quotes get out of whack (technical term!). So if you have problems, when you paste this in try retyping the quotes. Or, once installed you could use the test template included in the example component to see how things work.

Java Tracing

If you wanted to use this in Java code you can use SystemUtils.trace("CustomTraceSectionName", "Your Message"); to instrument your Java code for tracing. Inside your Java code you can also take advantage of the "Full Verbose Tracing" checkbox setting by testing the value of SystemUtils.m_verbose, like this:

if (SystemUtils.m_verbose)
{
    SystemUtils.trace("TraceSample", "Tracing from my java code against my custom trace section");
}

You can also dump information about an exception with some code like this:

SystemUtils.traceDumpException("filestore", "Error encountered saving file to file store.", e);

Additional References

IDOCScript Online Reference Guide (HTML Version)
IDOCScript Online Reference Guide (PDF Version)
TracingSample_17JUL2008.zip (Example Component)

Saturday, July 19, 2008 9:27:35 PM (Central Daylight Time, UTC-05:00)  #    Comments [0]   Oracle UCM  | 
Copyright © 2008 Jason Stortz. All rights reserved.