ViewObjectImpl and db connection question

I will be populating the ViewObjectImpl's RowSet from a web service.
For simplicity, I create the ViewObjectImpl from an SQL query. There is no Entity Object involved.
My question is if I remove the SQL statement from the View.xml file, will the ViewObjectImpl try to connect to the database and throw an error?
Thank you.
Richard Catlin

In the best case you setup your application server to make a connection pool, and let the app-server do the connecting. You just grab a DataSource from your app-servers environment... Besides, I wouldn't want to have a db connection in my JSP's. I would let a bean handle that, and write the output of the bean to the page....

Similar Messages

  • Jampack and keyboard connection questions

    2 questions:
    1. I have just bought GB Jampack (the one with lots of extra loops), but can't seem to notice any difference. How do I know that the disc has downloaded OK? Can't remember how many loops were there in the first place!
    2. I'm trying to connect an Roland SK-50 Soundcanvas keyboard. Do I need some sort of interface or drivers before it will work?
    Very basic questions, I know, but hey, that's what this discussion group is for isn't it?!
    Regards
    Mark

    How do I know that the disc has downloaded OK?
    If you bought the JamPack DVD you didn't download anything. Did you run the installer on the JamPack DVD?
    To see just loops from your JamPack disc, open the Loop Browser and click on the top bar where it likely says "Loops" with a double arrow, and select "JamPack 1". Then only loops from the JamPack will show in the loop browser.
    Re: the Keyboard
    What kind of conection doesd it have? All I could find was " complete with direct Mac or PC connection" and "Connections: MIDI In, MIDI Out, MIDI Thru, Line In (LR), Line Out (LR), Computer port, and 1/8" stereo headphones jack."
    "Computer Port" isn't very specific. Is it a USB connection? You might need to find a driver for it. Does the Manual say anything about installing software to make it work?
    --HangTime [Will Compute for Food] B-)>

  • Read-only connection and other connection questions

    Apologies if this is a FAQ (and if it is please point me to them if this is the case) but I've just made the transistion from Toad to SQL Developer and struggling to find the equivelent of a couple of very useful features.
    1 ) Read-Only connection: In Toad it is possible to set a connection to read-only via a checkbox. This meant for most of the time you would browse the live DB but when required you could uncheck the box and perform updates i.e. no seperate user required.
    2) Colour Coded Connections: In Toad is is possible to assign a colour to your connection and all windows you opened for that connection would inherit the colour. Typically Red for Live, Green for Dev etc.
    3) Hide tabs for non active connections: When you have multiple connections open you only saw tabs for the current connection. All others were hidden until their connect was selected.
    I've had a look around SQL Dev and cant see these options but may have missed them. Are there similiar options in SQL Developer?

    There are feature requests for points 1 and 2 but AFAIK they are not yet implemented.
    I dont remember any feature request for point 3, but maybe i've missed it.

  • Secured and Unsecured connection question

    I was dealing with a customer when she asked me a question about her wrt54g wireless router. She said that when she goes into view available wireless networks it shows one network, Secured. And the same network name, unsecured. They are both her name (she has an obscure name so i doubt anyone in the area named their network the same).
    My question is, how do you disable the unsecured network? I would assume it's a profile in the router (windows only has her secured network listed in the profiles).

    The router can only generate one wireless network, so the "extra network" is not coming from the router.
    On some systems, the wireless adapter software will show two entries for your own wireless network if "SSID Broadcast" is set to "disabled".  One entry is the wireless network without its SSID, and it will be shown correctly as either being encrypted or unencrypted.  The second entry is the same wireless network with its SSID, and it too will be shown correctly as either being encrypted or unencrypted.  This is not exactly what you described, but may be the cause for the confusion.
    Another possibility is that the unencrypted network is somehow poping up from her list of "preferred networks", and that it got into that list before she encrypted the network.  In this case, either "Refresh" the list of available networks, or delete the listing for the unencrypted network from the list of "preferred networks".
    Another possibility is this:  Someone else in her household has their wireless card set to "Ad-hoc" mode, and it is generating the unencrypted network.  (Yes, this does happen! )
    Another possibility is this:  Someone in the neighborhood has copied her SSID.  In this case, change the SSID, disable SSID broadcast, and encrypt the network with a strong password.
    If it is none of the above, then download and install the latest driver for the wireless card.
    Message Edited by toomanydonuts on 04-17-200703:38 PM
    Message Edited by toomanydonuts on 04-17-200703:39 PM
    Message Edited by toomanydonuts on 04-17-200703:41 PM

  • New Apple TV and wireless Connection Question?

    My son lives in Russia and works for the State Dept. He want an Apple TV. The problem is that he is not tech savvy. Does the Apple TV need to connect wired or wireless to the router or just to the laptop to stream. He has a wireless connection for the laptop but if he has to go through set up and connect it to a router, I will never be able to walk him through it from 10,000 miles away. I have the old Apple tv and have it connected to the router with a wired connection. But I guess my IMAC synchs with the old Apple TV to send programs whether it is hardwired to a router or not. I hope this makes sense.

    New AppleTv will connect via ethernet or wi-fi as before.
    You could more than likely just connect it directly to the laptop with ethernet to stream locally stored content,but you'd need to set up some kind of internet sharing for it to access any internet or itunes store features.
    AppleTV could also be set to work with an ad hoc wireless network from laptop but again internet connection would have to be shared over this, and it might be a bit fiddly too if router setup is going to be fiddly.
    Simplest would be to connect both to router with ethernet. Have you considered mains powerline ethernet adapters if running cables is impractical?

  • PowerBook and iTunes Connect question

    Hi,
    I am a newby to the world of App development. I have an App Developer account and have built an App--but cannot run the App Loader from iTunes Connect. I am using a PowerBook with OS 10.5.8.
    Is there some other step I am missing? I was told that as long as the OS was better than 10.4 that I should be able to develope on an Apple computer... If I cannot upload on this computer, my employer will most likely upload our App on the Android market instead.
    Any thoughts? Ideas?

    Hello,
    from what I understand you need an Intel based Mac to produce applications for iOS devices. This means anything from Xcode 4.0 upward on Snow Leopard. (Mac OS X 10.6)
    You may get a better responce in the developers froum here:
    https://discussions.apple.com/community/developer_forums
    Best of luck

  • I have an existing new belkin modem router which works fine with quite a few wired and wireless products in my house. My question is if i buy a time capsule can i put it in another room and wirelessly connect it to the belkin modem router, I would then ju

    I have an existing new belkin modem router which works fine with quiet a few wired and wireless products in my house. My question is if i buy a time capsule can i put it in another room and wirelessly connect it to the belkin modem router, I would then just like my macbook pro and (imac future purchase) to wirelessly back up to it???????????

    Your will need to perform a Factory Default Reset on the TIme Capsule to clear out the current network settings and then reconfigure it to "join" your wireless network using the AirPort Utility setup application.
    To perform the Factory Default Reset on the Time Capsule....
    Pull the power cord from the back of the device
    Wait a few moments
    Hold in the reset button on the back of the Time Capsule and keep holding it an additional 8-10 seconds while you simultaneously plug the power cord back in to the Time Capsule
    Release the reset button after the hold period and allow 25-30 seconds for the Time Capsule to restart to a slow, blinking amber light
    On your Mac.....
    Open Macintosh HD > Applications > Utilities > AirPort Utility
    Click Continue
    Follow the guided setup and choose the "join" option when it appears duriing the setup
    You will need to know the exact type of wireless security that the Belkin router is using to enter this information during the setup of the Belkin. Otherwise, the Time Capsule cannot join the network, and you will receive an error message after the configuration process.

  • I am using iPad1. Running v4.3 and when connecting to wifi iPad keyboard does not work. Keyboard works for everything else including typing this question out. Why would it not work when typingin password for wifi connection?

    I am using iPad1. Running v4.3 and when connecting to wifi iPad keyboard does not work. Keyboard works for everything else including typing this question out. Why would it not work when typingin password for wifi connection?

    Kowhai wrote:
    Lots of WIFI needs a username and password to get access. I guess you're lucky and yours is set up unsecured.
    Normal secured WiFi requires only a password to get access. The password is used to encrypt traffic between your device and the WiFi access point. If whatever you are using requires a username as well then it is not simply normal secured WiFi. It might be a subscription WiFi service like GOGO, ATT, etc., or a service with authentication, i.e., college campus, etc. To help you out we need to know what you are using and what connection dialog you are being presented with. You don't have exactly the same problem as the original poster. He is having a problem entering a password into the password dialog that iOS presents when one tries to connect to a normal secured WiFi network. Could you clarify exactly which WiFi service you are using.

  • If i used cracked version of IDM and after connecting to net it shows that update available so now my question is that if i update it will IDM stop working ?

    if i used cracked version of IDM and after connecting to net it shows that update available so now my question is that if i update it will IDM stop working ?

    hello, this is a support forum for the firefox web browser - we can't help you with this kind of request. if you don't want to spend money on the program, use a open & free alternative like the [https://addons.mozilla.org/firefox/addon/downthemall DownThemAll!] addon instead...

  • Hey, my first question is that if I need to be connected to iCloud on my phone for my Imessages to work on my Mac? And my second question is if someone is looking into my Imessages on my Mac, how can I disconnect it from my phone right away?

    Hey, my first question is that do I need to be connected to iCloud on my phone for my Imessages to work on my Mac?
    And my second question is if someone is looking into my Imessages on my Mac, how can I disconnect it from my phone right away?

    you will need to do a hard wipe or remember the password hard wipe can be found on youtube how to. but this will erase all data

  • I am using Windows 7 Pro, 64 bit on a brand new PC, and cannot connect to the iTunes store using iTunes version 10.  HELP!!

    Ok, so after purchasing a new computer, with windows 7 pro, 64 bit, I tried downloading the newest iTunes, which at the time was 10.2.1 (i believe).  After installation, everything seemed to work, except that iTunes was unable to securely connect to the internet, use home sharing, or validate my computer.
    As troubleshooting, I first ran msconfig, and then turned OFF all programs that boot at start up EXCEPT itunes and quicktime.  After a restart, i opened itunes again, and got the same result.  That led me to believe that iTunes was NOT being blocked by another program on my machine.  I am currently running itunes 10.7 successfully on a Windows 7 32 machine at work.  Anyhow, for grins, I tried to install version 9 on the new computer, and it installed perfectly, and immediately connected to the itunes store, leading me to believe that there is nothing wrong with my software configuration (not sure if this is a safe assumption or not).  I then tried to let iTunes update itself using the automated update function.  It tried to update itself to the most current version, then 10.6.  Again, iTunes was unable to connect to the iTunes store.  I HAVE tried disabling the anti-virus software (AVG), but that made no difference. 
    I have since gone back and reinstalled iTunes 9.  Here's the catch though.  When I reinstalled using version 9, I had to redo all my library files.  I'm about 1/2 way through my CD's, and now have a substantial library file going.  The last time I let iTunes update itself to 10.6, once I realized that it was not going to connect to the store, I uninstalled iTunes, and reinstalled ver. 9.  However, when I did this, it told me it could no longer open the library file, because it was a newer .itl or .xml (i believe it was one of those two extensions) library file.  At that point, I basically started everything over again, using version 9, and have been importing CD's like a madman at night.
    Here are my questions:
    1) Is there a way to make a copy of the files that store my library info, so that if my upgrade to ver 10 IS NOT SUCCESSFUL, I can restore ver 9, but still have all of the album art work, playlists (when I import music, I create a playlist with the artists' name, and store things that way), etc. in tact? 
    2) What else can I try (firewall settings, internet options, etc.) to try and get version to to successfully install?  I would really like to get all the benfits of the newer versions.
    3) When I tried to get apple tech support before, they wanted me to pay a ridiculous 69$ fee for phone support.  I just bought an iphone 5....this should entitle me to a fresh 90 days of phone support, right?  The reason I ask here is that I could hardly understand the "tech" that answered the phone when I called for tech support last time, and to be honest, it really ****** me off that they wanted to try and milk me for another 69 bucks....I've purchased every iPhone since the 3Gs came out (pre-ordered at that), and have nearly gone broke purchasing music from their iTunes store....heck, maybe they're doing me me a favor not letting me into the store, huh?
    Any help or ideas would be greatly appreciated,
    -Brian

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • I updated my iphone and when it came time for activation it won't work and keeps telling me to try again. At the top it says "No Service" and I have my SIM card in and a good WiFi connection and have connected it through iTunes but it says I have no SIM

    I updated my iphone and when it came time for activation it won't work and keeps telling me to try again. At the top it says "No Service" and I have my SIM card in and a good WiFi connection and have connected it through iTunes but it says I have no SIM card and need to disconnect and insert my SIM. I don't understand why this keeps happening and it's been going on for a wile now. I have tried over and over again to get this iPhone to work but nothig is happening. I've even gone on the website for support (apple.com/support) but cannot find anything that will help me with this situation. Can someone please help me find a solution to this problem? I have been without a phone and do not have money to buy another one and it is crucial for me to get it fixed. Thanks.

    wesb
    What computer operating system is involved in the Premiere Elements 11 and 13 issues? Same computer or different ones? Are you installing from purchased download installation files or from purchased installation disc? Does Premiere Elements 11 work completely on this computer whereas 13 will not?
    Let us go through the typical drill so as to take nothing for granted.
    1. Does the problem exist with or without the antivirus and firewall(s) disabled? Are you working with an individual home computer or in a
    school or company network?
    2. Are you running the program as Administrator and is there any "domain" account involved?
    3. Is your video card/graphics card up to date according to the web site of the manufacturer of the card?
    4. Do you have the latest version of QuickTime installed on the computer with Premiere Elements?
    Let us start by ruling in or out any of the above, and then we can decide what next.
    Any questions or need clarification, please do not hesitate to ask.
    Thank you.
    ATR

  • External NTSC Monitor - 4:3 and 16:9 Question

    I'm trying to find a configuration setting in FCP 5.0 when outputting to an external NTSC monitor that will force the image to "letterbox", rather than crop to 4:3.
    I have a nice Sony NTSC monitor, but it's not the model that allows switching between 4:3 and 16:9 aspect ratios, unfortunately.
    I don't want to have to replace this monitor at this time.
    I see in the latest version of After Effects I can force the image to "letterbox" in the external monitor. I tested it, and it works perfectly.
    Ironically, PhotoShop CS3 does NOT allow you to letterbox your preview to an external monitor. A widescreen formatted file appears cropped in my monitor.
    So, my question is can I do this in FCP 5.0? Why am I stuck with a cropped image from a 720x480 aspect ratio? Is there a setting somewhere that will force the preview to letterbox on my monitor?
    On a similar note, what will we use to replace NTSC monitors if you're shooting and editing HD?
    Thanks so much.

    FCP will not unsqueeze the image for you...you need a monitor that has this option.
    what will we use to replace NTSC monitors if you're shooting and editing HD?
    And HD monitor. But then you need some sort of HD capture card or output device (unless you are working with DVCPRO HD)...even HDV. And then you will need an HD monitor. The cheapest solution might be the Decklink Intensity and small HDTV...the intensity has HDMI out. But this only works if you have a MacPro. The MATROX MXO is next, and it connects via DVI. It can output a signal to an HDTV (component), or to an Apple Cinema Display or Dell 24" Display. That gets you broadcast quality on a computer monitor...believe it, or not!
    http://library.creativecow.net/articles/ross_shane/MXO.php
    Shane

  • Performance with MySQL and Database connectivity toolbox

    Hi!
    I'm having quite some problems with the performance of MySQL and Database connectivity toolbox. However, I'm very happy with the ease of using database connectivity toolbox. The background is:
    I have 61 variables (ints and floats) which I would like to save in the MySQL-database. This is no problem, however, the loop time increases from 8ms to 50ms when using the database. I have concluded that it has to do with the DB Tools Insert Data.vi and I think that I have some kind of performance issue with this VI. The CPU never reach more the 15% of its maximum performance. I use a default setup and connect through ODBC.
    My questions are:
    1. I would like to save 61 variables each 8-10ms, is this impossible using this solution?
    2. Is there any way of increasing the performance of the DB Tools Insert Data.vi or use any other VI?
    3. Is there any way of adjusting the MySQL setup to achieve better performance?
    Thank you very much for your time.
    Regards,
    Mattias

    First of all, thank you very much for your time. All of you have been really good support to me.
    >> Is your database on a different computer?  Does your loop execute 61 times? 
    Database is on the same computer as the MySQL server.
    The loop saves 61 values at once to the database, in one SQL-statement.
    I have now added the front panel and block diagram for my test-VI. I have implemented the queue system and separate loops for producer and consumer. However, since the queue is building up faster then the consumer loop consumes values, the queue is building up quite fast and the disc starts working.
    The test database table that I add data to is created by a simple:
    create table test(aa int, bb char(15));
    ...I'm sure that this can be improved in some way.
    I always open and close the connection to the database "outside the loop". However, it still takes some 40-50 ms to save the data to the database table - so, unfortunatly no progress to far. I currently just want to save the data.
    Any more advise will be gratefully accepted.
    Regards,
    Mattias
    Message Edited by mattias@hv on 10-23-2007 07:50 AM
    Attachments:
    front panel 2.JPG ‏101 KB
    block diagram.JPG ‏135 KB

  • Database connection question...

    i am using Java 1.5.0_06 and to connect to MySQL database i use Connector/J and the following code:
    try {
    Class.forName("com.mysql.jdbc.Driver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("Main: ClassNotFoundException: ");
    System.err.println(e.getMessage());
    return;
    try {
    con = DriverManager.getConnection(dburl);
    ps = con.prepareStatement(
    I was told i should be using a DataSource to do connection pooling and i have read over the info and downloaded jdbc2_0-stdext.jar and i am using MySQL and windows XP pro.
    the code looks like this
    Context ctx = new InitialContext();
    DataSource ds = (DataSource)ctx.lookup("jdbc/InventoryDB");
    Connection con = ds.getConnection("myUserName", "myPassword");
    then i just use con as i have already in my code.
    Can someone please point me in the right direction to get this working.
    I read this:
    A systems administrator or someone working in that capacity deploys a DataSource object. Deployment, which involves setting the DataSource object's properties and then registering it with a JNDI naming service, is generally done with a tool. As part of the registration process, the systems administrator will associate the DataSource object with a logical name. This name can be almost anything, usually being a name that describes the data source and that is easy to remember. In the example that follows, the logical name for the data source is InventoryDB . By convention, logical names for DataSource objects are in the subcontext jdbc , so the full logical name in this example is jdbc/InventoryDB .
    i have goggled but can't seem to find out exactly what i need to do next.
    I can't find the "tool" and have to be honest i am lost lol.
    can the The JDBC 2.0 Optional Package work with Java 1.5.0_06?

    i am using Java 1.5.0_06 and to connect to MySQL database i use Connector/J and the following code: i updated it to use manual connection pooling like so:
    final String dburl = "jdbc:mysql://localhost/......";
    Connection con = null;
    try {
    Class.forName("com.mysql.jdbc.Driver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("Main: ClassNotFoundException: ");
    System.err.println(e.getMessage());
    return;
    try {
    DataSource dataSource = setupDataSource(dburl);
    con = dataSource.getConnection();
    con.close();
    public static DataSource setupDataSource(String connectURI) {
    ObjectPool connectionPool = new GenericObjectPool(null);
    ConnectionFactory connectionFactory = new DriverManagerConnectionFactory(connectURI,null);
    PoolableConnectionFactory poolableConnectionFactory = new PoolableConnectionFactory(connectionFactory,connectionPool,null,null,false,true);
    PoolingDataSource dataSource = new PoolingDataSource(connectionPool);
    return dataSource;
    so i compiled and ran it and it worked no problem but my question is that this is a server that does some db work upon starting and then waits for clients like so:
    while (listening)
         new PSMultiServerThread(serverSocket.accept()).start();
    so once i am in PSMultiServerThread what exactly do i need to do?
    i know i don't need to do this again:
    Class.forName("com.mysql.jdbc.Driver");
    but do i need to do this again:
    DataSource dataSource = setupDataSource(dburl);
    i geuss i have to to declare the variable lol.
    and do i include this code in the PSMultiServerThread
    public static DataSource setupDataSource(String connectURI) {
    ObjectPool connectionPool = new GenericObjectPool(null);
    ConnectionFactory connectionFactory = new DriverManagerConnectionFactory(connectURI,null);
    PoolableConnectionFactory poolableConnectionFactory = new PoolableConnectionFactory(connectionFactory,connectionPool,null,null,false,true);
    PoolingDataSource dataSource = new PoolingDataSource(connectionPool);
    return dataSource;
    --------------------------------------------------------------------------------------

Maybe you are looking for