Correct way of using Packages in the application

Hi,
I would like to know if there is any performance loop hole if i use old developed packages in my current project?
Will there be any problems with the oracle memory structures like lib cache,dict cache and buffer cache?
Example:
I have Packages A,B,C,D
Now i will develop package E, in package E, i want to utilize the old developed business librarys i.e A,B,C,D in E
i.e PACKAGE E AS
BEGIN
A.method();
B.method();
C.Method();
D.Method();
END;
If there will be the performance problems can i develop the same functionality which is there in the previous one in the existing package?
Thanks!!
VJ

Hello VJ,
that's what packages are made for: to be reused. On the other hand, if you use only a small part of the code in the "old" packages it might be useful to extract this code, but only for maintainance reasons. Any developer will be glad if he doesn't have to search 5000 lines of code only to maintain the 100 lines that are used.
So in my opinion the question is: will the procedures/functions of the old packages have to be kept in sync for more then one application, than just reuse them. Do you use most of the code in the packages then just reuse them. If you use only a small part of the code then consider extracting it, but only for maintainance reasons.
Or does old mean that the packages are inefficient? Otherwise they are not old but as young as ever.
Regards
Marcus

Similar Messages

  • Checking on the correct way to use Time Machine

    Checking on the correct way to use Time Machine.
    Open Time Machine in Preferance, Click on options,
    The only item showing on list is my HD.
    Is that correct for every thing to be backed up or should I have other items showing.
    Also should my HD be deleated from this list.
    Await any help.
    Richard

    Richard. B Mann wrote:
    Checking on the correct way to use Time Machine.
    Open Time Machine in Preferance, Click on options,
    The only item showing on list is my HD.
    Is that correct for every thing to be backed up or should I have other items showing.
    no that's wrong. this is TM exclusion list. you add items there that you DO NOT want to be backed up. so currently your whole hard drive is excluded. remove it from there if you want it to be backed up. the only thing that should be present on that list by default is the TM backup drive itself.
    btw, see pondini's TM FAQs for more info on using TM
    http://discussions.apple.com/thread.jspa?threadID=1964018
    Also should my HD be deleated from this list.
    Await any help.
    Richard

  • I have an old (first generation) iMac that I still use sometimes for the applications that are on it. I was using it yesterday and unfortunately had a power cut. I went to turn it on today, and nothing at all happens. It's as though no power is getting to

    I have an old (first generation) iMac that I still use sometimes for the applications that are on it. I was using it yesterday and unfortunately had a power cut. I went to turn it on today, and nothing at all happens. It's as though no power is getting to it. I've checked the obvious things, changed the fuse, tried different cables, poked paperclips in reset holes, but nothing doing. I wonder if there is anyone who knows what might be wrong. I was hoping to get some of its content transferred soon, but I'm guessing that can't be done if it can't be started up. Many thanks, if you can help

    Hello,
    >It's as though no power is getting to it.
    Would it be correct to assume that no sounds at all can be heard? Also, no lights, not even green or amber at the power button?
    >unfortunately had a power cut.
    Was it possibly a power cut in connection with a thunderstorm? Any other evidence of higher than normal voltages (light bulbs, et cetera)? Has the line voltage been checked (measured with an appropriate voltmeter/multimeter)?
    If necessary, it would be possible to remove the hard drive, and then connect it to an external IDE/ATA to USB adapter (example below). That way you could gain access to files on the hard disk from another computer.
    http://www.newertech.com/products/usb3_universaldriveadap.php
    Jan

  • 1.4.2 - What is the correct way to format output in the java.io.PrintStream

    With Java 1.4.2:
    What is the correct way to format output in the java.io.PrintStream?
    The following is incorrect, even though it is still used in the The JavaTM Tutorial at: http://java.sun.com/docs/books/tutorial/essential/
    System.out.formatThis returns "cannot resolve the method 'format'"
    Any detailed suggestions or information is greatly appreciated.

    The following is incorrect, even though it is still
    used in the The JavaTM Tutorial at:
    http://java.sun.com/docs/books/tutorial/essential/
    The whole format thing has been introduced in 1.5. The tutorial also states it's been "updated to 1.5.".
    That's all I've got to say for I don't know how you can format a PrintWriter, let alone a PrintStream, prior to 1.5. I'm not really sure there is any way. Any "legacy way", that is. There almost certainly are third-party API which achieve similar results.

  • Correct way to use double type to represent money quantities

    I was assigned a project where I had to create a class that received money quantities as double numbers and that implemented a method returning a quantity of money as double. I have to use this scheme as we have no seen other data types in class.
    My question is, what can I do to make sure that the value I'm returning is a double number that looks like money. For example, I don't want my method to return 10.78889332., I want it to return 10.79. How can I do that? Is there any intended method for that?
    Can I let this issue like that and then take care of it in the test class by formating the output of the method when using it. I think this approach is not correct.
    Thanks for your time.

    See http://docs.sun.com/source/806-3568/ncg_goldberg.html
    There is no correct way to use double type to represent money quantities. You shouldn't be receiving them, you shouldn't use them, and you shouldn't return them. Floating-point is for science, not money.
    Use BIgDecimal.

  • The application was unable to start correctly (0xc000007b) Click Ok to close the application

    My computer is returning a "The application was unable to start correctly (0xc000007b) Click Ok to close the application" message, every time I try to start After Effects or SpeedGrade

    Oops sorry.
    OS - windows 7 premium.
    CPU - i7-2600 @3.4GHz
    Graphics - Asus HD7750 (running dual display)
    SpeedGrade, Dreamweaver and 3DS max all give the same problem
    Any help?

  • When trying to update applications, where can you find an account you used to purchase the application?

    The App Store has had the little red notification saying I have two new updates to download, for iPhoto and iMovie, but when I go to download them it says "please log into the account you used to purchase the application." I am not sure which account this would be, as I have only had one account on my computer since I purchased it from the Apple Store online. 
    Please help.
    Also, a side note not related to this issue: I have been having problems with system preferences as well, when trying to change the background image the rainbow starts spinning automatically and then it becomes unresponsive.

    Welcome to the Apple Support Communities
    First of all, I suppose that you bought a brand-new Mac, right? If not, you won't be able to update iPhoto and iMovie, because they are registered to another Apple ID.
    If you have a brand-new Mac, first try this > http://support.apple.com/kb/TS4236 If it doesn't work, check that iPhoto and iMovie aren't hidden on your account, so unhide them > http://support.apple.com/kb/HT4928 After doing this, try updating iPhoto and iMovie again.
    If nothing works, contact with the App Store support > http://www.apple.com/support/mac/app-store/contact
    Respecting to your second problem, your Desktop settings file is corrupted. To fix it, follow these steps:
    1. While you are on Desktop without any application opened, select Go menu (on the menu bar) > Go to Folder, and type ~/Library/Preferences.
    2. Delete "com.apple.desktop.plist" and "com.apple.systempreferences.plist", and restart

  • No question, I just wanna say thanks to the person who discovered how to change the correct dns to use FaceTime. The 8.8.8.8. Really work. Genius. Thanks again.

    No question, I just wanna say thanks to the person who discovered how to change the correct dns to use FaceTime. The 8.8.8.8. Really work. Genius. Thanks again.

    solved

  • Why the bottom of the screen of my ipod can not be used to open the application but the application could be to shift

    why the bottom of the screen of my ipod can not be used to open the application but the application could be to shift, please help me

    Try:
    - Reset the iOS device. Nothing will be lost      
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
    - Restore to factory settings/new iOS device.                       
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar                                                              

  • How do you create a stand alone application using DAQmx when your application SCXI hardware isn't on the computer I am using to create the application?

    How do you create a stand alone application using DAQmx when your application SCXI hardware isn't on the computer I am using to create the application? The DAQmx assitant won't allow me to create a task with hardware that isn't in my system.

    You will need to have at least the DAQ device in your computer to add the chassis. When you add the chassis, don't auto detect the modules. You will have to add the terminal blocks and tell MAX which SCXI module will be connected to the DAQ device. Just make sure you don't test the chassis, when its not there.
    I hope this helps.
    Joshua

  • Dear apple , I recharge iTunes Gift Card for $ 25 and when I want to use and download the application from the store asked me to answer the secret question, but unfortunately forgot to answer confidential questions I ask you to help me please thank you

    I want a solution to this problem
    Dear apple ,
    I recharge iTunes Gift Card for $ 25 and when I want to use and download the application from the store asked me to answer the secret question, but unfortunately forgot to answer confidential questions I ask you to help me please
    thank you

    Click here for information. If the option to have the answers emailed to you isn't available or doesn't work(the email may take a few hours to arrive), contact the iTunes Store staff via the link in the 'Additional Information' section of that article.
    Nobody on these boards can reset them for you.
    (92282)

  • What is the correct way to use Version Informatio​n from the sequence and from the deployment tool

    I seem to be missing something in how the various version numbers are supposed to be used.    My end goal is to log and possibly display in the UI the version of the sequence and which installer version was used to inspect a UUT.   I have gotten most of the way there using:
     How Can I Programmatically Query the Sequence File Version of My TestStand Sequence? 
    and logging this into the report with a function which contains:
    Parameters.UUT.AdditionalData.SetValString("Test Version",1,RunState.SequenceFile.Data.Version),
    Parameters.UUT.AdditionalData.SetFlags("",0,PropFl​ags_IncludeInReport)
    The "Deployment Version" in the TestStand Deployment Utility auto incrementing the 3rd position of a version number  while the sequence auto increment is working on the 4th.   
    My first question is are these 2 version numbers in anyway supposed to be related to each other?   As it seems to me you would want those 2 reversed, I can make several installers based on sequence version X, making changes to what supporting files are also installed.
    If they are not related as I suspect that they are not.  How do I programatically grabed the installer version and also log that into the result report?   
    is there an option to perform a custom deployment build step to log the deployment version before it builds and then reference that log at runtime of the test?

    Hi,
    The sequence file version and deployment versions are not related.
    You can build the installer with whatever version you want using the command line :
    https://decibel.ni.com/content/docs/DOC-38947
    Hope this helps,
    Ravi

  • Error in loading package in the application

    Hi all,
    We are getting an error in loading packages in our application.We are using oc4j.
    The following is the error message we got.
    Not Found
    The requested URL /credit/pls/cnhcalms/add_new_customer.handleAction was not found on this server.
    Thanks in advance.

    Hi Rajat:
    Thank you for the reply.
    I had the xercers jars in jdk/jre/lib/endorsed directory.
    If I remove these, the ejbql works. I do need these in there for a different reason. Is there any way I can have the xercers jars in jdk/jre/lib/endorsed directory and still the ejbql work on oc4j.
    Thanks,
    Sabu

  • Correct way to use AXL API with complex types css, partition, etc. involving: JAXBElement XFkType ?

    I am trying to figure out how to use the AXL API once exploded with the wsimport as explained here...
    https://developer.cisco.com/site/collaboration/management/axl/learn/how-to/axl-java-sample-application.gsp
    ...to use complex types (partition, css, etc). 
    --> What is the correct way to do it?
    Example 1: UpdatePhone
    When incorporing a complex type into the addition or update of a component, for instance RoutePartitionName, DevicePoolName or CallingSearchSpaceName.
    his function is not working:
    public void actualizarPhone(LPhone lPhone) {
            try {
                UpdatePhoneReq axlParams = new UpdatePhoneReq();
                axlParams.setName(lPhone.getName());
                axlParams.setDescription(lPhone.getDescription());
                axlParams.setDevicePoolName(lPhone.getDevicePoolName());
                axlParams.setCallingSearchSpaceName(lPhone.getCallingSearchSpaceName());
                StandardResponse response = axlPort.updatePhone(axlParams);
                //return response.getReturn()a.toString();
            } catch (Exception e) {
                logger.error(e);
                //return new ArrayList<LPhone>();
    It seems the right thing to do set as parameter for the "set" the result of the "get" in line: setDevicePoolName(lPhone.getDevicePoolName());
    but it says: "The method setDevicePoolName(JAXBElement<XFkType>) in the type UpdatePhoneReq is not applicable for the arguments (XFkType)"
    Example 2: AddLine
    I also have this problem when adding line. 
    And I've tried at least 3 approaches, no success yet:
    1)** Using factory object to obtain an R object
    ObjectFactory factory = new ObjectFactory();
    RRoutePartition rRoutePartition = factory.createRRoutePartition();
    rRoutePartition.setName("autodial");
    2) ** Trying to create the demanded object: JAXBElement<XFkType> myself.
    JAXBElement<XFkType> jaxbElement= new JAXBElement<XFkType>(new QName ("http://www.cisco.com/AXL/API/8.5","XRoutePartition"),XFkType.class,partition);
    jaxbElement.setValue(partition3);
    line.setRoutePartitionName(jaxbElement);
    3)** Using X Objects
    XCallForwardBusy fwdBusy = new XCallForwardBusy();
    fwdBusy.setForwardToVoiceMail("true");
    AddLineReq newLine = new AddLineReq();
    XLine line = new XLine();
    line.setAlertingName("ALerting Name");
    line.setAsciiAlertingName("Alerting Name ASCII");
    line.setCallForwardBusy(fwdBusy);
    line.setDescription("Description");
    line.setPattern("5555");
    I would appreciate a clean example about how to add a line setting a partition, and an explanation about how to use JAXBElement<XFkType> objects.
    regards!

    I am trying to figure out how to use the AXL API once exploded with the wsimport as explained here...
    https://developer.cisco.com/site/collaboration/management/axl/learn/how-to/axl-java-sample-application.gsp
    ...to use complex types (partition, css, etc). 
    --> What is the correct way to do it?
    Example 1: UpdatePhone
    When incorporing a complex type into the addition or update of a component, for instance RoutePartitionName, DevicePoolName or CallingSearchSpaceName.
    his function is not working:
    public void actualizarPhone(LPhone lPhone) {
            try {
                UpdatePhoneReq axlParams = new UpdatePhoneReq();
                axlParams.setName(lPhone.getName());
                axlParams.setDescription(lPhone.getDescription());
                axlParams.setDevicePoolName(lPhone.getDevicePoolName());
                axlParams.setCallingSearchSpaceName(lPhone.getCallingSearchSpaceName());
                StandardResponse response = axlPort.updatePhone(axlParams);
                //return response.getReturn()a.toString();
            } catch (Exception e) {
                logger.error(e);
                //return new ArrayList<LPhone>();
    It seems the right thing to do set as parameter for the "set" the result of the "get" in line: setDevicePoolName(lPhone.getDevicePoolName());
    but it says: "The method setDevicePoolName(JAXBElement<XFkType>) in the type UpdatePhoneReq is not applicable for the arguments (XFkType)"
    Example 2: AddLine
    I also have this problem when adding line. 
    And I've tried at least 3 approaches, no success yet:
    1)** Using factory object to obtain an R object
    ObjectFactory factory = new ObjectFactory();
    RRoutePartition rRoutePartition = factory.createRRoutePartition();
    rRoutePartition.setName("autodial");
    2) ** Trying to create the demanded object: JAXBElement<XFkType> myself.
    JAXBElement<XFkType> jaxbElement= new JAXBElement<XFkType>(new QName ("http://www.cisco.com/AXL/API/8.5","XRoutePartition"),XFkType.class,partition);
    jaxbElement.setValue(partition3);
    line.setRoutePartitionName(jaxbElement);
    3)** Using X Objects
    XCallForwardBusy fwdBusy = new XCallForwardBusy();
    fwdBusy.setForwardToVoiceMail("true");
    AddLineReq newLine = new AddLineReq();
    XLine line = new XLine();
    line.setAlertingName("ALerting Name");
    line.setAsciiAlertingName("Alerting Name ASCII");
    line.setCallForwardBusy(fwdBusy);
    line.setDescription("Description");
    line.setPattern("5555");
    I would appreciate a clean example about how to add a line setting a partition, and an explanation about how to use JAXBElement<XFkType> objects.
    regards!

  • Best way to use JDBC in an application

    I'm developing a Java application using Swing and DB2 with JDBC. The way I'm developing it is: for every query, regardless its type, that a need to process in the database, I create a connection, execute the query, process the results and finally disconnect from the database. This works fine, but this application makes a lot of database processing, so makes a lot of connections-disconnections. I read an article that states that is not a good use of JDBC to leave connections useless, for that reason I always close the connections.
    So my question is: is it ok to develop an application with a lot of db processing this way, or is it better to make a connection, leave it open while the application is open, and use this connection every time a database request is needed, and only close it when the application terminates?

    eflores767003 wrote:
    Jschell, Thanks again.
    I looked for the db2 document I was talking about, the one that refers about connection pooling. This the link: ftp://ftp.software.ibm.com/ps/products/db2/info/vr8/pdf/letter/db2aje80.pdf
    In Page 27 is written that the IBM JDBC Universal Driver (Type 4) restricts Connection Pooling.
    I am rather certain that that section is referring the ibm driver - in that the ibm driver does not support pooling.
    I have not read the information you gave me. I'm just giving you the information I had before I got in touch with you.
    And answering your question, (You do in fact have a server written in java right?):
    My application connects to a DB2 DBMS server through an object, instance of class I made, kind of DAO object, that makes all the database processing. In the DBMS I got Java stored procedures. I'm not sure if the java server you are asking about is the DBMS or the java class I wrote. I do not use a web server so my application is a two tier one.
    So each client app is maintaining the connections. A pool could still be used, it would certainly have less impact. You must configure it carefully to insure that idle connections do not remain for very long. 5 minutes would be good. You don't want someone going on vacation and leaving their app up that keeps 20 connections open for 2 weeks.
    But I still keep the doubt about the way I'm using the db processing (make connections, process the queries and disconnect ). Because you said that " It isn't necessary (volume/usage doesn't require it.) Doesn't mean that you can't do it."
    Nothing you said so far says that you need to use pooling.
    Everything that you said requires that you do not maintain connections at the usage layer - so always close them. Do not attempt to hold one open if you are not using a pool.
    If you do use a pool then you would configure it to keep a very few (perhaps even just 1) open for a short time if it was not being used.
    At this point the only gain for using a pool would be the experience that it gained you.
    So, do you suggest that my application should keep an open connection, instead of the current approach? Remember that I'm not using connection pooling.
    No.
    What would be the consequences of keeping my approach?
    At best unused connections. At worst potentially running out due to long running application.
    Why is not good to leave a useless connection in application? Because it uses resources in the database, not just the application.
    Realistically in your situation it might never become a problem. But if you close them then there is no possibility that it will become a problem.

Maybe you are looking for