Connection Strategy

i've got a problem with the speed of connecting to AD servers when the server is not available.
normally when i do a search for a user using the search method on the DirContext class and the server is available it normally everything goes smooth.. what i wanted to do was catch a ConnectException just in case the server I am binding to is not available.. I tried a simple bind :
     String server = "<an IP address, but of course it does not exist or is actually down on the network>";
     string strUrl = "ldap://" + server + "<some valid URL>";
     hUserInfo = new HashMap();
     members = new Vector();
     env = new Hashtable(5, 0.75F);
     env.put("java.naming.ldap.version", "3");
     env.put("java.naming.referral", "throw");
     env.put("java.naming.security.authentication", "simple");
     env.put("java.naming.factory.initial", "com.sun.jndi.ldap.LdapCtxFactory");
     env.put("java.naming.provider.url", strUrl);
     env.put("java.naming.security.principal", strPrincipalName);
     env.put("java.naming.security.credentials", strPrincipalCreds);
     try
         ctx = new InitialDirContext(env);
     catch(NamingException ne)
         System.err.println("Error\t: Naming Exception occured");
         ne.printStackTrace();
     catch(Exception e)
         System.err.println("Error\t: General Exception occured");
         e.printStackTrace();
     }just in case it was going to refuse binding to that server but what happened was it accepted the bind even if the address i was passing was not available. it struck me that the only way was to do a directory search on the server that i binded to. my question is, is there a better way to see if the server is available other than doing a directory search on that server. "better" in terms of on how fast it would return the ConnectException or any exception denoting that the server is not available.. hope you guys could help

Now I know why the ConnectException was happening.. it was trying to look for the address but the server connection timed out:
Error     : Naming Exception occured
javax.naming.CommunicationException: <some IP address>:389 [Root exception is java.net.ConnectException: Connection timed out: connect]
     at com.sun.jndi.ldap.Connection.<init>(Unknown Source)
     at com.sun.jndi.ldap.LdapClient.<init>(Unknown Source)
     at com.sun.jndi.ldap.LdapClient.getInstance(Unknown Source)
     at com.sun.jndi.ldap.LdapCtx.connect(Unknown Source)
     at com.sun.jndi.ldap.LdapCtx.<init>(Unknown Source)
     at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(Unknown Source)
     at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(Unknown Source)
     at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(Unknown Source)
     at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(Unknown Source)
     at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
     at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
     at javax.naming.InitialContext.init(Unknown Source)
     at javax.naming.InitialContext.<init>(Unknown Source)
     at javax.naming.directory.InitialDirContext.<init>(Unknown Source)
     at com.pwdReset.unlock.ADUnlock.<init>(ADUnlock.java:98)
     at com.pwdReset.unlock.TestADUnlock.main(TestADUnlock.java:30)
Caused by: java.net.ConnectException: Connection timed out: connect
     at java.net.PlainSocketImpl.socketConnect(Native Method)
     at java.net.PlainSocketImpl.doConnect(Unknown Source)
     at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
     at java.net.PlainSocketImpl.connect(Unknown Source)
     at java.net.Socket.connect(Unknown Source)
     at java.net.Socket.connect(Unknown Source)
     at java.net.Socket.<init>(Unknown Source)
     at java.net.Socket.<init>(Unknown Source)
     at com.sun.jndi.ldap.Connection.createSocket(Unknown Source)
     ... 16 moreso i guess the right exception I am looking for is not probably ConnectException
or ConnectException is the right one but I'm trying to find it the wrong way by letting it timeout...

