Can i using RMI to solve performance issue

I have two database which in USA and CHINA, and a web application which located on USA, if the application connect to USA DB it is ok, i think no performance issue, but if connet to china DB, i sure that has even throgh VPN. So can i using RIM technology to solving the issue? Or using another solution. Thanks

So can i using RIM technology to solving the issue?It sounds like your problem is with Network latency.
I assume your web application connects to the database directly through JDBC and you're proposing to add a middle layer of RMI. Doing this will not reduce network latency - however if you're clever about how you serialize your resultsets, you can reduce the amount of network traffic and improve performance.
Have a look at this thread about compressing RMI data:
http://forum.java.sun.com/thread.jspa?threadID=606187&tstart=0
Note that compressing the data will add processing overhead at both ends.
Also remember to override the readObject/writeObject methods in the objects you're serializing.

Similar Messages

  • HT201269 Can anyone assist me to solve this issue? how to purchase apps from Apple Store using in Afghanistan?

    Dear All,
       I use my iPhone here in Afghanistan, and location of my Apple ID is set to US, I want to purchase some apps from Apple Store but when i enter my credit card details so it ask me for US's Credit Card, Even i could not find Afghanistan in the list of countries.
    Can anyone assist me to solve this issue?
    Thank You.

    Sorry, but there is no iTunes Store for Afghanistan and you are not allowed to use the iTunes Store of any other country, so unless you physically go to another country and have a valid payment method issued in that country (an Afghani credit card will not be accepted), you cannot purchase apps.
    Regards.

  • I try to create an html for IPad. The html page contains an element overlapping a video, now it works as for view but the focus is still with video. This denies the event of overlapping element from occuring. Can please anyone help to solve this issue?

    I try to create an html for IPad. The html page contains an element overlapping a video, now it works as for view but the focus is still with video. This denies the event of overlapping element from occuring. Can please anyone help to solve this issue?

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Use of HttpSession and Performance Issues

    I am working on an application where we are storing data in a user's HttpSession. The application consists of several modules. Each module consists of sub-modules. A sub-module contains various data which is display to the user as multiple tabs with each tab displaying a JSP. The data displayed on each JSP is stored in the HttpSession for a given browser window. So if the user only has one browser window open there will be one entry in the HttpSession for that window containing the data for the various tabs of the displayed sub-module.
    This effort has been a transition of a legacy Powerbuilder application over to the Web. We have noticed, along with the users :( some delays in displaying data. We only connect to the database during the initial retrieve of the data. Once the data for a sub-module is retrieved it is displayed and stored in the HttpSession. As the user makes modifications we modify the appropriate structure in the HttpSession. When the user Saves the data, that is when we make a connection to the back end database.
    What is the best way to determine if there are true performance issues or whether we are just experiencing the cost of doing business across the Web?
    Does using HttpSession cause potential performance issues?
    We are also using the Netui tags in the JSP's and we have discovered some overhead when tag ids are used. In most places we have removed the tag ids since extra script is generated when they are used in conjunction with the Netui tags. This has helped in some places with the rendering of data on a page.
    Anyone have any suggestions/ideas?
    Thanks in advance.
    Michelle

    Is anybody using MODEL in production?
    How is the performance - is there any real problems?I used a MODEL query last year to simulate a FIFO queue and calculate average stock prices.
    It performs pretty well, but the volume of data is small though (~200k rows processed per batch session).

  • How to solve performance issue

    Hi
            How to resolve performance issue in following select query-
    SELECT *
              INTO CORRESPONDING FIELDS OF TABLE it_final
              FROM  ce1zcsc
              WHERE paledger  EQ c_10                 "Currency Type
              AND   vrgar     IN s_vrgar              "Record Type
              AND   versi     EQ space                "Plan Version
              AND   perio     IN r_perio              "Period
              AND   bukrs     IN s_bukrs.             "Company Code
    TABLE CE1ZCSC has around 173 fields,but it_final has around 105 fields.
    The indexes are created for the following fields:
    paledger
    vrgar
    versi
    perio
    bukrs and
    prctr.
    I doubt whether we should look for Estim. CPU-Costs in  index range scan or table access by index rowid in Execution plan for SQL statement.
    If anybody can provide me with  informative documents on performance issue.

    Hi,
    Dont use "  * " & " corresponding fields " in the select query rather declare all the fields and use the "into table" clause.
    Let me know if you still face the same problem.
    -Naveen.

  • Solve Performance Issue... with multiplethread

    I made an application with a huge row indatabase table...
    every siingle process could process thousand rows
    Is it make sense to divide one process in single http request
    for example ( divide process by create ten application module )
    into multiple thread?
    has anyone have some problem with me?
    and how the best strategy to solve this problem?

    OK, this helps to understand the problem.
    We had a problem alike yours. What we end up doing with is to read the files into a temporary db table, committing every 500 rows to reduce memory usage. We do this without any validation, just to get hold of the data in the db.
    After all data from a file is in a db table we do the validation (you can even use pl/sql for this) and show all rows to the use which are not valid. This gives the user the change to correct the rows (or dismiss them).
    After that (now knowing that hte data should be processed without any error) we do the real work of inserting the data.
    All you ahve to do is to work in chunks (we use 500-1000 rows) before we commit the data already processed. Flags in the temporary table allow us to start the process again if something happens during processing the data.
    Working in chunks allows the framework to free and regain some memory used while doing the work.
    Timo

  • Macbook Pro 2.53 mid 2009 came with 60 watt magsafe can I use a 85 watt without issues also can i use the new aluminum tip one?

    My macbook came with a 60 watt magsafe charger with the white magnetic tip. It crapped out on me and now need to buy a new one but everyone says it uses a 85 watt which is false since i bought it new and the 60 watt charger came in  the sealed box.
    1. If I buy the 85 watt will it damage my macbook pro?
    2. can I use the new magsafe charger with the new aluminuin tip with my macbook pro?
    Look below in red is the proof
    15-inch Configurations
    Enclosure
    Precision aluminum unibody
    Processor
    2.53GHz Intel Core 2 Duo
    2.66GHz Intel Core 2 Duo
    2.8GHz Intel Core 2 Duo
    L2 cache
    3MB shared
    3MB shared
    6MB shared
    System bus
    1066MHz
    1066MHz
    1066MHz
    Memory
    4GB (two 2GB SO-DIMMs) of 1066MHz DDR3 SDRAM; supports up to 8GB
    Hard drive4
    250GB Serial ATA; 5400 rpm
    320GB Serial ATA; 5400 rpm
    500GB Serial ATA; 5400 rpm
    Slot-loading optical drive
    8x SuperDrive (DVD±R DL/DVD±RW/CD-RW)
    Graphics
    NVIDIA GeForce 9400M graphics processor with 256MB of DDR3 SDRAM shared with main memory3
    NVIDIA GeForce 9600M GT graphics processor; and NVIDIA GeForce 9400M graphics processor with 256MB of DDR3 SDRAM shared with main memory3
    Graphics memory
    256MB GDDR3
    512MB GDDR3
    Video
    Built-in iSight camera; Mini DisplayPort output port with support for DVI, VGA, and dual-link DVI (requires adapters, sold separately)
    Display
    15.4-inch (diagonal) LED-backlit glossy widescreen display, 1440-by-900 resolution
    Expansion
    One FireWire 800 port (up to 800 Mbps), two USB 2.0 ports (up to 480 Mbps), SD card slot
    Audio
    Built-in stereo speakers, built-in omnidirectional microphone, combined optical digital input/analog line in, combined optical digital output/analog line out
    Networking
    Built-in 10/100/1000BASE-T (Gigabit) Ethernet
    Wireless
    Built-in AirPort Extreme Wi-Fi (based on IEEE 802.11n draft specification)2; built-in Bluetooth 2.1 + EDR (Enhanced Data Rate) module
    Hardware accessories
    60W MagSafe Power Adapter, AC wall plug, power cord
    85W MagSafe Power Adapter, AC wall plug, power cord
    Limited warranty
    and service
    Your MacBook Pro comes with 90 days of free telephone support and a one-year limited warranty. Purchase the AppleCare Protection Plan to extend your service and support to three years from your computer’s purchase date. Only the AppleCare Protection Plan provides you with direct telephone support from Apple technical experts and the assurance that repairs will be handled by Apple-authorized technicians using genuine Apple parts. For more information, visit Apple support or call 800-823-2775.
    Apple and the global
    environment
    Learn more about Apple’s dedication to reducing the environmental impact of our products and processes. The Apple Product Environmental Specification details the environmental attributes of our products.
    Recycling
    Apple takes a holistic view of materials management and waste minimization. Learn more about how to recycle your Mac.

    Yes, you can use the 85 watt adaptor. You cannot use the new adaptors because your computer is not equipped with the proper MagSafe connector. But you can use the older MBP adaptors as well as a 60 watt replacement adaptor. All can be found at Apple's Online Store.

  • How deep can a package be? any performance issue?

    Hi experts,
    Is there any performance issue if I create deep path to a class for the sake of a well organized classes?
    com.mycompany.mydivision.projectA.forms.news.headlines;
    com.mycompany.mydivision.projectA.forms.news.events;
    com.mycompany.mydivision.projectA.dao.calendar.events;
    or
    a.b.c.d.e.f.g.h.i.j.k.l;??????
    any reading materials on this?
    Thanks

    I don't know what the limit on deepness is, but there shouldn't be any performance issues. All the classes are loaded when your program starts, so the JVM doesn't need to traverse through all those directories each time you reference one of the classes.

  • Can't access "Network" and other performance issues

    Hi all,
    I'm facing a catch-22 and am not sure what to do to get myself and my mac out of this downward spiral. Any help you can offer would be greatly appreciated (fyi I am admittedly not great with macs and probably don't maintain my MacBook Pro well enough).
    I've had a serious slowdown in performance starting a couple weeks ago. the system moves at a glacial pace and most of the time is spent watching the spinning rainbow.
    To add to my issues, my ISP recently performed a system upgrade which requires me to change some settings under "Network" in my system preferences. Well, when I try to access "Network", the machine thinks for a while, then an error message appears telling me that the network preferences has shut down unexpectedly. When I hit "retry" the error message eventually reappears.
    So, because of the upgrade, I can't access the internet to download any repairs for the machine, and because of the problems with the machine, I can't modify the preferences to access the internet. Obviously a vicious cycle which someone of my expertise level is struggling to solve.
    Side notes
    - I've passed the 90-day phone support period so can't call for help.
    - I'm on my work computer now. Could I download some repair/diagnostic tool here, then run it on my machine at home?
    If anyone can throw me a lifeline I would be grateful!
    MacBook Pro 15"   Mac OS X (10.4.3)  

    OZ 99,
    For logic's sake, I'm gong to take these out of order a bit:
    2) A "disk error" occurs when the "file system" (sometimes called the "disk directory") becomes damaged. This is data that is written to the HD, so yes, it could be considered a software error. Your file system is, basically, a map of your physical HD, and it indexes the location on the drive of all the other files. When it is damaged for whatever reason, your disk "forgets" where some amount of data lives. Because of this, the associated files become damaged, or "corrupt." If those files happen to be critical components of the OS, bad things can happen. At worst, the disk will become unmountable, and all of your files unrecoverable.
    1) Disk errors can be caused by several things. Sometimes, one or more "blocks" (let's call them physical locations on the disk) on your HD can become physically damaged. Whether this is because of a slight flaw in manufacturing, a scratch, magnetic particles that lose their "oomph," whatever, matters not. What is important is that some data is lost. Because the file system still believes there is data living in this location, it (the file system) is no longer reliable; it is damaged. While the initial loss of data could be considered hardware-related, the disk error is not. I'll come back to this.
    Another potential cause is some random error in the process of writing data to the disk. Again, this is a software problem, not a hardware problem. The most common cause for this occurs when your computer is shut down improperly, either a forced shutdown or a power loss. Journaling, which is the default for an OS X boot volume, goes a long way toward automatically fixing these types of disk errors, but it is not always a guarantee.
    If you have had your MBP for only a short period of time, it is not surprising that a disk error has occurred, and probably because of a bad block. Absolutely flawless drives are rare, and many computers ship with incipient disk errors. For this reason, many people like to format any new drive, even one in a new computer, right out of the box (I'll get to reasons why this is a good thing to do).
    3) Yes. Disk Utility can check or repair your file system. Any repairs must be made using Disk Utility while booted to the OS X install disk. Your HD can be "verified," however, while booted to the HD. Simply open Disk Utilty (in the "Utilities" folder), select your startup disk, then click "Verify" in the "First Aid" pane.
    4) Yes, you will have to reinstall all of your applications after formatting and reinstalling. Formatting erases everything on the volume or drive selected. Settings and data for all of those applications can be saved, however, then transferred back to the MBP after reinstalling OS X. Once the applications, themselves, have been reinstalled, you will be right back where you started. I can talk about making a comprehensive backup in another post, if you like.
    DISK UTILITY: In my first post, I recommended that you select your entire drive, then using the "Zero All Data" option. This process takes a considerably longer amount of time (as much as an hour and a half, depending on the size of your drive), but it has one big advantage. When this option is used on an entire physical drive (also called a "device"), it will scan for those pesky bad blocks, and "map out" any it finds. Since these bad spots on the disk will not be included in the new file system's list of "useable" locations, your chances of encountering another disk error in the near future is drastically reduced. So, even though a bad block could be considered a hardware error, management of them is handled by software.
    Scott

  • How do I delete or change my number in my old iPhone, so that I can still use it for iMessages without issue?

    I have an iPhone 4S that was with Verizon. About a week ago I ported into Virgin Mobile and bought a new phone to use until the next iPhone comes out. I now still have my old iPhone, which I want to use for iMessages, as well as like an iPod, etc.
    The issue I am seeing is that my phone number is still registered to my iPhone and I haven't yet figured out how to delete it or change it. The problem this is causing is it is making my iPhone sometimes intercept messages from those with iMessage who are texting my phone number. The messages should be going to my new phone, not my iPhone, since they are texting my phone number (not my iMessage email) and my iPhone has no service connected to it.
    Here's an example of what I'm trying to say: the other day I texted a guy selling an item online. I used my new phone to text him, not my iPhone. He texted me right back, but the text went to my iPhone, not my new phone. We then texted each other via iMessage and no texts were making it to my new phone.
    I think this is also causing some messages to not go through on my new phone either, where I'm just simply not getting texts from people sending me messages. My iPhone isn't getting the messages, nor is my new phone.
    What I need to do is delete my number or put a random number in my phone so that I don't keep missing or losing texts. I saw the ways recommended to disconnect your number from iMessage, but that then kills my ability to use iMessage on my iPhone. There must be a way that the number in my iPhone can be changed or deleted. We are in 2013 I think, and this was something I always had the option of changing via manual programming on every phone I've had since 1902 or so.
    How to do this?!

    I also already deleted my phone number from iMessage on my MBP.

  • Can i use "Oracle Database 12c: Performance Management and Tuning " training for getting certification on "Oracle Database 11g: Performance Tuning 1Z0-054"

    i have taken "Oracle Database 12c: Performance Management and Tuning new" training from oracle university. Now i would like to get certified on "Oracle Database 11g: Performance Tuning 1Z0-054" exam. Is it possible ?

    I essentially endorse and refer you to Matthews' and John's post above.
    I would differ with slightly with Matthew because my guess is you would often be able to use like for like 12c training for an 11g certification ( I believe there are precedents).  BEFORE ANYONE ASKS THE OTHER WAY DOESN'T HAPPEN.
    .... but totally concur with Matthew you would ill advised to procede on that basis without one of:
    - This being advertised as possible on the website : e.g. https://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=654&get_params=p_id:169 ... option 2 show courses.
    - Confirmation from Brandye
    - Confirmation from an Oracle Certification Support Web Ticket ( http://education.oracle.com/pls/eval-eddap-dcd/OU_SUPPORT_OCP.home?p_source=OCP )
    ... The more common (and in my opinion usually better) way would be get your 11g DBA OCP ( or higher first) and then take the 1z0-054.  I am almost certain they will accept your 12c course for the 11g DBA OCP.
    If you are choosing the route of not being a 11g (or 12c ) DBA OCP first but are on option 2 and relying on the course for certification then the issue is more in the balance and you are even more strongly advised to get confirmation before proceding (remember if the rules need to be changed for you only then any profit out of the exam is lost).
    In general my understanding is Oracle would prefer to encourage people to train on the latest version of product that is available for training  and will prefer to avoid restrictions which would cause you to train at a lower version.  ( This is simply my guess at Oracle University Policy ... personal opinion only).
    Having said all I have said I'd encourage you to go with the advice of the earlier two posts.

  • How can I use RMI packages in J2ME?

    Hi all.
    I can not find the way to use java.rmi.server and java.rmi.activation packages.
    I know that are in the Java RMI optional Package, but I dont know where can i get it.
    Some help?
    Thanks

    Hi all.
    I can not find the way to use java.rmi.server and java.rmi.activation packages.
    I know that are in the Java RMI optional Package, but I dont know where can i get it.
    Some help?
    Thanks

  • How can I use a VI to perform a function in another, parallel running program on Windows XP?

    I have a state machine based VI that moves moves a sampling actuator into exhaust gases that we would like to sample.  One of the states is a sampling process where our diagnostic equipment (gas chromatograph) sucks in the sample and analyzes it.  Unfortuntately, the GC is so old, that I can't find a way to make a Labview driver for it.  However, it does have its own software that can trigger it.
     If I was to do it manually, I would just click a button on the GC's program that says "Sample".  What I would like to do is have my Labview VI do this autonomously ever time it gets to the sampling state.  I have a feeling this involves the Windows API or DirectX but I have absolutely no clue on where I can look to perform such an operation.  
    Would anybody be able to offer me any assitance, know-how or direction for this vexing question?
    Thank You,
    Tei

    In the absence of drivers, a rather nasty way to achieve this would be to ensure that your software always occupies the same portion of the screen such that you know the position of the 'sample' button. You could then simulate a mouse click at those coordinates when you require a sample to be taken.
    This would not be a robust solution as a user could move or minimise the window, or other windows could also find their way into the critical position and cause the application to work incorrectly or cause unexpected things to happen.
    However, if you just need a short term work around this method might be acceptable, just be aware of the risks if you try it.
    Searching for simulate mouse clicks and having a play is the way forward.
    As an example of simulating a mouse click in a certain position, have a look here:
    http://forums.ni.com/t5/LabVIEW/Programatically-Se​lecting-a-ring/m-p/1463242#M557128
    Ian

  • Can't use templates due to some issue with "sites"

    I'm trying to create a website from a template on dreamweaver, but my computer is giving me some grief about "adding a site". I already entered the information for my site in the "configure server" box. I've entered the proper info for ftp host and host directory etc. I can even see a window on the right side of the screen that lists all the files in my website's directory. All the files in there now were old files I made using another template from iweb.
    Here's what I did:
    (1) select "start page: theme" from the dreamweaver's main panel
    (2) I selected a template that I liked.
    the error message I get: "Dreamweaver stores templates in the root folder of a site, but there are no sites defined. Please add a site".
    I then clicked on "manage site" which then lists the sites that I created earlier. I click on one of them and then hit the "done" button. How come nothing happens? I never get a screen with the actual template in it. I have no idea what's going on. Any ideas how to fix this? I know I created a site, so why is the program complaining?

    This sounds like you have not actually 'created' a site definition, but simply viewed them and clicked done.
    try following this tutorial -  http://www.adobe.com/devnet/dreamweaver/articles/first_cs4_website_pt1.html.
    PZ

  • Can I use RMI to find an object with contructor with params?

    Does an RMI available object HAVE to be a parameter-less constructor?
    All the examples I see are:
    MyClass mc = (MyClass) Naming.lookup("/HelloServer");
    Is there any way to pass arguments to its constructor?

    RMI client invokes a remote method on the server object through proxy stub of the server object obtained via Naming service. Stub implements all remote interfaces exported by the RMI server object which basically marshals all the parameters of the remote method, sends the method request to server object skeleton residing in a different address space via TCP connection and finally receives the result from the server object if any, unmarshals and returns result to the caller.
    Server side RMI appilcation instantiates the RMI server class which implements all intended remote interfaces, exports it to the RMI runtime and finally registers itself with Naming service. RMI client only obtains a reference to the RMI server object through lookup method of the Naming service. Remember client does not instantiate a server object, client only knows about the remote interface implemented by the server object and does not have any idea about its implementation object details. On the server sice the Class which implements remote interfaces, can pass any number of arguments to its constructor.
    In your example, MyClass is the stub to the remote server object which implements "MyClass" remote interface. The stub only provides boiler-plate code for remote methods which marshalls params, sends request to RMI server object, receives the result object, unmarshals it and finally returns it to the caller. The stub only contains the necessary information details like remote object ID, host and port to contact the RMI server object which implements the remote interface.
    So client does not instantiate a server implementation objet, it only obtains a reference (stub) to the server object thru Naming service. Remote interface implementation object can declare a constructor which takes any number of arguments. RMI server side application only instantiates this implementation object and registers its stub with the Naming service.
    -- Srinath Mandalapu

Maybe you are looking for