Attn - The correct way to connect to the repository

From iFS Product Management.
Many people appear to be having trouble connecting to the repository and are using the wrong API calls to do. The recommended API calls changed between beta and production. For the production release here is the correct way to connect:
1. Four pieces of information are need to connect to the repository
1. The iFS User Name
2. The iFS User's password
3. The properties file to be used
4. The database password of the user who owns the iFS Schema
This is different from the beta where the database password was hardcoded into the properties file.
Note that any TNSNAMES information is still containing in the databaseURL entry in the properties file.
package ifs.demo.samples;
import oracle.ifs.beans.*;
import oracle.ifs.common.*;
import java.util.Locale;
public class ConnectionTester extends Object {
public static LibrarySession testConnection()
throws IfsException
LibraryService service = new LibraryService();
CleartextCredential me = new CleartextCredential("gking","ifs");
ConnectOptions connect = new ConnectOptions();
connect.setLocale(Locale.getDefault());
connect.setServiceName("IfsDefault");
connect.setServicePassword("manager");
return service.connect(me,connect);
public static void main(String[] args)
try {
LibrarySession ifs = testConnection();
ifs.disconnect();
} catch (IfsException e) {
IfsException.setVerboseMessage(true);
e.printStackTrace();
Note that in this example "gking" is the iFS user name, "ifs" is the gking user's ifs password. "manager" is the password of the database user who owns the iFS Schema.
"IfsDefault" is the server properties file that describes the ifs connection. This file is in called "IfsDefault.properties" and is located in the package oracle.ifs.server.properties". This means that the folder that contains the 'oracle' folder that is the root of this package must be referenced in the class path when running this example.
Note, if you use the older, 3 argument form of the connect you will get an unable to connect exception as the iFS will not have the Schema Password.
null

When I run the example below on Solaris (after setting the CLASSPATH etc., I get a oracle.ifs.common.IfsException: IFS-21008: Login Failure
oracle.ifs.common.IfsException: IFS-10170: Invalid name/credential.
(I am providing all 4 pieces of information for connecting)
When using the web interface the same userid and password work fine (system/manager).
Please help.....
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Mark_d_Drake ():
From iFS Product Management.
Many people appear to be having trouble connecting to the repository and are using the wrong API calls to do. The recommended API calls changed between beta and production. For the production release here is the correct way to connect:
1. Four pieces of information are need to connect to the repository
1. The iFS User Name
2. The iFS User's password
3. The properties file to be used
4. The database password of the user who owns the iFS Schema
This is different from the beta where the database password was hardcoded into the properties file.
Note that any TNSNAMES information is still containing in the databaseURL entry in the properties file.
package ifs.demo.samples;
import oracle.ifs.beans.*;
import oracle.ifs.common.*;
import java.util.Locale;
public class ConnectionTester extends Object {
public static LibrarySession testConnection()
throws IfsException
LibraryService service = new LibraryService();
CleartextCredential me = new CleartextCredential("gking","ifs");
ConnectOptions connect = new ConnectOptions();
connect.setLocale(Locale.getDefault());
connect.setServiceName("IfsDefault");
connect.setServicePassword("manager");
return service.connect(me,connect);
public static void main(String[] args)
try {
LibrarySession ifs = testConnection();
ifs.disconnect();
} catch (IfsException e) {
IfsException.setVerboseMessage(true);
e.printStackTrace();
Note that in this example "gking" is the iFS user name, "ifs" is the gking user's ifs password. "manager" is the password of the database user who owns the iFS Schema.
"IfsDefault" is the server properties file that describes the ifs connection. This file is in called "IfsDefault.properties" and is located in the package oracle.ifs.server.properties". This means that the folder that contains the 'oracle' folder that is the root of this package must be referenced in the class path when running this example.
Note, if you use the older, 3 argument form of the connect you will get an unable to connect exception as the iFS will not have the Schema Password.<HR></BLOCKQUOTE>
null

Similar Messages

  • How is the best way to connect to the Database ?

    I just have a question regarding to the connection to the Oracle DB.
    Every time I create a new JSP I am writing java code such as:
    Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    conn = DriverManager.getConnection("jdbc:oracle:thin:@host:1521:DB",
    "user",
    "pwd");
    Is there a way I can reuse the connection that we create on JDeveloper on the tab Connections, under the Database node ?
    Because I would like to centralized more the way how I connect to DB.
    Thanks!
    Giovani

    That is a nice solution, but only works if you use embedded OC4J, if not you must define datasources, maybe in standalone OC4J, OAS, JBoss, etc
    this is because the embedded OC4J automatically create datasources if it sees database connectiones created through Connections Tab

  • What's the best way to connect to the internet wirelessly?

    I have DSL (ethernet modem) and a Netgear Router(WGR614 v5). I have tried to connect to the internet. But No luck...Thanks!
    Please let me know if I should connect through Airport or other?

    yes, the airport card should be enabled in the network settings in network preferences. have you tried contacting netgear to verify what settings you need?? also, you may need a firmware update for your router. another thing to do if your settings are correct, but still not working, then simply power cycle the modem and the router. you could also reset router and modem, make a new location in the network settings, and then put in your settings again. make sure you keep your setting information written down. another thing you could try is pulling the /library/preferences/system configuration folder to the desktop. this wipes out the network settings completely. then create a new location and put in the settings. if this gets it working, then throw the folder in the trash. if not, then put it back in the original place and replace the copy with the older version. [ 8 ) ]

  • What is the correct way to dynamically change the View?

    hi @,
    In my application I have a radiobuttonbyKey UI element and based upon the key I have to hide and/or show a particular UI combination placed in the group UI element basically dynamicallly modifying the view.
    I have 2 option one on radio button action I will change the visibilkity property of the group or in the wdModifyView method of the View.
    I want to know which is the best way in such situation as per MVC concepts to dynamically modify view in UI action or in wdModifyView method.
    Regards,
    Amit

    I would just bind the "visible"-property of the Group to a context attribute (DDIC type "Visibility") and set the value of that attribute from the onSelect-handler of the drop-down list. No need for code in wdDoModifyView().
    Armin

  • What is the correct way of quieting down the CPU fan?

    Hello,
    Let me first ask for recomendations on an aftermarket CPU Heatsink and Fan to replace the stock one on my AMD x4 965 Black edition CPU please, My profile on this forum has my computers equipment and case etc.  But if you need more info please just ask..
    Would somebody please give me instructions on how to make the stock CPU cooling fan run at a more appropriate RPM when at idle and or when running with a load on it please.
    The stock CPU cooling fan usually runs up there at about 5,000 to 5,500 CPM even when at idle and it's seriously insanely loud, too loud to be sitting next to it and trying to concentrate on work or even playing a game.
    I've been loading up the Overclockers Center program and choosing the default profile since that seems to have the CPU fan set to around 3500 RPM which produces an acceptable noise level for the fan.  But I figure that having to load up Overclockers Center program and choosing a profile each time I load my computer is probably not the way I should be doing it, so if somebody wouldn't mind, please explain what I need to set in the Bios or elsewhere so that the CPU cooling fan is not blowing my head off with noise all the time.
    Thanks

    Hello
    1-This mobo is strong enough to support such a heavy coolers.Now i have i installed TUNIQ TOWER EXTREM( because of porformance/price here) that is as heavy as v8. although the company dosnt gauranty the failure but it works very well on my case and i rotate and opening the case  many times for some experiments!!
    2- ZALMAN is a famous cooler producer.I said the rules for choosing a cooler . You can buy one of them .The reviews on net can help you for best choise.BUt v8 is a good proven cooler because the more surface that has and material and big fan.although i didnt have another choice in IRAN.You may find so better coolers.
    the fluid mechanic rules say that the surface-material-shape of heat sinks and temperature-velocity-amount of air that moves on the heat sinks are the parameters of a heat sink.
    i have a bad experience.In my old case with P4 3 GHZ i bought a good cooler from THERMALTAKE .But the fans is rotating very much and made noise. There was some truth that i didnt mentioned.
    The cpu is produce a lot of heat ( more than phenom) and  the fan is 10 cmm i think . I replaced the fan with a 12 cmm fan but the system in loads crashed. The heat sink designed for such a fan and it must rotate very much to cool cpu .12 cm fans cant go beyond 2000 rpm i think and this amount of air wasnt enough for cooling.
    3- you have a lot of wind in your case!!. I dont know that greater fan than 12 cm is safe because they use more current .But 8 and 12 cm fans works very well with onboard ports and SPEEDFAN program.
    After all cooling and making the pc make less noise is a long story .You must have a target . There is a limit that you cant go beyond that so i think you must have a plan and use your money and time on it.
    For my new system i had a dream: most powerful-silent-upgradable system so i choosed these parts:
    POWER=CM SILENT PRO- for the design and big fan that they have.
    CPU=ATHLON II 635 -I knew that phenom is very powerful but make more heat so i used this cpu and have plan for upgrading with a 6 core cpu.
    VGA= 1-GIGABYTE 9800GT SILENT
             2-ZOTAC 9800GT SYNERGY
    choosing a gpu was very hard. 9800gt silent was the most powerful silent cpu that i could buy. but for future i bought a zotac. because it has a single cooler and dosnt occupy a PCI slot that i need.
    you may say why you dont buy another 9800 silent? because this card is warm in loads and i had a fear two of them in a case may harm them. I count on HYBRID SLI technology that could shut down the second card but it is not working and i am a little disappoint .
    two 9800gt in sli have as power as a GTS 270 in reviews.
    CPU COOLER=TUNIQ TOWER EXTREM- According to my counts cooler was silent in ideal but in loads it was noisy so i replaced that
    MOBO=NF980-G65-It uses the last chipset from nvidia with sli enabled and ddr3 and phenomii x6 support. (The mobo is hot. According to some reviews it is cooler than AMD chipset motherboards and faster but i hope it was cooler)
    Good luck

  • What is the correct way to upgrade 5.0.4 to 5.1 Universal?

    I just received Final Cut Studio Universal, and I have Final Cut Pro 5.0.4 installed what is the correct way to upgrade all the Final Cut Studio applications? Do install over or delete each application and then reinstall?
    As always thanks in advance for reading and replying to my Post,
    Sebastian

    WHEN I do it, I'm going to archive what's necessary and desirable to keep, erase my hard drive, reinstall Tiger, do the upgrades, then install 5.1 clean and do the upgrades.
    Might sound like overkill, but I really love a clean, fast machine and nothing does it better!

  • My wife has just had a new iPad and while Wifi works fine with it at home, at work it will not connect to the Wifi despite the correct password being entered. The 'waiting wheel' simply goes round and round next to the Wifi network attempting connection.

    My wife has just had a new iPad and while the Wifi works fine at home, at work she is unable to connect after entering the correct password etc. The 'waiting wheel' simply spins next to the network attempting to connect. The iPad version is 5.1.1 and not the IOS 6 which seems to be problematic on the Wifi front. To add to the mystery my own iPad connects fine to my wife's place of work. Is it possible to take the manual settings from mine and connect that way? Or any other suggestions?

    When your device is trying to connect to the work Wi-Fi network, go to Settings > Wi-Fi > then tap on the name of the Netowrk that she is having trouble with. Then tap on forget this network. Let the device attempt to connect again and make absolutely sure she is trying to connect to the work network and not a nearby network, then make absolutely sure the password is entered correctly.

  • What is the best way to connect a firewall cluster to a VPC domain

    Hi All
    Can anyone help me decide what is the best way to connect a firewall cluster to a VDC running in a pair of N7K's which is a VPC domain?  
    Can I configure a VLAN interface on each VDC and use HSRP?  I was planning on presenting one 10GB cable from each VDC to each firewall.  Would this work OK?  HSRP traffic will go across the VPC peer link correct?
    thanks all

    No, but the one caveat is vpc orphan ports. If the vpc link between the nexus switches fails for any reason, all the vpc ports on the vpc secondary switch will be forced down. So it's recommended to connect single port devices to the primary vpc switch so the connections stay up. But if you're ok with that, then I don't see any problems.
    You have a few options, one would be to run a separate link between your nexus switches for non-vpc vlans. These vlans would not be allowed over the vpc peer-link, or forwarded out vpc's.
    See here page 49 :
    http://www.cisco.com/c/dam/en/us/td/docs/switches/datacenter/sw/design/vpc_design/vpc_best_practices_design_guide.pdf

  • Is there one tell  me the correct way to access remote SQL server

    Hi
    I have tried to access a remote SQL server by many ways but all failed
    here is my trying :
    String driver = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
    String url= "jdbc:microsoft:sqlserver://217.52.98.102:1433";
    Class.forName(driver);
    Connection conn = DriverManager.getConnection(url,"sa"," " );
    String selectStr = "select * from FleetWatch..table_name";
    Statement st = conn.createStatement();
    ResultSet rs = st.executeQuery(selectStr);
    DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver());
    // connect to the DB by using the driver.
    String connString = "217.52.98.102:1433;databasename=FleetWatch";
    String strDBConnect = "jdbc:microsoft:sqlserver://" + connString;
    conn = DriverManager.getConnection(strDBConnect, "sa", "");
    String driver = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
    Class driverClass = Class.forName(driver, true, jdbcLoader);
    Driver currDriver = (Driver)driverClass.newInstance();
    Properties prop = new Properties();
    prop.setProperty("sa", (String)paras.get("sa");
    prop.setProperty("password", (String)paras.get(" ");
    String url= "jdbc:microsoft:sqlserver://217.52.98.102:1433";
    conn = currDriver.connect((String)paras.get(url, prop);
    pls tell if you know the correct way to access a remote sql server and
    access it befor tell me its step to ensure it's connect

    String driver = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
    String url= "jdbc:microsoft:sqlserver://your servername:1433";
    Class.forName(driver);
    Connection conn = DriverManager.getConnection(url,"username ","password " );
    this user name and password may be diff becoz if u have only sql authentication then u have to know that user name or it can have windows nt authentication so if it is so then no probs can use ur windows nt login..
    know the server name where ur sqlserver is connected to.
    set the classpath for the sqlserverdrivers jar files which u have downloaded where ur working on.
    then it works
    i did the same and worked for me.
    try it.

  • My Ipad has stopped receiving emails today. It has IOS7 on it. The settings are correct but says "connection to the server failed" help!

    My Ipad has stopped receiving emails today. It has IOS7 on it. The settings are correct but says "connection to the server failed" help!
    It is the same accout that has been working find for years and just after I updated the software this has happened. My Mac is still receiving and sending via Outlook with the same account and settings. My Iphone 5C has also stopped and I tried deleting the account and adding again (via exchange as it's an exchange accout) the same way I always do and it won't even recognise it to add the settings.
    So annoying. Can anyone help?

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    iPad Mail
    http://www.apple.com/support/ipad/mail/
     Cheers, Tom

  • My parent's IPad is SUPER outdated and I'm trying to buy an app for my brother for Christmas. However, the computer that was connected to the IPAD, we no longer have. So is there any way I can update it on my mac without erasing all the photos and videos?

    My parent's IPad is SUPER outdated and I'm trying to buy an app for my brother for Christmas. However, I can't buy the app because it says we need to update the software. The thing is, the computer that was connected to the IPAD, we no longer have. So is there any way I can update it on my mac without erasing all the photos and videos?

    HELPPP ME BEFORE CHRISTMASS MORNING!!

  • What is the correct way to set up a new Mac

    A friend of mine recently migrated from Windows and bought himself an iMac. He got the local Apple store to set up his iMac and migrate his data from his Windows to his iMac. I was  recently helping him set up a few a additional things on his iMac and was supprised to see how the Apple store had set up the machine.
    There was only one account set up on the iMac and all of the user data had been loaded into this admin account. Now I've only been a Mac user for about 5 years, but I was always taught create an admin account with no data on it and then set up a separate user account(s) which contain all the user data and these are used by the users to log in.
    Now my question is who is right the Apple shop or me? I would e intertested to hear any experts views on the correct way to set up an OSX machine. 

    Both of you. Either way is acceptable. However, for a single user machine there's really no need to have more than the admin account.

  • I would like to read a text file in which the decimal numbers are using dots instead of commas. Is there a way of converting this in labVIEW, or how can I get the program to enterpret the figures in the correct way?

    The program doest enterpret my figures from the text file in the correct way since the numbers contain dots instead of commas. Is there a way to fix this in labVIEW, or do I have to change the files before reading them in the program? Thanks beforehend!

    You must go in the labview option menu, you can select 'use the local
    separator' in the front side submenu (LV6i).
    If you use the "From Exponential/Fract/Eng" vi, you are able to select this
    opton (with a boolean) without changing the labview parameters.
    (sorry for my english)
    Lange Jerome
    FRANCE
    "Nina" a ecrit dans le message news:
    [email protected]..
    > I would like to read a text file in which the decimal numbers are
    > using dots instead of commas. Is there a way of converting this in
    > labVIEW, or how can I get the program to enterpret the figures in the
    > correct way?
    >
    > The program doest enterpret my figures from the text file in the
    > correct way since the numbers contain dots instea
    d of commas. Is there
    > a way to fix this in labVIEW, or do I have to change the files before
    > reading them in the program? Thanks beforehend!

  • I have a macbook air late 2010 and keep getting a warning that my hard drive is full and to delete things so I purchased a external hard drive (1TB) but I'm just not sure what the correct way to transfer and store files to the external drive is. First MAC

    I purchased a macbook air about 5 months ago and lately i keep recieving a warning that the hard drive or disk is full and that I will need to move items to trash in order to free up space on it. I purchased a external hard drive 1 TB but I'm very new to mac and ios and unsure as to how I'm suppose to transfer my files (video, pics, music etc.) from my mac over to the external hard drive in the correct way so I won't end up deleting them permenately or screwing anything up with my mac as far as the applications and programs being able to run. Am I supposed to just copy to the external hard drive and then move to and empty the trash? That's pretty much all I could come up with, but then what if i need or want to access that file again at a later time. Also, I have an i Phone and i pad so with i cloud it automatically syncs all my purcheses and if i delete something from itunes on my mac it deletes from my ipad.
    I'd appreciate any kind of input i think im just a little lost here. I have to say i love my Mac and wouldn't trade it for anything (except maybe a macbook pro w/more memory)... Is there something I'm missing???

    To free up hard drive space the best bet is to move data files that you don't need access to all the time. Likely candidates are music, video, and photos. Things like word processing and spreadsheet files can also be moved but they tend not to be very large and so don't free up much space. The problem with moving the above mentioned files is that iTunes and iPhoto need to know where the files are stored.
    Here's an article explaining how to move the iTunes folder. You can move the iPhoto library using the Finder but there is a slight complication. Start iPhoto, open the Preferences and click on the Advanced tab. The first option is "Copy items to the iPhoto Library". If this option is checked, copy the iPhoto library to your external folder (drag it from the Pictures folder to your external drive) and then delete it from your Picture folder. If this option is not checked, it is a bit more complicated and we'll need to talk a bit.

  • Is there a way to prevent AnyConnect from caching the username of the last person who connected to the VPN?

    Is there a way to prevent AnyConnect from caching the username of the last  person who connected to the VPN?

    This can be done via specifying the "RestrictPreferenceCaching" parameter as described in the Anyconnect Admin Guide here:
    By design, AnyConnect does not cache sensitive information to disk. Enabling this parameter extends this policy to any type of user information stored in the AnyConnect preferences.
    •Credentials—The user name and second user name are not cached.
    •Thumbprints—The client and server certificate thumbprints are not cached.
    •CredentialsAndThumbprints—Certificate thumbprints and user names are not cached.
    •All—No automatic preferences are cached.
    •false—All preferences are written to disk (default—behavior consistent with AnyConnect 2.3 and earlier).

Maybe you are looking for