Similar Messages

  • PHP database connection strategy

    Hello everyone,
    I'm currently writing a website with PHP and MySQL.
    I would like to know which strategy you choose to manage database connection.
    I did not find any way to have a database connection pooling in PHP like I usally use in J2EE.
    My current strategy is some kind of singleton my front controller will share with all "sub controller".
    So, to render a page, I'll have a single static connection ( using PDO ). Opened at the beginning and closed at the end of the page.
    So, what do you use in your PHP webapps?
    Regards.

    zenlord wrote:
    litemotiv wrote:Open just on the start of the page though, collect all data in an object, close the connection and then print out.
    Care to give me an example, or point me to an online example of this?
    I'm merely an amateur, and don't understand things like 'singletons' - I do think that I currently code in MVC, but I would like to know more about design patterns. When it comes to db-connections, I think I open the connection, load all the needed data and close the connection. Don't know whether I 'collect the data in an object', though
    If you search a very good book, my suggestion is:
    http://www.amazon.com/Objects-Patterns- … 982&sr=8-1
    Seriouly, a must have!
    litemotiv wrote:Open just on the start of the page though, collect all data in an object, close the connection and then print out.
    Great to see I'm not completely wrong
    Nagian wrote:but have you already read the Zend Framework Quickstart?
    Yep, I know Zend. But I want to create something without any framework to learn and improve my php knowledge.

  • Best Database connection strategy.

    Hi all for a serious question I am curious if someone can point me to a good article in regards to database connectivity. I am able to get a connection from a datasource, and a connection that works, but I am curious what the best practice would be in regards to accessing the db in other classes.
    What my question boils down to is at what point should a connection be passes ?
    Should I be calling a get connection method that creates and passes a valid connection or should I be calling a get datasource method and create the connection locally ? (Bad examples but I hope they convey what I am asking)
    I am using connection pooling that is supplied by my application server.

    What my question boils down to is at what point
    should a connection be passes ?NO! ... External resources should not be passed from one method to another. They should be closed in the method where they are created.
    Should I be calling a get connection method that
    creates and passes a valid connection or should I be
    calling a get datasource method and create the
    connection locally ? (Bad examples but I hope they
    convey what I am asking)I find that a Singleton that knows how to fetch a connection from the connection pool and how to quiesce the connection back to the pool is efficient both in terms of operation and code, but it's not the only way.
    I am using connection pooling that is supplied by my
    application server.There are lots of strategies for fetching database connections, the main point I would want you to get from this is this; Open a connection in a method, use it in that method only, release it (and any other resources initialized in that method) before leaving the method.
    Regards,
    PS

  • Connect shape button is disabled in strategy map (performancepoint, dashboard designer)

    Hi,
    I am creating a dashboard using Dashboard designer, that consists of a scorecard with KPI's and a Strategy map report. I am trying to connect strategy map shapes to the KPI's, but the connect button in the Connect Shape dialog is inactive.
    It was active before, I mean I have built some sample strategy map and connected its shapes to the KPI's (you can see green circles bellow). Now when I open that report and try to connect the shapes I can't do it. I don't understand what has happened and
    I am so frustrated by that problem since no error message is displayed and I have no clue where to look for a problem.
    I have tried to create this report from scratch, i.e. I have repeated all the steps (even from sharepoint site for business intelligence creation) from begining. No luck.
    Please, help :)

    Maybe its to late, but I think that the problem is that you need to select just one shape before trying to connect.
    Good luck

  • Connecting multiple hard drives - best method?

    I have 4 external hard drives and I was wondering what was a better connection strategy for connecting them to my imac:
    1. Connect them all via usb to a usb hub and then the hub connected directly to one usb port on my imac. OR
    2. Connect one of the hard drives to a firewire 800 port on my imac and the rest of the hard drives daisy chained to that drive one after another.
    I've read that method 2 is best for speed but I've found that the drives will unmount a lot when I've don e it this way and the USB connection seems more stable. I'll be storing heavily accessed media on the external drives - music, video and photos, and the drives range in size from 750 GB to 400 GB.
    Thanks!!!

    I wonder why my hardrives keep un-mounting. It seems the cables are real fussy - meaning if I wiggle them a slight amount they unmount and then I can sometimes wiggle them around and they re-mount. Sometimes I can't get them to remount until I reboot a few times and yank in and out the cable. I'm wondering if it's the cables or the actual physical ports. The funny thing is that this un-mounting happens to all the drives sort of randomly - but more often to the third and fourth in the chain. They are all Weibetech hard drive enclosures with Seagate drives. Perhaps I have a bad FW800 port on my computer itself? IS there any way to test any of this?
    Back to the first question - is method two the best solution from a speed and data transfer perspective or from a stability perspective?
    Thanks!

  • Connection to SYBASE IQ / Generate Report Analysis with geographic maps

    Hi Gurus,
       Please I appreciate your help with the two points below :
       --> Is tihs possibile to access a Sybase IQ database in the PAS Model ?  We want to connect to this kind of the database and we are afraid that any restriction could appear connecting this DB (  ths most common database are Oracle , SQL Server ETC )
    --> Is there any way in SSM to generate reports / views using geographic maps, as it is used in anothers tools as Xcelsius ( I tried a lot of options but untill now without success )
      Thanks for attentiion ,
       Christian

    Christian,
    PAS can access any ODBC compliant db. You would need to create an ODBC connection to Sybase IQ and then create a Link ID in PAS. Then build your model to connect to that database and pull data from its tables.
    Strategy Management capability works off of simple templates for reports and so does not have the ability to create a reports incorporating geographic maps.
    If you are using SSM 7.5, you can connect Strategy Management data via web services to Xcelsius and create your geographic map within Xcelsius. After creation, save the Xcelsius dashboard as a flash file and you can import that flash file into Strategy Management as External Content visible on the Home Page.
    The Administrator interface has an area to Configure Home Page based on Application Groups. You can upload and add external content, like a flash file, a pdf, or word doc that would appear on the End User's homepage.
    Regards,
    Bob

  • BODI- Native Connection with Sybase IQ

    Hi,
    We are using BODI 11.7.3.3 with repository as SYBASE ASE 15.0.
    We are using Sybase IQ 12.6 for Target Database. The datastores for Target database use ODBC Connections created on Designer machines.
    Where should the connection information for Target Database should be configured at Server level i.e. where Job server is configured
    Thanks in Advance!!
    Regards,
    Deepti

    Christian,
    PAS can access any ODBC compliant db. You would need to create an ODBC connection to Sybase IQ and then create a Link ID in PAS. Then build your model to connect to that database and pull data from its tables.
    Strategy Management capability works off of simple templates for reports and so does not have the ability to create a reports incorporating geographic maps.
    If you are using SSM 7.5, you can connect Strategy Management data via web services to Xcelsius and create your geographic map within Xcelsius. After creation, save the Xcelsius dashboard as a flash file and you can import that flash file into Strategy Management as External Content visible on the Home Page.
    The Administrator interface has an area to Configure Home Page based on Application Groups. You can upload and add external content, like a flash file, a pdf, or word doc that would appear on the End User's homepage.
    Regards,
    Bob

  • Microsoft Access and Oracle Forms

    Hello All,
    I have a requirement pertaining to fetching data from Microsoft Access Tables from an Oracle Form and posting that data in an oracle Database 9i eventually.The exact entities from Access Databse needs to be replicated with data upload through Forms9i...
    Please send me the technology aspects of this and an insight how this can be achieved...
    Regards,
    Kapil Uppal

    Kapil,
    If I remember well, there exists a database migration assistant to turn Access databases to Oracle.
    However, Forms9i no longer has an Oracle Call Adapter (OCA)component which would be required to make Forms9i work with ODBC databases. Oracle's database connect strategy is to use gateways instead.
    Removing OCA could be a hot topic to discuss, but the decision made was based on the assumption that Forms9i is Web only and therefore no client side databases are used.
    Not sure if Microsoft Access allows you to perform JDBC connects, as this would be an option to get data into Oracle Forms (requires some coding though).
    Fran

  • Another controversy: Where to store common application parameters?

    For higher flexibility, application parameters are usually set. For intranet applications, I used to store these parameters with my Oracle database. Now I'm developing a web-based internet applications, would you please advise for the following questions:
    1) The place to store common application parameters (How to set and how to retrieve?)
    (Currently, I have put such application parameters into a class file. Although it should be faster than retrieval from database, it means that I need to re-compile in case of any changes are made for those parameters. Can I set up some global constant for my application with my JDeveloper? How to set and how to retrieve?).
    2) The place to store the application configuration and application package string
    (As you see, if you have many Jsp page, it's not convenient to change the <jbo:ApplicationModule ... Configuration="MyConfig"... /> all the time. It may be better if it could be generalized by a variable. I have found the configuration in the "web.xml" file, but i don't know how to retrieve the value from it. Currently, I have made use of my old approach mentioned in Question 1 - place the configuration string in a common class ... the drawback has already been mentioned as above ... any better solutions?)
    Thanks for replying!

    Curt,
    To create an AM using the definition in the cpx file:
       JUApplication app = JUMetaObjectManager.createApplicationObject("Project2.am");
       ApplicationModule am = app.getApplicationModule();.
    This is the same call used by JClient application.
    Here is the story with BC4J runtime params:
    jbo.default.language
    This parameter is used in localization.
    jbo.default.country
    This parameter is used in localization.
    DeployPlatform
    The platform on which the business components are deployed:
    LOCAL - The web module of Oracle 9iAS
    EJB_IAS - The EJB module or Oracle 9iAS
    VB - A VisiBroker CORBA server
    WLS - a WebLogic application server
    Connection Mode
    For business components deployed to VisiBroker, the connection
    mode used:
    1 - colocate mode
    2 - remote mode
    3 - IOR mode
    4 - bind mode
    For more information, see the VisiBroker documentation.
    HostName
    For all deployment platforms except LOCAL, the name of the
    application server hosting the business components.
    ConnectionPort
    For all deployment platforms except LOCAL, the port of the
    application server hosting the business components.
    ApplicationPath
    For all deployment platforms except LOCAL, the JNDI path to the
    business components.
    java.naming.security.principal
    For all deployment platforms except LOCAL, the username for the
    IIOP connection to the business components.
    jbo.use.pers.coll
    Setting this to true enables view row spillover. If you are working
    with large rowsets and memory is a problem, this property should be
    true. For more information, see the Oracle JDeveloper documentation.
    jbo.pers.max.rows.per.node
    The maximum size of a node for view row spillover.
    jbo.pers.max.active.nodes
    The maximum number of nodes that will be cached in memory for view
    row spillover.
    jbo.fetch.mode
    AS.NEEDED causes view objects to only fetch rows when they are
    requested. ALL causes them to fetch the entire results of their
    queries.
    MetaObjectContextFactory
    The default value uses the business components framework's
    MetaObjectContext Factory, which stores business components metadata
    in XML. If you want to use a different format for business components
    metadata, you can implement your own MetaObjectContext Factory.
    IsLazyLoadingTrue
    For all deployment platofrms except LOCAL, setting this property to
    true will cause business componetns metadata to be loaded into memory
    only as needed, whereas setting it to false will cause all metadata
    to be loaded into memory immediately. Lazy loading is mandatory in
    LOCAL mode.
    Factory-Substitution-List
    The list of business components to substitute out. See the Oracle
    JDeveloper documentation for more information on substituting
    business components.
    jbo.project
    The project containing business components to be substituted for old
    ones, if Factory-Substitution-List is not empty.
    jbo.max.cursors
    The maximum number of cursors the business components may have open.
    The framework will clean up free JDBC statements as the number of
    cursors approaches this number.
    do.failover
    This property is true if application module failover is enabled.
    Setting this property to false provides better performance at the
    expense of reliability.
    jbo.doconnectionpooling
    This property is true if application modules are allowed to share
    connections. For more information about connection pooling, see the
    Oracle JDeveloper documentation.
    jbo.recyclethreshold
    The recycle threshold for application module pooling. When the number
    of application modules in the pool reaches this level, the pool
    begins to recycle application modules in stateful mode. Monitoring
    the application module pool statistics may help you decide on a good
    value for this field.
    jbo.ampool.highwatermark
    The maximum number of application modules allowed in the pool. If
    this high-water mark is reached, clients must wait for the next
    available application module.
    jbo.ampool.resetnontransactionalstate
    If this property is false, application modules will preserve their
    non-transactional state (properties and dynamically added view
    object, view link, and nested application module members) even when
    they are checked in in stateless mode. If the property is true,
    non-transactional state will be reset.
    jbo.ampool.sessioncookiefactoryclass
    This class creates the session cookies that allow clients to retrieve
    application modules in stateful mode. Change this value only if you
    need to implement your own custom session cookie factory. See the
    Oracle JDeveloper documentation for more information.
    jbo.ampool.connectionstrategyclass
    This class manages the connection strategy for the application module
    pool. Change this value only if you need to implement your own custom
    connection strategy. See the Oracle JDeveloper documentation for
    more information.
    jbo.passivationstore
    When an application module is released in stateful mode, its state is
    saved when the application module is recycled (or immediately if
    failover is enabled). If this property is 'null' or 'database', the
    state is saved to the database. If the property is 'file', the state
    is saved to a local file.
    RELEASE_MODE
    The release mode--Stateless, Stateful, or Reserved--used by data web
    beans. Other clients specify their own release mode.
    jbo.maxpoolcookieage
    The maximum age of the browser cookies used to help clients retrieve
    stateful application modules. If these cookies do not time out, the
    value is -1.
    PoolClassName
    The class that implements the application module pool. Do not change
    this value unless you are using a custom application module pool
    implementation. For more information, see the Oracle JDeveloper
    documentation.
    jbo.maxpoolsize
    The maximum size of the JDBC connection pool. If this number is
    exceeded, an application module will have to wait for a connection if
    none is available.
    jbo.initpoolsize
    The number of JDBC connections automatically created in the
    connection pool, before any requests.
    jbo.poolrequesttimeout
    The amount of time, in milliseconds, an application module will wait
    for an available connection before failing.
    jbo.assoc.consistent
    If this property is true, the entity rowsets retrieved through
    association accessors will include rows that have been added, even if
    these changes have not been posted to the database. This property can
    reduce performance and so should be turned off if not needed.
    jbo.viewlink.consistent
    If this property is true, the view object rowsets retrieved through
    view link accessors will include rows that have been added, even if
    these changes have not been posted to the database. This property can
    reduce performance and so should be turned off if not needed.
    jbo.SQLBuilder
    The SQL flavor generated by view objects:
    Oracle - for the Oracle8i or Oracle9i database
    OLite - for the Oracle Lite database
    SQL92 - for any SQL92-compliant database
    DB2 - IBM DB2 Universal Database
    jbo.ConnectionPoolManager
    The class that manges the connection pool. Do not change this value
    unless you are using a custom application module pool manager
    implementation. For more information, see the Oracle JDeveloper
    documentation.
    jbo.TypeMapEntries
    The type mappings used by business components:
    Oracle - for the Oracle8i or Oracle9i database
    OLite - for the Oracle Lite database
    SQL92 - for any SQL92-compliant database
    oracle.jbo.defineColumnLength
    If this is false, business components will not by default define
    column length for CHAR and VARCHAR2 columns. In general, this should
    only be set to false for NLS applications.
    jbo.tmpdir
    You can use this parameter to specify a directory for temporary files.
    jbo.server.internal-connection
    Specifies a connection to use when application module state is saved
    to the database. By default, the application module pool will use the
    application module's JDBC connection.
    SessionClass
    The class which implements the oracle.jbo.Session interface, used to
    load and store session context throughout a client's lifetime. By
    default, the framework uses oracle.jbo.server.SessionImpl. Do not
    change this value unless you have implemented a custom session
    implementation class.
    TransactionFactory
    The class responsible for creating database transactions. By default,
    the framework uses oracle.jbo.server.DatabaseTransactionFactory. Do
    not change this value unless you have implemented a custom
    transaction factory class.
    jbo.debugoutput
    If this property is set to 'console', debug information is displayed
    on the console. If the property is set to 'silent', debug information
    is not displayed.
    jbo.logging.show.timing
    Whether to show the time elapsed between debug calls.
    jbo.logging.show.function
    Whether to show the name of the method that triggered a debugger
    call. Setting this property to true will degrade performance.
    jbo.logging.show.level
    Show the trace level of debugger messages. The lower the trace level,
    the more important the message.
    jbo.logging.show.linecount
    Number the lines of debugger output.
    jbo.logging.trace.threshold
    Lower this number to display only the most important debugger
    messages; raise it to display a larger portion of debugger messages.
    jbo.jdbc.driver.verbose
    If this property is true, the JDBC driver will run in verbose mode.
    For more information, see the JDBC documentation.
    jbo.ejb.txn.timeout
    For EJB deployment configurations, the number of seconds after the
    last database access before the EJB transaction expires.
    jbo.ejb.txntype
    For EJB deployment configurations, the transaction type:
    global - use the JTA UserTransaction interface
    local - use straight JDBC
    jbo.xml.validation
    If true, the XML parser uses strict XML validation.
    Charles.

  • Syncing audio in volvo

    I recently purchased a 2012 Volvo XC60.  When attempting to control and play music through the USB connection and the iPod function on the audio system, my iPhone 4S (version 5.1) continually switches the audio output to bluetooth.  That results in me still seeing the display for the music but losing the audio.  I can go to the music app on my iPhone and see that the audio output has been switched from 'dock connector' to 'My Volvo Car' and change it back to dock connector, restoring the audio but it only lasts for about 30 seconds until the phone overrides the setting and switches audio back to bluetooth.
    I have tried every sequence to avoid this as far as connecting my iPhone via USB only after the bluetooth connection is already established, starting the vehicle with my iPhone already connected and phone off at the time of start up and everything in between that you could imagine to no avail.  I understand that there is a 'last connection wins' configuration with the iPhone but this does not make any sense as my audio connection is not maintained through USB even when I make that connection after establishing bluetooth connectivity.  To make matters more bizarre, my wife's iPhone 4 does not have the same issue as I experience with the 4S.  We are both running the most current operating system software.  Any help would be greatly appreciated!

    BC1107,
       I am still searching for an answer.  I have received the tech notes from Volvo and tried every potential sequence of connecting the devices and even manually changing the output on the iPhone but to no avail.  I have copied in the Volvo tech notes on the issue below.  As I mentioned, this is still not helping my situation.  I found one post suggesting that I have my Sensus software updated by the dealer.  My vehicle is less than two months old but I am going to give that a try since it is basically my last resort at this point.  I am just waiting for either Volvo or Apple to break down and fix this with an upcoming version release.  It is insane to me that Volvo points the finger at Apple as if there product should not be designed to work with the most popular phone on the market.  Good luck and keep me posted.
    DESCRIPTION:
    Statement: The iPhone is using a media connection strategy called "last connection wins". In short this means that the media connection that is established last is the preferred connection.
    With the previous statement in mind, when a customer has connected (paired) an iPhone to the Sensus system and is using the bluetooth hands free function, it is natural for the iPhone to use the bluetooth streaming function also, as there already is a bluetooth connection to the car.
    But if the customer wants to listen to music or audio books and at the same time recharge the iPhone, the customer can connect the iPhone to the USB connector in the vehicle with a Dock Connector to USB cable (USB connection is not available in cars with audio system Base performance). Depending on connection sequence, the iPhone will behave in different ways.
    Essentially everything comes down to when the USB cable is connected to the USB connector in the vehicle, before or after the hands free connection has been established.
    NOTE: When connecting the iPhone to the vehicle USB connector the music player in the iPhone is not accessible. The music menu is only accessible through the iPod function in the vehicle HMI (Human Machine Interface).
    Symptom 1.
    If the customer has the iPod function selected in the Sensus system when the ignition is turned off and connects the iPhone before the ignition is switched on, the iPhone will switch from dock connector to bluetooth streaming when the hands free connection is established. This may be perceived, by the customer, as "the sound disappears" and "no sound can be heard from the speakers after start up". The information regarding song, artist and track time can still be seen in the ICM display.
    Explanation symptom 1.
    What actually happens is that the iPhone has switched to bluetooth streaming when it establishes the hands free connection to the vehicle. In these cases the customer must select the preferred output manually according to Connection sequence 1 below. When this is done the sound will return. Or the customer could also in this case choose to switch to Bluetooth steaming by pushing the Media button repeatedly or by pushing the Media button and then turning the Tune knob and then selecting OK for Bluetooth. When switching to bluetooth streaming function the music could be in pause mode. For reference see TJ25640_Output.pdf, picture 9. By pushing the On/Off button to mute and then again to un mute the music will continue playing, but now through bluetooth streaming.
    Symptom 2.
    If the customer has the Bluetooth streaming function selected in the Sensus system when the ignition is turned off it will be selected again when the ignition is switched on.
    If the customer connects the iPhone through USB cable after the hands free connection has been established, the iPhone will switch from bluetooth streaming to Dock Connector when the USB connection is established. This may be perceived, by the customer, as "the sound disappears" and "no sound can be heard from the speakers". The information regarding song, artist and track time may still be seen in the ICM display.
    Explanation symptom 2.
    What actually happens is that the iPhone has switched output to Dock Connector when it establishes the USB connection to the vehicle. In these cases the customer must select the preferred output according to Connection sequence 2 below. When this is done the sound will return. The customer could in this case also choose to switch to the iPod function by pushing the Media button repeatedly or by pushing the Media button and then turning the Tune knob and then selecting OK for iPod. The music will continue playing, but now through the iPod function.
    Connection sequence 1.
    If the customer connects the iPhone via USB cable, before ignition on, the preferred sound output will be bluetooth streaming. This is because the USB connection is established much faster than the bluetooth connection. The hands free function will be established after the USB connection and this makes the bluetooth connection the last connection and also the preferred connection.
    What function should be used in the vehicle?
    If the customer always connects the iPhone in this sequence the customer should select the Bluetooth function in the vehicle. For reference see document TJ25640_Output.pdf, picture 7.
    If the customer wants to use the iPod function in the vehicle, the customer has to manually change the preferred output on the iPhone by touching the Airplay icon on the iPhone and selecting Dock Connector in the displayed pop-up. For reference see document TJ25640_Output.pdf, picture 1-3 to see how its done.
    Connection sequence 2.
    If the customer connects the iPhone via USB cable, after ignition on, and after the hands free connection has been established the preferred sound output will be the Dock Connection.
    What Function should be used in the vehicle?
    If the customer always connects the iPhone in this sequence the customer should select the iPod function in the vehicle. For reference see document TJ25640_Output.pdf, picture 8.
    If the customer wants to use the bluetooth streaming function in the vehicle, the customer has to manually change the preferred output on the iPhone by touching the Airplay icon on the iPhone and selecting My Volvo Car in the displayed pop-up. For reference see document TJ25640_Output.pdf, picture 4-6 to see how its done.
    Connection sequence 3
    If the customer connects the iPhone via USB cable, after ignition on, but before the hands free connection has been established the preferred sound output will be the bluetooth streaming. This is because the USB connection is established before the hands free function and this makes the bluetooth connection the last connection and also the preferred connection.
    What Function should be used in the vehicle?
    If the customer always connects the iPhone in this sequence the customer should select the Bluetooth function in the vehicle. For reference see document TJ25640_Output.pdf, picture 7.
    If the customer wants to use the iPod function in the vehicle, the customer has to manually change the preferred output on the iPhone by touching the Airplay icon on the iPhone and selecting Dock Connector in the displayed pop-up. For reference see document TJ25640_Output.pdf, picture 1-3 to see how its done.
    NOTE: The Bluetooth hands free function is not affected by a connected iPhone to the USB connection in the vehicle. The hands free function uses a different profile to connect to the vehicle therefore it will work independently of the function used for music/audio books.
    PRODUCT MODIFICATION:
    There will be no product modification from Volvo as the function depends on connection sequence and the iPhone connection strategy.
    MATERIAL RETURN:
    N/A
    VEHICLE REPORT:
    N/A
    SERVICE:
    Explain the iPhone connection strategy and the connection sequences 1 - 3 above to the customer. The attachment, TJ25640_Output.pdf, and the text between the lines regarding Connection sequence 1-3 could also be printed and given to the customer for further reference.
    VSTG OPERATION NUMBER:
    N/A

  • Create ApplicationModule without pointing to a Schema/DB

    Hi All,
    Here is my Requirement.
    1. Create an Application Module with out pointing to a Schema..
    2. Create Multiple Custom Methods in the ApplicationModule pointing to a View Object( which is Created Programatically)
    3. Exposed the custom method as webservice.
    Let me know if i can create an ApplicationModule without pointing to Schema/DB.
    Any pointers or help is appreciated.

    Thanks for the reponse.
    here is the example for the above implementation.
    http://blogs.oracle.com/smuenchadf/resource/examples
    <B>Explanation from the Blog. </B>
    147.ADFBC Application With No Database Connection [11.1.1.1, SCOTT schema] 01-SEP-2009
    This example illustrates a technique for creating an application module that does not use a database connection. The only reason you might want to do this is that you are exclusively using programmatic view objects and entity objects, which might be an infrequent scenario, but does come up from time to time. The example illustrates a number of lesser-used framework extension classes. The NoDatabaseApplicationPoolImpl is a custom application module pool implementation class. The NonDatabaseConnectionStrategy is a custom connection strategy class . The CustomSessionImpl is a custom session class, which returns a custom transaction handler factory. The CustomTxnHandlerFactoryImpl is a custom transaction handler factory used to return an instance of the custom CustomTxnHandlerImpl class, which is a custom transaction handler implementation. The SessionClass configuration property is set to the name of the custom session implementation class, which in turn bootstraps the custom transaction handler factory and custom transaction handler. The PoolClassName configuration property is set to the name of the custom application module pool implementation class. This class overrides the isSupportsPassivation() method to return false, indicating to the runtime that this particular application module pool does not support passivation. The jbo.ampool.connectionstrategyclass configuration property is set to the name of the custom connection strategy class which overrides the createApplicationModule() method to set some key properties in the environment hashmap before calling super. The StaticVO is a static view object that returns rows whose data is in the ModelBundle.properties file.

  • ApplicationPool.setUserName deprecated ... so what to use?

    I'm following a tutorial from here and I'm trying to adapt it for 11g.
    I've reached the point
        public SessionCookie createSessionCookie(String name, String value,
                                                 ApplicationPool pool,
                                                 Properties properties) {
            SessionCookie cookie =  super.createSessionCookie(name, value, pool, properties); // line 1
            if (properties != null) {
                //HttpSession session = (HttpSession)properties.get(HTTP_SESSION); // line 2
                HttpSession session = (HttpSession)FacesContext.getCurrentInstance().getExternalContext().getSession(true);
                if (session != null) {
                    Hashtable env = pool.getEnvironment(); // line 3
                    env.remove(Configuration.DB_USERNAME_PROPERTY);
                    env.remove(Configuration.DB_PASSWORD_PROPERTY);
    //                pool.setUserName(null);
    //                pool.setPassword(null);
                    EnvInfoProvider provider =
                        new DynamicJDBCEnvInfoProvider( // line 4
                            (String)session.getAttribute(Configuration.DB_USERNAME_PROPERTY),
                            (String)session.getAttribute(Configuration.DB_PASSWORD_PROPERTY));
                    cookie.setEnvInfoProvider(provider); // line 5
            return cookie;
        } the commented lines give me deprecated errors ... I don't know how to workaround with pool.set* methods
    ps: this started from the need to use the db users and roles
    Any help will be appreciated
    Florin POP
    Edited by: kquizak on Nov 14, 2008 12:13 PM
    Edited by: kquizak on Nov 14, 2008 12:13 PM

    Hi,
    This value should be passed to the pool connection strategy as SessionCookie environment or by implementing an EnvInfoProvider. So in your case
    Hashtable env = pool.getEnvironment();
    env.put(Configuration.DB_USERNAME_PROPERTY, null);
    env.put(Configuration.DB_PASSWORD_PROPERTY, null);
    should do the same
    Frank

  • EnvInfoProvider error.

    I'm trying to use dynamic credentials in my ADF swing application.
    I created my connection strategy custom class and my EnvInfoProvider custom class (see below).
    When I issue a Configuration.createRootApplicationModule, passing my freshly created EnvInfoProvider it works until the connection strategy is invocated.
    Debbugging the connect method of the connection strategy it receives a null EnvInfoProvider and defaults to the default connection form the configuration.
    What's wrong ?
    Tks
    Tullio
    public ClConnectionStrategy() {
    public void connect(ApplicationModule xpAm, SessionCookie xpCookie, EnvInfoProvider xpEnvInfo) {
    Hashtable env = xpCookie.getEnvironment();
    ClEnvInfoProvider x = null;
    if (x instanceof ClEnvInfoProvider) {
    System.out.println(x.toString());
    env.put(Configuration.DB_USERNAME_PROPERTY,x.getUtente());
    env.put(Configuration.DB_PASSWORD_PROPERTY,x.getPassword());
    env.put(Configuration.DB_CONNECT_STRING_PROPERTY,x.getConnection());
    InSessione sessione = x.getSessioneApplicativa();
    if (sessione != null) {
    env.put(InSessione.PARAM_SESSIONE,sessione);
    try {
    xpCookie.setEnvironment(env);
    } catch (ApplicationPoolException ex) {
    ex.printStackTrace();
    super.connect(xpAm,xpCookie,xpEnvInfo);
    public class ClEnvInfoProvider implements EnvInfoProvider {
    private String utente;
    private String password;
    private String connection;
    private InSessione mySessione = null;
    public ClEnvInfoProvider () {
    public ClEnvInfoProvider (InSessione xpSessione) {
    utente = xpSessione.getParametro(ClParametro.PARAM_USERNAME).getValue();
    password =xpSessione.getParametro(ClParametro.PARAM_PASSWORD).getValue();
    connection = xpSessione.getParametro(ClParametro.PARAM_CONNECTION).getValue();
    mySessione = xpSessione;
    public ClEnvInfoProvider (Hashtable xpIniFile) {
    utente = (String)xpIniFile.get(ClParametro.PARAM_USERNAME);
    password = (String)xpIniFile.get(ClParametro.PARAM_PASSWORD);
    connection = (String)xpIniFile.get(ClParametro.PARAM_CONNECTION);
    public ClEnvInfoProvider (String xpUtente, String xpPassword, String xpConnection) {
    utente = xpUtente;
    password =xpPassword;
    connection = xpConnection;
    public Object getInfo(String xpInfo, Object xpEnv) {
    ClDebug.getDebug().println("Connection Infos : " + utente+" "+connection);
    ((Hashtable)xpEnv).put(Configuration.DB_USERNAME_PROPERTY,utente);
    ((Hashtable)xpEnv).put(Configuration.DB_PASSWORD_PROPERTY,password);
    ((Hashtable)xpEnv).put(Configuration.DB_CONNECTION_PROPERTY,connection);
    if (mySessione != null) {
    ((Hashtable)xpEnv).put(InSessione.PARAM_SESSIONE,mySessione);
    return xpEnv;
    public String getUtente() {
    return utente;
    public String getPassword() {
    return password;
    public String getConnection() {
    return connection;
    public InSessione getSessioneApplicativa() {
    return mySessione;
    public void modifyInitialContext(Object p0) {
    public int getNumOfRetries() {
    return 0;
    public String toString() {
    return "Connection Infos : "+utente+"/"+password+"@"+connection;
    }

    hi, have you succeeded eventually?

  • SAP Strategy Mgmt 7.5 Error makinng model connection

    Hello.
    Actually We have a problem when we try to make a new connection model, in strategy/administration.
    We have followed these steps, in order to create a new conection model:
    Make a System DSN (with 32bit compatibility)
    In PAS Administrator we have created a new LinkID "SSM_CB_EA"
                                   (Start->Programs->SAP BusinessObjects->Strategy Management->Application Server Administrator)
                                    (When we create a new LinkID, we choose the System DSN previously created, in "TEST" button, we type the server, database, user SAP<sid>DB, and password)
    Once the LinkID is created, we proceed to go to http://<server>:5<instancenumber>00/strategy/administration. There we choose "Manage Model" in "Administration" section. We type the values, PAS SYSTEM, PAS USER, password, ....... but when we test the connection, the message says "Error occurred trying to connect; login failed"
    The user credentials typed for this process is a windows user, and this user is member of "administrators" group.
    The system information is:
    SAP Strategy Management 7.5 SP4
    SAP NetWeaver CE 7.2
    MaxDB 7.8
    Windows Server 2008
    Does anyone have any idea or suggestion?

    FrancescoV,
    Just a quick overview of the Connection Settings
    PAS System Name = either localhost or server location
    PAS System Logon = Windows user of installation server with Administration Group rights
    Password = that Windows user's password
    Port = default port of 8325
    Min = default 0
    Max = default 5
    PAS Model = Name of your PAS model, HFPBM and Juice are sample data models included with system if you loaded import.zip file during installation. (other option of bootstrap.zip does not include sample data.)
    PAS User = A user on the PAS side (found in PAS under Security>Users) GUEST as an example
    INI File = lsserver.ini (this is the path directory that is located in the <drive>:\Windows directory)
    Service = PILOT
    The most common mistake with Model Connections is having the Windows user with the same name as a system administrator. An example is using pipadmin for both your "super" administrator for SSM as well as your Windows users. Because these are in two different locations, the password gets changed for one and not the other (pipadmin's SSM credentials are controlled by Netweaver CE UME). That is why it is recommended to use different user name for each, since they will have unique passwords.
    Create another Windows user with administrator rights and use that in your Model Connection to see if using that corrects your problem.
    If you have installed all the SSM components on a 64-bit Windows server, you must create the System DSN with the 32-bit version of the ODBC Administrator located in the <drive>:\Windows\SysWoW64 folder. Details on how to do this are available in the Microsoft Knowledge Base, article 942976.
    Please check these and see if it corrects your problem.
    Regards,
    Bob

  • Unable to connect to SAP's UX Strategy in a Nutshell by Sam Yen

    Hi;
    Unable to start open SAP course SAP UX Strategy in a Nutshell. There may be a problem.

    Hi Muhammed,
    The course should work as it opens for other users. Please raise a ticket with the helpdesk as this is not the correct forum for technical issues.
    thanks and kind regards,
    Claire

Maybe you are looking for

  • Loading multiple files from multiple users.

    Our system is moving from a standalone app to a web system. The users will have export files generated by our app which they will need to import up to the web. In the web system, the users are connecting via SSO, so apps server is using a single JDBC

  • CMIS Webpart Install/Config Issue in SP 2010

    Hello, I have followed the entire Microsoft Guidelines step by step for the CMIS webpart.  The only problem is I cannot get the webpart viewable when adding a new webpart.  Everything looks good and seems to have worked.  I activated the features for

  • Standard Portal Reports Customization

    Hi, We have a scenario where we need to move KM content and PCD objects between two portals. I am moving the Content through ICE and objects through Transport export/import. 1. Are there any standard portal tools to check the consistency of the objec

  • Download of Elements 11

    Tried to download Elements 11 purchased from Adobe store but it apparently was not complete.  I have several Elements 11 files in a folder but no working program.  Using Windows 8 and not a computer savy person.  Tried going back to my order # and hi

  • WHAT IS THE CONNECTION TYPE FOR SRM

    HI WHAT IS THE CONNECTION TYPE IN SRM RFC DESTINATION. 3-R3 ....ETC.