Java Bean Connectivity and Closing Connections (XI 3.0)

Hi guys,
We have existing Java Beans that we would like to use with Crystal Reports. Our current Java beans return a disconnected GridModel and explicitly close the connection immediately after so that they can be returned to the connection pool (Oracle).
Once we modified these beans to return ResultSets we found that closing the connection also closes all the associated ResultSets and Statements.
What is the best practice here?
Modify the Java bean to close the connection in the finally block?
Will Crystal clean up after itself?
I also see there is something called a CachedRowSet which is disconnected:
http://java.sun.com/j2se/1.5.0/docs/api/javax/sql/rowset/CachedRowSet.html
Is this supported by Crystal?
Thanks,
Kevin D Lee =)

Hello Kevin,
Enterprise XI 3.0 CRConfig.xml points to Java JRE 1.5 provided with the install, so you should be ok with the CachedRowSet. 
It's used by other customers for disconnected operation.
Since you're going to Oracle, you'd likely encounter issues mapping Oracle fields to POJO property types.
Furthermore, POJO Factory libraries that were shipped with Crystal Reports XI Release 2 aren't shipped with Enterprise XI 3.0, so you'd not find that an out-of-the-box option. 
Another alternative to CachedRowSet is to define callback method in your JavaBeans class that Crystal will call when it's done with the data source. 
This has been implemented in XI 3.0 (track ADAPT00877915) - excerpt from the track note:
<JavaBeans>
    <CacheRowSetSize>100</CacheRowSetSize>
     <JavaBeansClassPath>c:\javabeans\</JavaBeansClassPath>
     <CallBackFunction>CrystalReportsLogoff</CallBackFunction>
</JavaBeans>
      Customer can configuration the <CallBackFunction/> to let CR know
      which function should be invoked when loging off.
Advantage of CachedRowSet is that you can immediately close it after you've read all the data, disadvantage would be the default implementation stores all data in memory.
Advantage of the callback method is that it would use the JavaBean you've supplied (and not load all data immediately in memory), but callback won't be called immediately, but only after the report is done with.
Sincerely,
Ted Ueda

