Best way to configure database access - direct or intermediary

Hi there all,
I'm brand new to Java but have done a fair bit of php
what is the best way to architect a multi user applications connection to a database (from both performance and reliability)
The way I see it I have 2 options:
Every client application has a built in database connection string and performs its own queries interacting directly with the database.
Or
Clients use sockets/web service (which is better?) to connect to a multi threaded server app that then handles the request and performs the SQL query on the database and returns the results
Thanks in advance
Tyrone

It's going to depend on your business model isn't it? Can you do client server or do you have to do n-teir?
Do you have middleware that you want to use and do you want any type of middle teir that keep business rules.
Can you make your DB visible to the end user or are you prohibited?
Generally: if you are going to expose to the web, then you want as much security between your data and the client as possible, so n-teir will win out there in many instances.

Similar Messages

  • 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. 

  • 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

  • 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

  • Best way to configure "announcement only" mailbox

    We have a client with 2951 router with Cisco CME v8.x.  They need to have their receptionist be able to call in and change the school information message from an external number.  They told me that they used to be able to dial in on the main number and then push 1 to dial by extension. When they called into that extension they could push * and get into the mailbox and then access the prompt customization part of the AvT.  That isn't working and doesn't really make sense to me.  I have tried to dial by extension and dial the AvT extension and it says invalid number.  If I make the voicemail box for the extension in question an "announcement only" they cannot push * and change the greeting.  Is there a best way to configure this senario to make it easy for the receptionist to change the school information announcement from an external number?  Any help would be greatly appreciated!

    Its been a while I did this but if I remember correctly, need dial the pilot number to access the mailbox. So when your client dials the main number, after that dial the voicemail pilot number, then enter the user ID as mailbox of announcement only, it should then give you the options to record the greeting.
    I have dismantled my lab temporarily due to some renovation otherwise I would have quickly confirmed for you from there...but do try above and let us know how you go...
    -Terry

  • Best way to configure Time Capsule with Thomson TG782T modem(Telstra)

    Hi there
    I am looking for the best way to configure my Time Capsule.  I have an ADSL connection and use a Thomson TG782T wireless modem from Telstra as my internet connection.  It is plugged into my iMac via ethernet.  It also provides a wifi connection for iphones, ipads etc.
    I also have a Time Capsule and am looking to use it to extend the wireless network.  It doesn't seem to want to do this for me.  I am guessing that the Time Capsule needs to be in bridge mode, but don't want it to create its own wireless network.  Does this make sense?  Any help gratefully received.
    Thanks!

    I also use TG782T.. although I hacked it to use on non-telstra ISP.. and so I can access voip.
    But you cannot use TC to extend the wireless .. sorry that is not possible.. the Thomson is actually way behind and the only service it offers to extend is WDS and with WEP security.. so unless you plan to use G wireless and WEP .. don't even think about it.
    Bridge the TC and plug it into the Thomson. Create a wireless network of identical name as the Thomson.. actually the Thomson uses a silly name.. just change it to something short and sweet.. TG782T would be excellent. You can also lock the wireless channel instead of auto and use the highest level possible security with your own password.. again not the Telstra one..
    so you end up..
    Now run the same settings on the TC.. go to the wireless page.. set to create a network and use same name.. same security level same password but different channel.
    Your client computers will now connect to whichever device has the stronger signal.. this is called roaming network.

  • I recently added my old mac hard drive to a new macbook with an SSD as my main OSX drive.  I am having trouble with permissions in viewing my old hard drive.  What is the best way to get complete access to my old hd installed in my new Macbook?

    I recently added my old mac hard drive to a new macbook with an SSD as my main OSX drive. I am having trouble with permissions in viewing my old hard drive, when I save a permission when I reboot the full access is changed again .  What is the best way to get complete access to my old hd installed in my new Macbook?

    Open the Get Info window for the old drive. Click the Lock icon on the bottom of that window and type in your password. In the permissions area click the Plus sign ( + ) and Add your Username to it and set it to Read & Write. Close that window. you should now have full access to all the files.

  • 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 password in Cisco IOS?

    I am running IOS 15.2(4) on a 1921 Router
    What is the best way to configure the password for the router?  I have already tried once and managed to lock myself out of another switch.  I would like to use the most secure method which encrypts the password.
    Current Config:
    username admin privilege 15 password 0 cisco123

    Cisco IOS will not let me use a type 5 password.  This is the error message I receive: 
    ERROR: The secret you entered is not a valid encrypted secret.
    To enter an UNENCRYPTED secret, do not specify type 5 encryption.
    When you properly enter an UNENCRYPTED secret, it will be encrypted.
    I tried generating an MD5 hash and inputting that in and that did not work either.  When I do not specify type 5 it will default to using an encrypted type 4 password.
    Also, what is the difference between these two enable secret commands?
    enable secret 5 password
    username admin privilege 15 secret 5 password 

  • Best way to configure and connect two 4500 switches

    I have a  core 4507r+e in our production environment. We just acquired a 4500r and I would like to use it a distribution switch. What’s the best way to configure the new 4500r switch to connect to the core 4500 switch?

    Disclaimer
    The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
    Liability Disclaimer
    In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
    Posting
    BTW, when you link your core to your distribution, the connecting link can be L2, L3 or both.
    What I wanted to bring to your attention, 4500s can often easily oversubscribe some of their ports.  Much depends on the sup and line cards being used.  When you want to interconnect a core and distribution, you don't want to use a port that's something like 8:1 oversubscribed.  (Further, if you're doing mostly L2, and all traffic L3 has to go to the core, depending on you traffic flows, a single link might have insufficient bandwidth.)
    Also from core to distribution, if possible, it's good to avoid single points of failure.  So if you only have one link between them, that link's transceivers (if used), the ports connected to, the line card connected to, are all single points of failure.  (Of course, with only single sups in each chassis, that too is a single point of failure.  From what you've described, from a performance and redundancy standpoint, you might actually be better off using a 4510R, with your two sups [if same model] and line cards - creating a collapsed core/distribution.)

  • More than 16 midi tracks....best way to configure?

    What's the best way to configure more than 16 midi tracks?
    1) External usb midi box
    2) Virtual ports
    3) Apple IAC ports
    4) Disconnect SUM and connect ports to channel splitters (which are then fed to the instruments)
    When configuring more than 16 audio instruments, is the best way to do that to use individual midi instruments as the front end for each, setting the midi port and channel on the midi instrument?
    Or...is it better to go through the channel splitters (like in #4 above)?
    I've run into some kind of midi cross-talk anomaly that I can't find (still after a LONG time searching), and I can't help but think it might be in my environment setup somehow.
    Anybody like a good mystery? All help appreciated!!!
    Cheers,
    S.

    Hi,
    Firstly, please get rid of the term VST. Logic only uses Audio Units, and they work a little differently "behind the scenes".
    Ok. Now that you said the magic "only internal" synths phrase:
    In the current Environment, I've made a separate "midi instrument" for each "audio instrument" device. I'm using the "midi instrument" to set the port and channel of each separately.
    You do not need to do this. Because you are using internal synths (If you clue us in on WHICH ones....that could help too...unless that is a State Secret)
    Somehow, I've managed to get the problem down to one annoying item: I have a chimes part that has some sustained notes that are being CUT OFF in mid-note. There is nothing in the Event List for that track that would explain this, so I'm guessing that the track must be receiving some midi data from someplace else.
    My best guess is that you are playing back a Midi note that is, say XXX length, and the SAMPLE is only XX length. That would explain immediately why it is being "cut off".
    OR...there is simply too much midi data at that point that the track....no that can't be because the music is thin there. I don't know. I just can't find it.
    THAT is a delicious piece of speculation. Please inform yourself about what is really going on. Your posted question is totally misleading.
    You don't need 16 tracks of Midi because ONE sound is not playing back the way you want. Your problem has NOTHING to do with the question that you put forth:
    More than 16 midi tracks....best way to configure?
    Where is the cut-off chime sound sample in this question??? Nowhere... and nowhere is the answer...oops...
    I can't help you further, as I already spent a long time helping you set up an imaginary Midi setup that does not even exist, nor even solves your issue.
    Cheers
    Brought to you by the wise noeqplease, sans caffeine

  • 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?

  • The Best way to Handle Database Manipulation?

    Hello!
    I am only really active in the AS3 forum and so I throw out this question here.
    I have a request to create a "flash-like" app that is connected to a MS Access Database (DB). The customer has built up a product configurator in Access and wants to know if I can do anything with it. Is this what Flex is good for? I still really do not understand what Flex is all about.
    Anyway, I thought of exporting the DB out to an XML file and importing that to a flash app and then using the data there. The problem with that is that I would have to recreate all of the logic (e.g. if you choose "model A" you can only choose "colors 1, 2, or 3") that manipulates the elements in the DB and also the client would not be able to easily manipulate/edit/update the DB without having to export it to XML, etc...
    What would be a smart way for me to access/manipulate a MS Access Database through a flash front end? The more I describe, the more I am pretty sure that it needs to happen somehow in Flex? If so, how?
    Any input to get me on the smartest track to doing this type of job would be most appreciated.
    Thanks,
    -ropeGun

    use the urlloader to call the scripts that query the database.

  • What is the best way to copy database from overseas?

    Hello All,
    As customer need to migrate their databases(200 databases) to our data center, at this moment, we usually ask customer to send full backup by HDD and then send trn files via FTP, then we restore full backup and apply latest trn files until cutover. However
    FTP is not stable, trn files are always broken.
    The databases size are 3GB~150GB, trn file size are 1MB to 5GB, especially the big trn files are failed every time, we have set transfer mode to Binary in FTP client, but it still fails.
    I have VPN access to their database server, so in this case is there a better way to copy/migrate their databases to our server?
    Customer using Windows 2003 + SqlServer 2008
    We using Windows 2012 R2 + SqlServer 2014
    Appreciate your suggestions/advises.
    Thanks,
    Albert

    You are doing it the best way. I would also ship the tlogs via courier if time permits. Note that the tlogs get very large during maintenance operations. You may find that if you continually ship the tlogs via log shipping and stagger the cutover you may
    be able to do this in waves.
    With this many databases this sort of migration is difficult without downtime.
    looking for a book on SQL Server 2008 Administration?
    http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X looking for a book on SQL Server 2008 Full-Text Search?
    http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941

Maybe you are looking for

  • Satellite C855D-S5302 problem with win8

    I recently bought new Satellite C855D-S5302 after retiring my 12 year old Satellite after excellent service. BUT this new one comes with Windows 8 installed and that is just not cutting it for me. Often when moving the cursor to the left, the charms

  • Windows 8.1 laptop not recognising Ipod, showing error 21 in device manger

    I have tried uninstalling the current driver (original dated 2006) and updating but nothing seems to be available.  Error 21 says trying to uninstall device.

  • Add Alt Attribute Info to a Custom Button

    I have created an alternative to editing the "whtbar.js" file to give an image alt attribute information. We have a custom button in our help file that needed alt information, but we had already incorporated the text into the button's image and did n

  • Synchroniation - does it work or not?

    I have a Skype client (latest) with some history. I'm installing new client onto another PC. History is syncing very, very partially. It does sync only for recent contacts and not more than for a month. Some of recent contacts sync only when I mark t

  • [915 Series] LiveUpdate 3 Hangs systems at end of Windows XP boot

    After installing LiveUpdate 3, my system hangs near the end of XP boot.  Searching the forum, I found one thread related to this - https://forum-en.msi.com/index.php?topic=63173.0 but it didn't offer any solution. Anyone else experience this or have