Vendor-independent way to configure a DataSource

Does anyone have advice on a app-server independent way to configure DataSources for a J2EE app? I currently define my connection pool in weblogic.properties, but I'm trying to get as much out vendor specific config files as possible.
Thank you,
Adam

I remember that in weblogic6.0sp2 you can config a DataSource in a file named config.xml. and that file belong to a individual application(or a website? that project is not on my hands and I can not sure). Hope it can help you.
Best Regards.

Similar Messages

  • Proper way to configure JDNI datasource

    Hi all.
    I'm a little bit confused about the myriad of ways to potentially configure a JNDI resource reference (in this case a datasource).
    I'm using Tomcat 4.1 and Struts. It appears that JNDI references can be specified in the files:
    Tomcat: server.xml and web.xml (for all apps)
    Struts: struts-config.xml
    App: web.xml
    I'm trying to configure an Oracle Connection Pool DataSource using the OracleDataSourceFactory and OracleDataSource types. The question is, where is the resource properly specified? I've gotten it to work by putting code in the Tomcat server.xml file but that obviously ties me to Tomcat. If I put it in struts-config.xml that ties me to Struts, so what I'd like is the proper way to configure it in web.xml (which is supposed to be the same no matter which app server you drop the app into).
    Anybody got any advice??
    Dave

    Hello!!
    I think that your code is 100% portable, but the datasource isn't it. Because you need do a new connection pooling for every diferent server you have, and you can reference it from your code for use it. I don't know if you can export the server configuration to a file and then this file could be loaded in another similar server, the same way that you can do a war file and then you can deploy it in a new server.
    I hope this can be helpful
    Bye!!

  • Blob access in DB Vendor independent way

    I'm looking for a portable (cross db portability) to manipulate BLOB's.
    whenever tried to use java.sql.Blob methods (setBinaryStream(long pos),setBytes(long pos, byte[] bytes) or setBytes(long pos, byte[] bytes, int offset, int len) ) with Oracle JDBC driver (version 9.2.0.3 thin and OCI8) I got "unsupported feature" exception.
    Is there a way to write into Blobs without using explicitly Oracle Classes (oracle.jdbc.BLOB) ?
    Thanks
    Adon Yanshuf

    I remember that in weblogic6.0sp2 you can config a DataSource in a file named config.xml. and that file belong to a individual application(or a website? that project is not on my hands and I can not sure). Hope it can help you.
    Best Regards.

  • Problem configure mysql datasource

    Hi, I am trying to use mysql datasource for my application. I had configured MYSQL_DRIVER and then
    i had configured gtasappdb datasource with
       driver-class-name = com.mysql.jdbc.Driver
       url               = jdbc:mysql://localhost:3306/appdb
       alias             = appdbdatasource
    And then i tried to deploy a EJB application which uses the above 'appdbdatasource'. When the application starts
    it says cannot find 'gtasappdb' connectionfactory.
    So can anyone tell me what should be done to use mysql for my application, please

    Hello mahesh,
    There are two ways.
    1. You should add a resource reference to the ds alias in the deployment descriptor of the application component.Once you have defined the reference,use the following snippet to access the data source
    DataSource ds = (DataSource) context.lookup("java:comp/env/<res-ref-name>").
    2. If you have not defined the reference in your application, use the JNDI reference "jdbc/alias".
    Hope this helps,
    Prasad

  • Ways to Configure Which UNIX Server a PC Client Application Communicates With

    We have several different MS VC++ "fat client" applications that we want to run
    on the same NT 4.0 PC.
    Each application uses the Tuxedo 7.1 client to communicate with Tuxedo services
    located on a UNIX server.
    Each application needs to communicate with a different UNIX server (e.g., application
    A1 needs Tuxedo
    service T1 located on UNIX server S1, application A2 needs Tuxedo service T2 located
    on UNIX server
    S2). We'd like to load the Tuxedo 7.1 client software in such a way that each
    individual application
    controls which server it uses. One way to do that is through registry entries
    specific to each application.
    We are looking for some documentation or tips on other/better ways to configure
    which server the PC
    application communicates with. We are also looking for some documentation or
    tips on how to best
    configure an application that needs to subscribe to services from several different
    servers (e.g.,
    application A needs Tuxedo service T1 on server S1 and Tuxedo service T2 on server
    S2). Thanks.

    Matt,
    This sounds quite unusual, and I am not sure why you want to do things this way.
    Generally, I would expect that the services would be distributed on the server side over
    different boxes as you describe, but the location would be transparent to a client app.
    which would tpinit once, and Tuxedo would route the requests appropriately. Maybe that's
    not how you want to do things because the apps are all logically independent? I'm not
    sure about that though, since you describe needing services on different servers in
    individual clients... Can you do the integration at the back end?
    To do what you describe, however, you need to control the value of the WSNADDR
    environment variable before you call tpinit() - it is the network address in this
    variable that tells the client libraries which server to connect to. Simply set the
    value (from a command line parameter, the registry, an ini file or wherever) with the
    tuxputenv() API before you call tpinit()
    In Tuxedo 7.1 and higher, it is also possible to connect to multiple different servers
    simultaneousy by calling tpinit multiple times and having multiple contexts in the
    client.
    I hope that helps.
    Regards,
    Peter.
    Got a Question? Ask BEA at http://askbea.bea.com
    The views expressed in this posting are solely those of the author, and BEA
    Systems, Inc. does not endorse any of these views.
    BEA Systems, Inc. is not responsible for the accuracy or completeness of the
    information provided
    and assumes no duty to correct, expand upon, delete or update any of the
    information contained in this posting.
    Matt wrote:
    We have several different MS VC++ "fat client" applications that we want to run
    on the same NT 4.0 PC.
    Each application uses the Tuxedo 7.1 client to communicate with Tuxedo services
    located on a UNIX server.
    Each application needs to communicate with a different UNIX server (e.g., application
    A1 needs Tuxedo
    service T1 located on UNIX server S1, application A2 needs Tuxedo service T2 located
    on UNIX server
    S2). We'd like to load the Tuxedo 7.1 client software in such a way that each
    individual application
    controls which server it uses. One way to do that is through registry entries
    specific to each application.
    We are looking for some documentation or tips on other/better ways to configure
    which server the PC
    application communicates with. We are also looking for some documentation or
    tips on how to best
    configure an application that needs to subscribe to services from several different
    servers (e.g.,
    application A needs Tuxedo service T1 on server S1 and Tuxedo service T2 on server
    S2). Thanks.

  • What is the best way to configure my iPods and user accounts?

    I'm looking for a little guidance. Here is my situation:
    I am running the latest version of Tiger. It is currently configured with three accounts; mine is the admin. account and each of my two children have their own accounts.
    My account is the one that is used most of the time. All of our calendars in iCal are maintained here including one for each of the kids. Each of the kids has their own Contacts list in the Address Book as well. I currently have a 5G 30GB iPod Video that I sync with iTunes through this account. Shortly, I will be buying an iPod Touch. I want my 30 GB iPod to be the one that has everything on it; it will be the one we take in the car on trips for music. I want the Touch to have some, but not necessarily all, of my music and all of our calendars and contact information. I am looking to use it to replace my Palm as my PDA.
    My son has a 2G Nano which currently syncs through his account.
    My daughter will be getting a 3G Nano soon.
    I will also be upgrading to Leopard very soon.
    Ultimately, I would like each of the kids to have their own iTunes libraries for music and podcasts and to sync their iCal calendars. As I understand it, however, they cannot access their calendars from their own accounts under my current arrangement. I also understand that there are several ways to configure my Mac to work with multiple iPods.
    Given all of this, what is the best thing for me to do? Should I set up all of the kids' iPods to sync through the admin. account so they can get their calendars at the same time? Or is their some way for them to have access to their calendar information from their own accounts under Tiger (or Leopard)? And as far as my two iPods (the Video and the Touch), should they sync through separate libraries, or through one using playlists. I also want to minimize duplicate data wherever possible, be it music or records in iCal and the Address Book.
    Thanks in advance for any suggestions or advice!

    Anyone...anyone? Bueller...Bueller?

  • What is the "best" way to configure iTunes on an iMac with personal user acounts so each user can access the media library but sync devices on their personal user account?

    I am trying to determine the best way to set up our imac so each user account can access the same media (songs, movies etc.) through itunes and also back up and manage their personal devices under their own personal user account.  There are 4 users on our iMac.  Me, my wife, and our 2 children.  We have built an extensive library of music/media together using the same iTunes store account.  I would like to establish a seperate apple id and iTunes store account for each of us going forward but have the ability for each of us to share our purchases.  What is the best way to configure our system and devices in order to allow shared access to media and at the same time allow for individual management of devices including contacts, apps, photos, etc. Please help, I would like to do this once!
    Thank you in advance! 

    OK, seeing as no-one replied (presumably because a lot of this information is on the forums in bits elsewhere) here's how I've got on so far.
    Applications - just went through them.  About the only one I needed was my media server app.  Just downloaded and re-installed, had a quick look back though my email to find the license key and it all went on fine.  Installation never seemed quite right on my old machine so solved that problem too. 
    Movies - New iMovies just copied across the clips and projects into their respective folders.  Seems to have worked but haven't checked it all that thoroughly.  Some duplicate footage here but I can trim this out at some point when I get a chance to go through here. 
    Documents - Just copied these across. 
    Photos - used an app called iPhoto Library Manager.  You can download for free but have to pay to use the part that consolidates your libraries.  Possibly if I was willing to spend a bit more time I could have got away without using this but given I didn't know the state of my different libraries and just how many duplicates I had this was too much of a convenience to ignore.  Also got my library into a state where I can now spend a few hours organising it a bit better with Faces / Events etc. 
    Not attempted Music or iPhone sync yet as been stuck trying to solve a problem with my power adapter. 

  • Is there a way to configure NTFS file system on an NSS 324 SmartStorage unit. So far I can setup ext 3 or ext 4 but no option for NTFS

    Is there a way to configure NTFS file system on an NSS 324 SmartStorage unit. So far I can setup ext 3 or ext 4 but no option for NTFS. This unit should be joining a Windows Server 2008 R2 network and needs to be shared with all users. This unit will replace a File server running Win 2003 SP2.
    Message was edited by: Hermann Koster
    Thank you very much for your reply. The idea is to decommission the Windows file server which is running Windows Server 2003 SP2 operating system but is not running as a DC but just a member server. All this server is doing is providing file server services so my idea is to replace it with the NSS 324 box. My only concern is that when my NSS joins the domain all my users would be able to see and access network shares transparently, the same way they saw the former W2003 file server. After I transferred the data from File server I will use the same for NSS that was used for file server as well as same IP address and folders path as before.
    Any suggestions or advice?
    Once again thank you very much for your reply.
    Cheers,

    The internal HDDs must be formatted in either EXT3 or EXT4 file system because NSS uses Linux OS.  This is mainly because the RAM designed to fit with the customized Linux OS's size.
    You can connect to an external HDD via a  USB or eSATA port. The external HDD's file system can be NTFS, FAT32, AFT or EXT3/4 to be recognized for read/write. You can connect a 2TB USB/eSATA drive connec to the NSS via USB port to format your HDD for NTFS, AFT, FAT32, or EXT3/4 partition.
    You can join the NSS to a Windows domainr so all domain users to access NSS. You cannot replace the NSS for the Windows 2003 SP2 server. They are two different products and do different jobs. Windows server is features sets server while the NSS is the files/data server.
    Hope that helps!!

  • Best way to configure a network comprising WLSE and many APs ?

    Hi the Cisco NetPro community,
    I would like to have a discussion with you on the best way to configure a network containing a WLSE and a large amount of Access Points.
    The network I want to configure comprises some subnetnorks, each comprising about 10 access points (with some advanced settings for security). It might be a quite long and boring process to set the configuration for all those, so I am looking for the quickest and easiest solution to do so.
    First of all, the configuration of IP addresses have to be done on each Access Point after unpacking it. The configuration of my network comprises 1 WDS active AP, 1 WDS backup AP and the rest of infrastructure APs, that for each developement site.
    I thought about several solutions :
    - 1st solution could be to apply a configuration file (i.e. load the config.txt file) to each AP manually, changing some values (IP, local radius...).
    But problem is that passwords can't be changed with text editor because of the passwords written in "hash".
    - 2nd solution could be to configure each AP (after IP is set) using its web interface.
    No more problem for hash written passwords, but this method is quite boring when surfing on menu pages of the AP web interface...
    - 3rd solution, which could appear as the best solution, is to create a template on the WLSE, and to apply it to all APs.
    No more boring connection to each AP, but problem are : we need to create as many templates as APs (or change some parameters each time), and we still need to set parameters directly to APs before (SNMP, SSH, WDS configuration...), in order the WLSE to manage the APs.
    So, what do you think could be the best solution in order to deploy such a network with many APs ?
    How is it possible to avoid (so far as we can) the configuration of APs one by one ?
    Thanks a lot in advance for your consideration and your ideas !
    Alexis.

    Well for one of my clients that had over 60 sites, we actually created a couple of templates. We created a basic template and a template for each site. You can have the ap's obtain the configuration from the WLSE, but you need to configure a DHCP option. My client did mac address reservations, but of course you need the mac address first. I guess you can also let the ap get an address and change it later. They tried doing different things, first let the ap obtain a default config and then pushing out the configuration for that site.
    As for the hash, you can set the password in ascii... when you do a show run, then of cours it will be hash'd.
    http://www.cisco.com/en/US/docs/wireless/wlse/2.12/user/guide/deploywz.html#wp1936755

  • Any way to configure time machine?

    Hello:
    I have heard that there is a way to configure time machine so you can specify how often to back up the hard drive. Any thoughts?
    I am not sure why Apple chose not to allow the user to specify the time interval. Right now, I have 150 GB on my hard drive and over 300 GB in backups.
    Thanks,
    P

    There is a third-party utility called TimeMachineScheduler - VersionTracker or MacUpdate.

  • Is there way to configure the Time for attribute Description?

    Hi All,
    We have a requirement that …
    If we provide description (Tooltip) for attribute in Fact or Dimension it is displaying in couple of Seconds. Is there any way that configure to change the Time for attribute Description (Tooltip) Display Time ?
    Thanks in advance

    I should note that the time stays on the left of the event name when I re-enter the text (which I had to do all the time before I found the "show event times" button) so I feel like there's a way.

  • Configuring a Datasource Help (Hyperion Planning)

    Please help. I am installing Hyperion Planning - System 9 Release 9.3.1.1 and get the following error in the Configuration utility when I try to configure a datasource:
    Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: no HspEss
    baseEnv in java.library.path
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at com.hyperion.planning.olap.HspEssbaseEnv.<clinit>(Unknown Source)
    at com.hyperion.planning.olap.HspEssbaseJniOlap.<clinit>(Unknown Source)
    at com.hyperion.planning.HspJSHomeImpl.TestEssConnection(Unknown Source)
    at com.hyperion.planning.HspDSEssbasePanelManager.TestEssConnection(HspD
    SEssbasePanelManager.java:156)
    at com.hyperion.planning.HspDSEssbasePanelManager.queryExit(HspDSEssbase
    PanelManager.java:132)
    at com.hyperion.cis.config.wizard.ProductCustomInputPanel.queryExit(Prod
    uctCustomInputPanel.java:114)
    at com.installshield.wizard.awt.AWTWizardUI.doNext(Unknown Source)
    at com.installshield.wizard.awt.AWTWizardUI.actionPerformed(Unknown Sour
    ce)
    at com.installshield.wizard.swing.SwingWizardUI.actionPerformed(Unknown
    Source)
    at com.installshield.wizard.swing.SwingWizardUI$SwingNavigationControlle
    r.notifyListeners(Unknown Source)
    at com.installshield.wizard.swing.SwingWizardUI$SwingNavigationControlle
    r.actionPerformed(Unknown Source)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
    ce)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at javax.swing.JComponent.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    OS: Windows Vista SP 1
    Database: Oracle 11g
    App Server: Weblogic 9
    Essbase and Oracle are both up and running and can be accessed via other tools.
    Any help would greatly be appreciated.
    - CP

    Hi,
    The first thing that stands out is that you are running on Vista, it is not officially supported and I know people have had troubles getting planning working with it.
    The error message points to a problem with the connection to essbase.
    Cheers
    John

  • Best way to configure search toplogoy for multiple servers farm??

    Hi,
    My farm environment is 2 WFE and 2 App servers. Right now i am trying to configure Search Topology. what will be the best way to configure the search topology for this farm, so that query and crawling will be working perfectly. one thing i noticed with my
    previous search application Crawl DB had grown 140 GB, i dont know why it happened. please look at the following screen shot, this the current topology but i want to distribute component to different server.
    Any help will be appreciated!!

    The best topology depends on whether you want it to be fault tolerant or not. For a fault tolerant design with this number of servers I normally create two Index Partitions 0 and 1 with each on one of the App servers.  I then create Replicas of each
    partition on the front end servers. I then put the query role on both web fronts ends and the crawl role on both Ap servers.  So I end up with the following:
    FE1 = Index Replica 0 + Query
    FE2 = Index Replica 1 + Query
    Ap1 = Index 0 + Crawl
    Ap2 = Index 1 + Crawl
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Best Way to Configure Multi-boot System With GRUB/GRUB2

    Hello again,
    Sorry for posting so much, but I'm really enjoying Arch so far! I had been reading a lot about Cinnamon so I wanted to try it (without installing the dependencies on my Arch installation), so I decided to install Mint, that went fine, and then I was hoping to add the entry to GRUB. I couldn't figure out how to do this, so I decided to try and install GRUB2 because it can autodetect other OS'. Well it didn't work and then I found myself without a bootloader. I couldn't figure out how to reinstall grub to the MBR (I tried the solution in the wiki and a couple of other places). I decided to reinstall Mint, and now I am booting into Arch through Mint's GRUB2. Two questions:
    1) How can I fix grub through Arch to have that as my bootloader again? Nothing seems to work that I've tried.
    2) What is the best way to configure grub or grub2 from Arch to allow myself options to multiboot other OS's in the future? I want to learn as much about UNIX as possible so I was planning on installing some other Linux distros and some other non-Linux UNIX OS's. I know this is a really newbie question, but I'm at a loss, I thought it was easier than it turned out.
    PS. I didn't really like Cinnamon that much. I've been using Xfce and Openbox since I started using Linux (about a month ago), and it just seems too complicated! I don't like how little options you are given for customization. But that's just my opinion, everyone is different, I can see how it would be an improvement over GNOME3.
    Thank You!

    I have Arch Linux and Debian Testing installed side by side on my laptop.
    Arch uses Grub (legacy) and Debian uses Grub2. The way I have set it up is to have Arch's Grub on the MBR and then chainload Debian's Grub2 from there.
    Debian's Grub2 is installed on its own partition rather than on the MBR
    This is the line I use to chainload Grub2 from Grub (legacy)
    # (4) Debian chainload
    title Debian chainload
    root (hdX,X)
    chainloader +1
    Additionally just for kicks, I also have an entry in Grub2 to get back to Grub.
    menuentry "Arch Linux chainload" {
    insmod part_msdos
    insmod ext2
    set root='(hd0)'
    chainloader +1
    boot
    Note that the (hd0) above always points to the MBR.
    I do not have to bother with one bootloader interfering with the other and the OS entries on each are handled separately on their own.
    This setup has worked well for me for quite a while now. Before I started with Arch, I used a similar setup when I tried out various distros (Fedora,opensuse,etc.) alongside Ubuntu
    Hope it helps !

  • What is the best way to configure storage device for rac?

    Hi
    On my disk array i have 7mirors and two conroler, what is the best way to configure environment?
    My application is OLTP, it runs 6-20 o clocj, so i can do backup when nobady work
    Database 10g r2, Windows 2003 enterpise
    for examlep
    First controler
    disks 1-5 DATA
    second cotnroler
    disks 6-7 FLASH
    or meyby share one disk on DATA and FLASH?
    Thanks in advice

    The best is you use ASM (maybe you do it already) and put one failure group on the first disk array and the second failure group on the second array. Then you can ASM let do the work.
    Werner

Maybe you are looking for