Similar Messages

  • What is the diff.b/w UD connect and DB Connect

    Hai,
              can any one expalin diff.b/w UD connect and DB connect...
    Regards

    Hi Lakshmi,
    please check the threads below
    UD and DB Connect
    DB connection,UD Connect Document
    Also this
    http://help.sap.com/saphelp_nw04s/helpdata/en/a6/c0e51914e842e19bda39dbbe4fe78c/frameset.htm
    hope this helps!
    Regards
    Chandru

  • 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

  • TS1814 I had to restore my Ipod Touch and now I can't connect to anything on it. When it asks for my Apple ID it comes up with an error message and says that it can't connect to the server. I have checked my WiFi connection and its connected.

    I have had to restore my Ipod Touch and now I can't connect to anything on it. When it asks for my Apple ID it comes up with an error message and says that it can't connect to the server. I have checked my WiFi connection and its connected.

    Hi there,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    -Griff W.

  • Internet works, but I have an exclamation mark instead of AirPort connection and cannot connect to my WiFi.. PLEASE HELP!

    Internet works, but I have an exclamation mark instead of AirPort connection and cannot connect to my WiFi.. PLEASE HELP!

    When you see an exclamation point in the Wi-Fi menu, from the menu bar, select
     ▹ System Preferences... ▹ Network
    Click the Assist me button and select Assistant. Follow the prompts. You may get a warning that Wi-Fi is not available, that you're too far from the base station, or that you're using the wrong password.
    Assuming that you've ruled out those possibilities, restart the computer and try again. If there's no change, click the lock icon in the lower left corner of the preference pane and authenticate, if necessary. From the Location menu at the top of the window, select Edit Locations. A sheet will drop down. Click the plus-sign button to create a new location. Give it any name you want. In the new location, set up the Wi-Fi service with the same settings you used before. Click  Applyand test.
    If there's still no connection, and if you have control of the router, compare its settings to Apple's recommendations. Some third-party routers may be incompatible in 802.11b/g/n radio mode. Try setting the mode to 802.11n only.

  • My iPhone 5 will only connect and keep connected if I am about 5feet away from my router. It also will not pick up other wifi sources and will drop Bluetooth. What can I do to solve this problem?

    My iPhone 5 will only connect and keep connected if I am about 5feet away from my router. It also will not pick up other wifi sources and will drop Bluetooth. What can I do to solve this problem?

    Are there any other wireless devices that might cause interference?
    Also are there any nearby Wi-Fi networks that might have the same name as yours? It amazing how many Linksys Wi-Fi networks are out there.

  • Wifi connecting and disconnecting, connecting and disconnecting . . . .

    Hi
    My dad has just inherited the iPhone 3G from my brother, and is having trouble connecting to the home wifi.
    I also have the same phone, and have no problem connecting. before my brother gave the phone to my dad, he also had no problem connecting with the home netowork.
    What is most confusing is that the phone recognises the network, automatically connects to it, and within seconds, it disconnects. Then goes through the same process again, and again and again . . . . . . .connecting and disconnecting, connecting and disconnecting . . . . .. etc.
    It's like flicking a switch on and off - non stop.
    I am very technically inept, so would be very gratefull of some insight.
    Thanks

    I think you have the wrong forum. This is the ThinkCenter forum, for desktop systems, you have a Thinkpad?

  • Java web start and db connection problem

    Hi
    I have an application that that connects to a db directly using jdbc . The problem i have is that when i start the app thru the web start it shows me this error
    java.sql.SQLException: Unable to connect to any hosts due to exception: java.security.AccessControlException: access denied (java.net.SocketPermission 10.0.0.112:3306 connect,resolve)
    10.0.0.112 is the linux machine with mysql.
    10.0.0.2 is the XP machine where im calling the web start.
    im using JBuider to develop in a different box under windows XP, and from JBuilder enviroument i can connect to the DB.
    Do any one knows what the problem can be ? thankx !!
    this is my jnlp
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <jnlp spec="1.0+" codebase="http://10.0.0.2/POS/POS"
    href="jataPOS.jnlp">
    <information>
    <title>jataPOS</title>
    <vendor>Rodrigo Alfaro</vendor>
    <description>jataPOS</description>
    </information>
    <resources>
    <j2se version="1.4+" />
    <jar href="jataPOS.jar" main="true"/>
         <jar href="connector.jar" main="false"/>
    </resources>
    <application-desc main-class="jatapos.MainGUI" />
    </jnlp>

    see: http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/development.html#signing.
    http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/rsa_signing.html, or
    http://java.sun.com/j2se/1.5.0/docs/tooldocs/index.html#security
    /Dietz

  • Creating DAO layer from java beans(setter and getter methods)

    Can anybody explain me how to create an adapter layer (DAO layer) from java beans with no connection and transaction code inside DAO layer?

    Sure, have another layer do the transaction work.
    Your DAO would make us of this layer.

  • Differences between jdbc connection and datasource connection

    Hi all
    What are the differences between javax.sql.datasource and java.sql.connection.
    Is the datasource needed on in distributed databases or ??
    In a distributed EJB enviornment, what happens if a component has a transctionattribute setting as SUPPORTS and tries to commit data - will the ejb container start a transaction though the setting is SUPPORTS.
    Thanks in advance.

    Hi all
    What are the differences between javax.sql.datasource
    and java.sql.connection.
    Both are database connections. A connection is a handle to database. When you are directly creating a connection by calling Drivermanager.getConnection(..) , you are creating a connection by yourself and when closing close() on it, the link to database is lost. On the other hand when you get a connection from a datasource, when you call the close() on it, it will not close the link to database, but will return to a connection pool where it can be reused by some other classes. It is always better to use a connection pool because creating connections are expensive
    Is the datasource needed on in distributed databases
    or ??
    >
    You can create datasource to any databse local or remote.
    In a distributed EJB enviornment, what happens if a
    component has a transctionattribute setting as
    SUPPORTS and tries to commit data - will the ejb
    container start a transaction though the setting is
    SUPPORTS.
    hmmm..i am not sure. I think the container sets the commit and rollback points for it . so container will override database settings.

  • I want to connect an Airport Express via WiFi to my internet connection and then connect its LAN port to the WAN port of a Time Capsule. Will then any device connected to the time capsule wirelessly be also connected to the internet?

    Background is I can't hook up my time capsule directly to my internet connection via network cable. I tried to extend the network via Wifi, but that did not work. At the moment I have two wireless networks, one with internet connection and another one with my time capsule. So to use time machine I have to change my network all the time.
    Can I buy an Airport Express, use is as a client to my internet connection wifi and provide that connection via network cable to my time capsule and all it's wifi clients?

    The AirPort Express will connect to your existing wireless network if the network is using WPA2 Personal or WPA/WPA2 Personal wireless security settings.
    So, it can join the network as a client and then provide an Ethernet signal to your Time Capsule.
    Be sure to configure the Time Capsule to operate in Bridge Mode so that it will be operating on the same network.

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

  • Having issues when connecting and re-connecting back to a session.

    When i am log-on to the MPS2012 through the thin client and let say there was a need to re-connect because of power issue or the network issue for that particular client was disconnected; So when the user connect back to it, it bounces back and fails for
    re-login, after re-logging again, it still bounce back. And other client connect to the particular VM are still connected and running.
    And also in the morning, when i connect, it fails at times and when i ping that particular VM, it times out"Request time out", until i restart it before it start replying and then the client systems will now be able to connect.
    Its giving me concern because they are complaining and also its a school environment. I need resolve this so that even if i am not there they will be able to connect easily and re-connect easily if there was a disconnection from any thin client.
    Please i will really appreciate if anyone can assist me resolve any of this issue or what the cause/problem is.
    Thanks

    cmuunswcanberra wrote:
    It has happened once in another project but I was able to re-type into it and it worked.
    So it sounds as though it may be the project.
    Try this.
    Delete preference files with Preference Manager.
    Delete project ender files.
    Create a new project.
    Copy the problem project and paste into the new project.
    Test a title.
    Good luck.
    Russ

  • 2012 MacBook Pro Intel i7 (purchased May 2013) constantly drops airport connection. My 2006 MacBook Pro has no problems connecting and staying connected.

    I received a 2012 MacBook Pro INtel i7 for my birthday this May 2013. It constantly drops my airport connection. My ancient 2006 MacBook Pro has no problem connecting to airport, nor staying connected. I've had to write this message several times as I keep losing the airport connection and have to reconnect. BTW: I am less than five feet from the airport base.
    Thanks for help.

    After trying all of the above the suggestions, the problem returned as before. However, after digging some more I discovered that the issue appears to lie with the 10.4.10 version of the Mac OS; when I checked the software log under the system profiler I noticed that I had installed that update at about the time my Airport problems began. Apple then quietly released a v 1.1 combo update to 10.4.10 on July 2nd, which once installed appears to have resolved the problem. You can find the download at http://www.apple.com/support/downloads/macosx10410comboupdatev11intel.html
    What's curious is that originally Apple listed that the v 1.1 combo update resolved some issues with RAW image data, and some sound problems, which don't seem to have anything to do with Airport.

  • Performance difference between java.beans.Expression and Java Reflection

    What is the Performance difference between using java.beans.Expression class and Java Reflection classes like Class,Method ??

    negligible

Maybe you are looking for