IFS and iAS (OAS)

We currently use OAS as our web server. All pages are dynamically generated and stored on our Oracle 8i database. My question is this: Is there a way to connect from my OAS web page to iFS and be authenticated to iFS with the username/password combination I entered to access the web site?

Joe
Here's the JspLogin class I used in a demo once. It implements the IfsHttpLogin interface.
Once you've instantiated it you'll need to connect to the repository and obtain a LibrarySession interface and then invoke the setSession() method on the JspLogin object.
The code will look something like this
LibraryService ifsService = new LibraryService();
CleartextCredential me = new CleartextCredential(username,password);
ConnectOptions connect = new ConnectOptions();
connect.setLocale(Locale.getDefault());
connect.setServiceName(service);
connect.setServicePassword(schemaPassword);
LibrarySession ifsSession = ifsService.connect(me,connect);
if (DEBUG) {
Alert.log("JspUtilities.obtainSession: Session Created.");
JspLogin login = new JspLogin();
login.setSession(ifsSession);
httpSession.putValue(IFSHTTPLOGIN,login);
Note IFSHTTPLOGIN is defined as follows
public static final String IFSHTTPLOGIN = "IfsHttpLogin";
I used this code once in a demo. I've not tested that the Login object this creates will allow the complete iFS WebUI to run. This code is definitely supplied as is, with no warranties or anything else for that matter.
Regards
MDD
package ifs.demo.common.jsp;
import oracle.ifs.beans.DirectoryUser;
import oracle.ifs.beans.FolderPathResolver;
import oracle.ifs.beans.LibrarySession;
import oracle.ifs.beans.LibraryService;
import oracle.ifs.common.IfsException;
import oracle.ifs.adk.security.IfsHttpLogin;
import javax.servlet.http.HttpSessionBindingListener;
import javax.servlet.http.HttpSessionBindingEvent;
public class JspLogin implements IfsHttpLogin
private LibrarySession m_IfsSession;
private FolderPathResolver m_Resolver;
// Default constructor required by the jsp spec for the USEBEAN tag
public JspLogin() throws IfsException
public void setSession(LibrarySession ifsSession)
throws IfsException
m_IfsSession = ifsSession;
m_Resolver = new FolderPathResolver(ifsSession);
m_Resolver.setRootFolder();
public LibrarySession getSession()
return m_IfsSession;
public FolderPathResolver getResolver()
return m_Resolver;
public void valueBound(HttpSessionBindingEvent parm1) {
public void valueUnbound(HttpSessionBindingEvent parm1) {
}

Similar Messages

  • How to install iFS and iAS on the same machine?

    I have successfully installed iFS on a Windows NT 4 machine. Now, I would like to install iAS Enterprise Edition on the same machine. The installation guide for iAS says that I should first deinstall all products from the default ORACLE_HOME. I have not found a clue as to what to do if I want to keep the software already installed.
    Would it work if I tried (after installing iAS) re-install iFS using different ORACLE_HOME directory?
    Is there a white paper or any other document that would clear up the issues involved in installing Oracle products in ORACLE_HOME?
    Thanks a lot,
    Marek

    You can install IAS on the same machine that Oracle and IFS are on. Install IAS into a new Oracle Home (i.e. D:\IAS).
    This worked for me.
    I am still waiting to hear how (look for my post about 20 below yours) how to configure IFS to use the Apache Web Server that is part of IAS.
    Good Luck.
    Maybe one of these days Oracle will create an IAS discussion forum. This is my third request and I haven't heard anything back from them yet.
    null

  • Oracle ifs and BEA weblogic

    Oracle ifs and BEA weblogic
    We have one application server with weblogic and and ifs 1.0.9 , and one db server with Oracle 8.1.7.
    with the following configuration:
    Web server
    appl server with weblogic 6.0 and ifs 1.1.9
    Oracle 8i Enterprise with interMedia text
    We need to use the iFS API call for our application.
    As I know, weblogic 6.0 support JDK1.3 but ifs 1.1.9 supports up to JDK1.2.
    Is this configuration possible?
    Any conflict if two version JDK co-exist inside same machine?
    Any suggestion?
    If I separate the appl. server into two machines, that is,
    one server installed with weblogic, the other one installed with ifs.
    How could I make use the ifs API call from appl. server?
    Is there any configuration guides for this setting?
    Thanks a lot.
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Luis:
    The iFS API is 100% pure Java. You can use it from any other Java application, be it JSP, EJB, or a standalone application.
    So it really comes down to the CLASSPATH. The iFS API is split among a set of .jar files, and some of the configuration information is stored in .properties files that are outside of these .jar files. All of this stuff needs to be in the CLASSPATH of whatever JVM is calling the iFS API.
    The iFS API uses the Oracle JDBC driver to communicate with the Oracle database. This is another requirement. You can't use another JDBC driver; you have to use ours.
    So again, it's all about configuration.<HR></BLOCKQUOTE>
    Would you mind to share more detail on configurating weblogic to integrate the iFS API?
    null

  • Transactions accross iFS and 'normal' database

    I want to do a combined transaction where file operations are combined with normal table data transactions - for instance I would like to delete a file and at the same time insert a row in my log-table (this is just an example :-)).
    The documentation is quite unhelpful here as it gives me no description on how to do this. Has anybody out there tries this ?
    Thanks in advance
    Jacob

    Hi,
    Is there a way to do something like this? I need to update a field in another schema on the same database as IFS, based on a action that happens in IFS.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Jacob Due (jcd@ramboll:
    Tkanks for the input but I really want a more general approach :-) - using a trigger will make something happen allways (I might have application functionality that should not trigger any action other than the iFS action), and I really do not like having my application code in database triggers. So what I whish for is that I can somehow have a shared transaction spanning across the iFS and the normal database with full two phase commit.
    <HR></BLOCKQUOTE>
    null

  • EAP-TLS Win2003 CA and IAS...not checking CRL?

    Hi
    I've got EAP-TLS setup and working using Win2003 CA and IAS as the RADIUS backend. I've issued certs to my wireless users, and now I want to revoke a certificate, so in the CA, I revoke the cert and then under Revoked Certs I click on publish...yet the user can still authenticate and communicate. How can I configure the IAS to check the CRL? Thanks

    Hi,
    I'm battling to setup EAP-TLS with AP1200,windows AD 2003 and IAS.Are there any funny tricks in setting up
    EAP-TLS with IAS.
    On the AP1200 I keep getting AAA unsupported.
    regds
    Johnny

  • Why is it that directory server and IAS will not install through a remote Terminal Services session??

     

    Hi,
    I think this can be done in Unix, using telnet, you may log into the
    system and install it.
    Regards
    Raj
    Mozkill Williams wrote:
    why is it that directory server and IAS will not install through a
    remote Terminal Services session??
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Running ifs and ctx as service

    I am trying to run ctx and ifs as a service so that I can log off the administrator. I have created a service using the windows2000 resource toolkit, and start ifs and ctx in a .bat file for the service to run. I added two dependencies to the service: OracleTNSListener and OracleServiceORCL817. I get these errors in the log files:
    **Ctx Error**
    11-14-04 08/27/02 === OCO server startup ===
    11-14-04 08/27/02 Initialized CORE
    11-14-12 08/27/02 === Server failure ===
    11-14-13 08/27/02 DRG-11100: unable to connect to the database
    11-14-13 08/27/02 ORA-12560: TNS:protocol adapter error
    11-14-14 08/27/02 Fail to OCIServerAttach...
    11-14-15 08/27/02 === Server shutting down ===
    **Agents and protocol log **
    Tue Aug 27 11:00:08 CDT 2002
    IfsException in starting ServerManager; FATAL
    oracle.ifs.common.IfsException: IFS-10620: Unable to construct connection pool
    oracle.ifs.common.IfsException: IFS-10633: Unable to create library connection
    oracle.ifs.common.IfsException: IFS-10600: Unable to construct library connection
    java.sql.SQLException: ORA-12560: TNS:protocol adapter error
    Server Manager exiting.
    My question is if it is even possible to do this and if so why don't these start?
    ** File Service runs**
    call c:\oracle\ora817\ifs1.1\bin\ifsstart.bat
    call c:\oracle\ora817\bin\ctxsrv -user ctxsys/ctxsys -log c:\oracle\ifsconfig\ctxm.log
    Urgently need advice.

    If you have database and iFS on one computer, your problem is probably the sequence of starting services.
    You probably don't have database or/and listener started by the time you start iFS.
    Maybe the solution is to modify your scripts to check that database is started or to wait some time before starting iFS.
    Alexandre

  • Slack 9.1  and ias 8i

    i have trouble with slack 9.1 and ias 8i.
    Everything was ok until the system make links (i can get the links done) .
    Then the NetCa is working but the DB is not able to be configurated.
    Some one has any idea about it?

    The disk don have any release.
    and now i tried to intall it on Redhat 9 , but i have another problem (the installer is not running) the problems is 'cuz javam needs glib (olders than Redhat 9).
    Would you mind helping to me?

  • Ias 6.5 and ias 6.5 sp1

    Hi
    Can someone tell me what is the difference between ias 6.5 and ias 6.5 sp1.
    Which is the latest version.
    Reply to ID: [email protected]
    Thanx

    6.5sp1 is the latest varsion.

  • Jdev3.2 and ias: not compatible?

    Jdev3.2 support servlet2.2 api.and ias use apache jserver,which only support servlet 2.0.So our application can't run on ias when
    we update from jdev3.1 to jdev3.2 .But it was well on jdev3.2.
    for example ,with jdev3.2 ,we use session.putValue and getValue to record something,but the session is lost on ias.But it was fine with jdev3.1. So we use Servlet 2.2 api:session.setAttrubute,but it can't run on ias.
    How to slove it? urgent
    regards

    We have tried the ias9i for nt.And the problem is still there:sessionsetAttribute can not run.
    And we know that ias9i still use the jserver ,which just support servlet 2.0 and apache team said they would not update it.
    What's the problem?
    I am using the apache+tomcat.And it is fine.

  • JSP;BC4J;Deploy; Oracle 8i httpd and iAS

    Can anybody tell me the difference between the HTTP server that comes with Oracle 8.1.7 and iAs.
    I have deployed my application to Oracle 8.1.7's HTTP web server without any problems. Is there any reason to go to iAs.
    The HTTP server bundled with Oracle 8.1.7 is also Apache webserver and hence I do not understand what the difference would be with iAs.

    OK. I know it's bad form to reply to your own messages...
    I've found and executed the SQL script but the SELECT statement returns no rows.
    I'm still getting ORA-29554 for a number of classes. A java_pool_size of 120Mb has made no difference. Can anyone suggest any other settings that might be causing the problem.
    Maybe somebody who has successfully deployed BC4J to 8i could post/email me a spool of "show parameters" from server manager....?
    Thanks,
    Rob.
    null

  • Jclient and ias

    I made a local jclient application with bc4j (no ejb) which works fine, now I want to deploy the bc4j (ejb) things to ias. this works too
    but now every time i try to compile the jclient project, jdeveloper makes some jar files of the bc4j components (this takes some minutes). Is this necessary?
    By the making of the ias deployment , jdev also make a application module client file ( i have some client methods). If i try to use this client file in my jclient file it gives an exception. How do i implement this client methods in my jclient project.
    the behavior of the jclient appl. is totally different in local mode and ias mode. I am getting errors like record modified by other user. Is there a whitepaper on this topic.
    Do i need an ias for jclient apps or can I run it on a several machine without the need of an ias/oc4j like the way you run it inside jdeveloper.
    thanks,
    edwin

    I made a local jclient application with bc4j (no ejb)
    which works fine, now I want to deploy the bc4j (ejb)
    things to ias. this works too
    but now every time i try to compile the jclient
    project, jdeveloper makes some jar files of the bc4j
    components (this takes some minutes). Is this
    necessary?When you build a client project for an application in 3 tier mode by default a dependency is setup betwen the client project and the common profile of the middle tier project. The common profile is used to generated the jar containing the files required by the client. Every time you compile the client project this jar is regenerated. As an alternative you can manage this dependency yourself:
    In the client project settings dialog uncheck the common profile dependency. Instead add a new library to the client project which points to the jar produced by the common profile.
    >
    By the making of the ias deployment , jdev also make
    a application module client file ( i have some client
    methods). If i try to use this client file in my
    jclient file it gives an exception. How do i
    implement this client methods in my jclient project.The client file is a proxy that implements the interface containing the exported appmodule methods. The class in internally instantiated by the framework. You should be able to call yor methods by casting the apmodule reference to the custom appmodule interface. See the OnlineOrders\BatchClient sample.
    >
    the behavior of the jclient appl. is totally
    different in local mode and ias mode. I am getting
    errors like record modified by other user. Is there a
    whitepaper on this topic.
    What kind of exceptions? Can you elaborate.
    Do i need an ias for jclient apps or can I run it on
    a several machine without the need of an ias/oc4j
    like the way you run it inside jdeveloper.
    You don't need to deploy the ejb (actually the .ear file containing the ejb) to an ias instance. You can either use the embedded oc4j instance or the external standalone instance. Make sure to use the right config in the JClient application. I don't have the help system handy but I believe these topics are covered in the doc.
    Dhiraj

  • IFS and Excel Documents

    Good Morning,
    I am new to working with iFS. My questions revolves around placing excel documents into iFS. We want to place excel spreadsheets into iFS and then we want to read the data from the excel sheet into the database. Is this possible?

    could you explain exactly what you mean? do you mean parsing the contents of the excel spreadsheet (into CSV for example)?

  • IFS and EJB

    I want to develop an EJB session bean that utilizes the IFS Java API. Is this a supported configuration. Are there any examples of IFS and EJB.
    Thanks,
    Brian
    null

    There are two ways to search by 'section' in XML documents.
    First, if you define an iFS content type whose name and structure matches the schema of your XML document, the iFS SimpleXMLParser will automatically decompose the XML document and store each section as attributes on the iFS object. Refer to the Oracle iFS Developer's Guide for instructions on creating new content types and parsing XML instances.
    Second, you can store XML documents in iFS without parsing the XML using the Web UI upload via browse interface. Oracle iFS 1.0 is configured so that it uses interMedia text to index the XML document. Subsequently, you'll be able to execute content searches for the document using section criteria (e.g. content contains 'interMedia' within 'Title').

  • IFS and Highlight

    Is it possible to create a Highlight for a Context Search within iFS and how i do them?
    I got a SearchResultObject and would like to create and display a highlight on each result object.
    Thanks for all contribute.
    Stefano.

    There are two ways to search by 'section' in XML documents.
    First, if you define an iFS content type whose name and structure matches the schema of your XML document, the iFS SimpleXMLParser will automatically decompose the XML document and store each section as attributes on the iFS object. Refer to the Oracle iFS Developer's Guide for instructions on creating new content types and parsing XML instances.
    Second, you can store XML documents in iFS without parsing the XML using the Web UI upload via browse interface. Oracle iFS 1.0 is configured so that it uses interMedia text to index the XML document. Subsequently, you'll be able to execute content searches for the document using section criteria (e.g. content contains 'interMedia' within 'Title').

Maybe you are looking for

  • Problems with an external hard drive

    Hi Guys, Looking for a bit of help here. I have recently converted to a 13" MBP from a PC. I transferred ALL my photos, files and music from my PC to an external hard drive with the thought of keeping it there and obviously using my Mac to open the f

  • H:selectOneMenu - Update problem through a Java Function

    Hi, I'm designed a little form which has two h:selectOneMenu. <h:form> <h:selectOneMenu id="listas_disponibles"                              value="#{sesion.listaSeleccionada}"                              valueChangeListener="#{sesion.escogerLista}"

  • Grabbing word docs in iPad to print

    How can I convert word docs to PDF for printing out? As the system currently works printed documents are poor. Doesn't recognise bottom and following top margins so rolls over and cuts off a line - perhaps!!

  • Computer Shuts Down When Running Logic

    this just started. while running logic, the computer shuts down to where i can restart it unless i pull plug and let it recycle. a friend of mine thought it was the power supply, possibly the the cpu intense program is too much on p supply. he had me

  • Printing using Reader X

    Hi,      according to http://livedocs.adobe.com/acrobat_sdk/10/Acrobat10_HTMLHelp/IAC_DevApp_Architecture.99.2.h tml#1516071      I should be able to use COM intrefaces to communicate with adobe reader X.     But it looks like it's not working : is t