I have a Java module which i call from my oscript module. From Java module i try to connect to livelink using LAPI? but when i try to fetch the document builder hangs. Can I use LAPI from java module?
"Can I use LAPI from java module?" I have really no clue as lapi from anywhere is just going to try to connect to a thread livelink has.But you are already part of the livelink server process so why the detour ?
I would check if your search services(admin) is firing up unrelated requests to the single thread builder has.Unless you need search to be active I would turn off things I don't need when developing in builder like admin svcs,agents,notifications etc.In desperate cases you can make the livelink service single threaded as well by tweaking the threads in opentext.ini file and running logs to ascertain if you are script crashing somewhere
I have an OSCRIPT module which calls java class (JavaObject package). I want to fetch document content to this java object, i found only 2 ways: first-fetch document to the local drive on server and read this file using standart java methods, second-get document content directly to this java object using LAPI. Second way hangs Builder, if i run server under builder or LiveLink service if run it under service.
I wanted to try this myself for my future endeavours for this I created a simple class file that takes a document and puts it into the ent workspace with a random number so I don't have to sit there and delete them.Then I packaged them into a jar and put it in the right places.My builder hung like you said when it reached the invokeMethod.Then I ran it under services and found that it was creating files as it should.
Now here is a theory that somebody like Chris Webster,Howard Pell or Kyle Swidrovich could answer if they are seeing this.actually any oscript/lapi guys who are interested
My oscript code has a single thread so it started creating the java object. when I told it to
When I invoke the method it did it little realizing that it is calling the livelink server itself(localhost calling localhost) so it is in la la land trying to get a session...
If it could somehow do the invokemethod and return control to the thread then this builder thread would have taken on other calls.Like the BrowserBegone that releases the thread to another one and not frustrate the user
I am going to change my lapi call to another livelink server who has available threads and see if it works via builder and services.Too tired to do it now
Yes Builder will hang only if you are calling yourself in the call,I was able to add thru builder files into another livelink(with services or buiigure outlder) Now why would it hang not a very easy qn for me to f