Common Package

I want to create a common package which will be used in my other application.
Like " import com.tst.myPackage "
How can i do it?

Create your code, then go into the project properties->deployment and create a new JAR deployment profile and deploy your project. Then add that JAR into the libraries entry of the other projects.

Similar Messages

  • BC4J/ADF-BC:  Use of the commons package

    I use extended DataAction classes to access the ADF Business Components. The Oracle9i JDeveloper Handbook encourages accessing the application module class and view object class through the "common" package level. This is discussed in Chapter 14 (p. 465).
    For example, in my 10G client:
    import com.test.common.UserAM;
    import com.test.common.UserByIDVO;
    import com.test.common.UserByIDVORow;
    (as opposed to:)
    import com.test.UserAMImpl; ....
    BindingContext myctx = actionContext.getBindingContext();
    DCDataControl mydc = myctx.findDataControl("com_test_UserAMDataControl");
    UserAM myAM = (UserAM)mydc.getApplicationModule();
    myAM.prepareModelGetBUFbyID(Integer.parseInt(id));
    UserByIDVO buVO = (UserByidVO) myAM.findViewObject("UserByIDVO");
    I have found that I cannot get access to the "common" package without doing the following:
    (1) Create a custom Java method for the *Impl.java class that I want to see in the "common" package.  (I have gone as far as to create an empty method just to force visibility of the "common" package.)
    (2) Generate java files for the object through the editor for either the application module or view object.
    If I don't do this I will have access to only the level above "common" and I believe that could force me into the scenario of only being able to do local deploys.
    This works okay but ... am I handling this as it is intended to be used? What if I wanted to access the application module/view object programmatically but it does not have any custom methods?

    I use extended DataAction classes to access the ADF Business Components. The Oracle9i JDeveloper Handbook encourages accessing the application module class and view object class through the "common" package level. This is discussed in Chapter 14 (p. 465).
    For example, in my 10G client:
    import com.test.common.UserAM;
    import com.test.common.UserByIDVO;
    import com.test.common.UserByIDVORow;
    (as opposed to:)
    import com.test.UserAMImpl; ....
    BindingContext myctx = actionContext.getBindingContext();
    DCDataControl mydc = myctx.findDataControl("com_test_UserAMDataControl");
    UserAM myAM = (UserAM)mydc.getApplicationModule();
    myAM.prepareModelGetBUFbyID(Integer.parseInt(id));
    UserByIDVO buVO = (UserByidVO) myAM.findViewObject("UserByIDVO");
    I have found that I cannot get access to the "common" package without doing the following:
    (1) Create a custom Java method for the *Impl.java class that I want to see in the "common" package.  (I have gone as far as to create an empty method just to force visibility of the "common" package.)
    (2) Generate java files for the object through the editor for either the application module or view object.
    If I don't do this I will have access to only the level above "common" and I believe that could force me into the scenario of only being able to do local deploys.
    This works okay but ... am I handling this as it is intended to be used? What if I wanted to access the application module/view object programmatically but it does not have any custom methods?

  • BC4J "common" package

    Can someone explain what Java packages get generated automatically by BC4J and why?
    I created a new business components package, added a domain to it, and was surprised to see that a new subpackage called "common" had been created containing the domain. Why did JDev create a subpackage instead of using the package I had specified? (I had thought there was a 1-to-1 correspondence between business component packages and Java packages.)
    I can't find information about this in the documentation.
    Thanks.

    We put the following four artifacts in the ".common" subpackage of your BC4J package:
    1. bc4j.xcfg configuration file for application modules in your package
    2. custom interfaces for view objects, view object rows, or application modules for which you've published client-accessible methods.
    3. message bundle classes that BC4J creates for your components
    4. domain classes
    These are precisely the things that end up getting packaged into the "Common" jar file when you deploy your BC4J application (everything else goes into the "MiddleTier" jar file.
    BC4J encourages a logical three-tier design, and when you choose to deploy this logical three-tier application as a physical three tier application, the "Common" Jar file and all of your BC4J components implementations stay on the server.
    It's just the "Common" jar file that is required on the remote client tier.
    Actually, the things in the "Common" jar file are required on both tiers, thus that are common to both the middle tier and the client tier, hence the choice of the name "common".

  • Import package with .* in jsp

    If i want to use HashMap in jsp page i need to have HashMap of util package in import statment in
    page directive.
    What is difference in Using
    a) <%@ page import="java.util.HashMap"%>
    b) <%@ page import="java.util.*"%>
    Is there any performance issue using importing package with .*

    Ofcourse there will be a performance issue. In the
    second case (<%@ page import="java.util.*"%>
    ) , you are loading all the classes in java.util
    package into your JSP, where as in the first case you
    are getting only HashMap. So the second option will
    affect the performance. Always import only the
    required classes.
    rgdsThen you have no idea how import works. The only difference at all would come at compile time. After the page is compiled, there would be no performance issue whatsoever.
    The main reason for doing one or the other way (same for any Java class) is clarity for those reading the code. Meaning if you use the full import, when they see "HashMap" in the code, they can look at the import statements and be sure that it's in java.util package. But generally, most people are going to be familiar with the classes in the common packages, like java.util. So I wouldn't generally list the specific classes if you are using more then one from the same package. There are other considerations where packages have classes of the same name (java.sql.Date & java.util.Date) but generally, I would always just put the full class name in the code.

  • Commons FileUpload utility

    Dear Fellow Java Developers:
    I need to upload files from my pc using JSP and was told that using the FileUpload utility from the Jakarta Commons package is the way to go. What I would like to know is if someone has some sample code that demonstrates how to use it step by step, as I don't have any tutorials that show me how to use this utility.
    Any help is greatly appreciated.
    Thanks to everyone that replies in advance.
    Sincerely;
    Fayyaz

    Whats up? Is google broken?
    http://www.google.com/search?hl=en&ie=UTF-8&q=commons+file+upload+example+tutorial
    First result returned:
    http://www.onjava.com/pub/a/onjava/2003/06/25/commons.html?page=3

  • Aperture version of a picture package

    Would like to print four 4x5 or three 6x4 0n an 8.5 x11 sheet of paper. I have come from windows and Photoshop how can this be done in apertre

    I don't do packages myself, but I've read about several users who do use the book function to do this.
    If you create a book that has a "page" for each of your most common package configurations, it seems like most of the added complication would only hit you once. "Set it and forget it".
    Once you have the book template designed, it's just a matter of laying out the photos on the specific page(s) you need for that order, and printing it out.
    And the addition of custom page sizes for books in Aperture 2 means you ought to now be able to print a package print to any size paper you desire (not just the ones supported by Apple's system). That should be sufficiently flexible for you to do any layout you can dream up.

  • Trying a comprehensive jakarta-commons PKGBUILD....

    Hey there!
    I would like to build a PKGBUILD for a nice java banking program. On the way to a Arch-conform PKGBUILD I stumbled over the Java Package Guidelines and investigated the libs which are shipped with the program a bit further.
    There I found that some jars from the jakarta commons package were used but not yet packaged in AUR or the official repos. So first I wanted to build them separately, but then I found that it would make more sense to have one comprehensive package of (currently) 30MB instead of 33 single packages.
    What do you think about the idea? I am willing to support this meta package as well as the single ones if I just knew how the implementation would be more sensible.
    Since it would be a huge amount of work to pack every packag on its own, I wrote a PKGBUILD for all packages that are in Jakarta Commons.
    I hope, if it is generally desired to have any package in a single file, that I at least learnt a bit from writing this PKGBUILD
    # Contributor: jakob
    pkgname=jakarta-commons-all
    pkgver=1.0
    pkgrel=1
    pkgdesc="This packag includes all Jakarta Commons Proper packages."
    url="http://jakarta.apache.org/commons/"
    license="APACHE"
    depends=()
    makedepends=()
    conflicts=()
    source=(http://www.apache.org/dist/jakarta/commons/attributes/binaries/commons-attributes-2.2.tar.gz
    http://www.apache.org/dist/jakarta/commons/beanutils/binaries/commons-beanutils-1.7.0.tar.gz
    http://www.apache.org/dist/jakarta/commons/betwixt/binaries/commons-betwixt-0.7.tar.gz
    http://www.apache.org/dist/jakarta/commons/chain/binaries/commons-chain-1.1.tar.gz
    http://www.apache.org/dist/jakarta/commons/cli/binaries/cli-1.0.tar.gz
    http://www.apache.org/dist/jakarta/commons/codec/binaries/commons-codec-1.3.tar.gz
    http://www.apache.org/dist/jakarta/commons/collections/binaries/commons-collections-3.2.tar.gz
    http://www.apache.org/dist/jakarta/commons/configuration/binaries/commons-configuration-1.2.tar.gz
    http://www.apache.org/dist/jakarta/commons/daemon/binaries/commons-daemon-1.0.1.tar.gz
    http://www.apache.org/dist/jakarta/commons/dbcp/binaries/commons-dbcp-1.2.1.tar.gz
    http://www.apache.org/dist/jakarta/commons/dbutils/binaries/commons-dbutils-1.0.tar.gz
    http://www.apache.org/dist/jakarta/commons/digester/binaries/commons-digester-1.7.tar.gz
    http://www.apache.org/dist/jakarta/commons/discovery/binaries/commons-discovery-0.2.tar.gz
    http://www.apache.org/dist/jakarta/commons/el/binaries/commons-el-1.0.tar.gz
    http://www.apache.org/dist/jakarta/commons/email/binaries/commons-email-1.0.tar.gz
    http://www.apache.org/dist/jakarta/commons/fileupload/binaries/commons-fileupload-1.1.1.tar.gz
    http://www.apache.org/dist/jakarta/commons/httpclient/binary/commons-httpclient-3.0.1.tar.gz
    http://www.apache.org/dist/jakarta/commons/io/binaries/commons-io-1.2.tar.gz
    http://www.apache.org/dist/jakarta/commons/jelly/binaries/commons-jelly-1.0.tar.gz
    http://www.apache.org/dist/jakarta/commons/jexl/binaries/commons-jexl-1.1.tar.gz
    http://www.apache.org/dist/jakarta/commons/jxpath/binaries/commons-jxpath-1.2.tar.gz
    http://www.apache.org/dist/jakarta/commons/lang/binaries/commons-lang-2.2.tar.gz
    http://www.apache.org/dist/jakarta/commons/latka/binaries/latka-1.0-alpha1.zip
    http://www.apache.org/dist/jakarta/commons/launcher/binaries/commons-launcher-1.1.tar.gz
    http://www.apache.org/dist/jakarta/commons/logging/binaries/commons-logging-1.1.tar.gz
    http://www.apache.org/dist/jakarta/commons/math/binaries/commons-math-1.1.tar.gz
    http://www.apache.org/dist/jakarta/commons/modeler/binaries/commons-modeler-2.0.tar.gz
    http://www.apache.org/dist/jakarta/commons/net/binaries/commons-net-1.4.1.tar.gz
    http://www.apache.org/dist/jakarta/commons/pool/binaries/commons-pool-1.3.tar.gz
    http://www.apache.org/dist/jakarta/commons/primitives/binaries/commons-primitives-1.0.tar.gz
    http://www.apache.org/dist/jakarta/commons/scxml/binaries/commons-scxml-0.5.tar.gz
    http://www.apache.org/dist/jakarta/commons/transaction/binaries/commons-transaction-1.1.tgz
    http://www.apache.org/dist/jakarta/commons/validator/binaries/commons-validator-1.3.0.tar.gz)
    md5sums=('47d037449aa38b6c8e181abcfaf36b2b' 'd1571ce9d6ec3d1795364cc44f3d116e'
    '707af78be5ed2518dd2eada9afefb238' 'e688f648a5fd324f591669ca70ebe96d'
    '6c28bdee998fe4d9e76c7cf40e7f4691' 'aad3948be13476d9599cadaf146bc92a'
    '030a1c1d08f47a6c9be000fc611714b4' '6c8bc440de20b7c9b5b3b5315d50316b'
    '591fceeb4feab1094a78c9c5decd8cca' 'd333fc11abb532be2487338cb452b583'
    'b437ea809d320378fc05af9f29e2636f' '717239578dfcd05bde0dfd1d3e8f319f'
    '2273f5f83a477f4f18fccf3a00e2b48c' 'fb856b9689bdc4c52f8ae999057f89fc'
    '4fb252cd4bcee57b573937e3c88974cc' '3b851898d3347cd4d6890b79c9a8a0f0'
    '58167f247e8f8ad8fb1def97c1de8f07' '52b42b61593def482dc968ffdd27f113'
    'e9e3ba84a214d2bcf96aa31b24f3bb5f' '9bdf02d9b659a70b7f327c923c1f4d80'
    '1730dae5f0ef0594a47ead5d1a4ac41b' '4f683f7b6970babb8c9f09bb12b7c1a6'
    'fbf479099aa252989fe4c81511abf4bf' '7ed65e08e8c952c4d9f6db0d73ef5426'
    'c2bd7cc1fa08d78ec5aa80632c21152b' '37c43d1d0c08c1b753a7bf952c763eb3'
    'ba74fdf4aca98f01579eca11acc6d882' '577e90cc40328c287acc921dae344c12'
    '1bdae6c015689349b704daebda924a5b' '2ce92656204f2fa63dad6dfa88e1458b'
    '091e2dc0efcb9155c2b4a05792d49a77' 'fe946d1775d58ded6050dec6af648f38'
    '221d924fb85f3597d8be0708d45f0f5a')
    build() {
    mkdir -p $startdir/pkg/usr/share/java/jakarta-commons
    cd $startdir/src/
    rm -rf *gz docs LICENSE*
    mv *.txt doc
    mv * $startdir/pkg/usr/share/java/jakarta-commons
    Since there are sometimes when copy&pasting PKGBUILDS (especially the ""s, IIRC), here a link to a pastebin
    My questions are: Are the jars to be put in /usr/share/java/jakarta-commons/$package/*.jar or plainly under jakarta-commons?
    Is it ok to delete all the docs, licenses + readmes?
    Sorry but it's very late now so I'll stop here and wait for your suggestions and tips, which will come hopefully..
    Greetings and good night,
    jakob

    Your absolutely right saying that never all commons packages would be used by just one program.
    I read the Java Packaging Guidelines again and it says that only commoly used and major libs should be sourced out to single packages. So the question is: Do any other packages in AUR or the official repos use some of the jakarta-commons projects so it would eventually pay to make single packages for them, or isn't it worth the hussle?
    I for my part now will leave the libs that are bundled with the package I wanted to upload at first in the package and use them.
    Thanks for your reply

  • [svn:fx-trunk] 15669: * Package and class level javadoc for the flex2. compiler.css,

    Revision: 15669
    Revision: 15669
    Author:   [email protected]
    Date:     2010-04-23 10:12:53 -0700 (Fri, 23 Apr 2010)
    Log Message:
    Package and class level javadoc for the flex2.compiler.css,
      flex2.compiler.common, and flex2.compiler.config packages.
    QE notes:
    Doc notes:
    Bugs:
    Reviewer: Corey (post-commit)
    Tests run: checkintests
    Is noteworthy for integration: NO
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/CompilerConfiguration.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/Configuration.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/ConfigurationPathResolver. java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/DefaultsConfigurator.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/FontsConfiguration.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/FramesConfiguration.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/LocalFilePathResolver.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/MetadataConfiguration.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/MxmlConfiguration.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/NamespacesConfiguration.ja va
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/PathResolver.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/SinglePathResolver.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/config/AdvancedConfigurationInfo. java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/config/CommandLineConfigurator.ja va
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/config/ConfigurationException.jav a
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/config/ConfigurationFilter.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/config/ConfigurationInfo.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/config/ConfigurationValue.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/config/FileConfigurator.java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/config/SystemPropertyConfigurator .java
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/ConditionTypeNotSupported.jav a
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/CssCompiler.java
    Added Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/common/package.html
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/config/package.html
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/css/package.html

  • More package advice...

    Hi there,
    I'm having a bit of a conceptual problem with packages. At the moment, I am using a bunch of common classes that will be used throughout my desktop swing applications. As I see it right now, if I compile my application and distribute it to users, I also have to re-create the directory structure to the packages on their local machine or point to it via the CLASSPATH over the network.
    Now, I don't know whether to just include all common classes in the current program directory, thus losing the explicit dependancy via the "import" keyword, but minimising the links to outside resources for the application or stick with the packages and have to set the CLASSPATH to somewhere public where all users can get at the common packages.
    Advice, alternatives and suggestions?

    If it helps here is the class that I want to use to call a couple of the classes in the commonfiles package...
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.Statement;
    import commonfiles.*;
    public class OracleDataConnection {
        private Connection conn;
        private boolean bConnectionActive = false;
        public OracleDataConnection(String Host, int Port, String SID, String Username, String Password) {
            if (((Host.length() < 1) || (Host == null)) || ((SID.length() < 1) || (SID == null)) || ((Username.length() < 1) || (Username == null)) || ((Password.length() < 1) || (Password == null)) || ((Port < 1))) {
                return;
            } else {
                try {
                    Class.forName("oracle.jdbc.driver.OracleDriver");
                    conn = DriverManager.getConnection("jdbc:oracle:thin:@PIMSDS20:1525:TEST", "jbaker", "nipples8");
                    conn = DriverManager.getConnection("jdbc:oracle:thin:@" + Host + ":" + Port + ":" + SID, Username, Password);
                    if (conn != null) {
                        bConnectionActive = true;
                } catch (Exception e) {
                    bConnectionActive = false;
                    return;
        public ResultSet returnRecords(String sQuery) {
            if ((sQuery.length() < 1) || (sQuery == null)) {
                ErrorList.addError(new Error(ErrorList.DATABASE_QUERY_FAILED, ErrorList.INTERNAL_GUI_NONE, "OracleDataConnection::returnRecords()", "SQL query string is blank"));
                return null;
    }....and here are the ErrorList and Error classes in the "H:\Java\commonfiles" directory.
    // Error class.
    package commonfiles;
    public class Error {
        private String sErrorCode;
        private int iErrorScreen;
        private String sErrorLocation;
        private String sUserMessage;
        // Constructor.
        public Error(String sErrorCode, int iErrorScreen, String sErrorLocation, String sUserMessage) {
            this.sErrorCode = sErrorCode;
            this.iErrorScreen = iErrorScreen;
            this.sErrorLocation = sErrorLocation;
            this.sUserMessage = sUserMessage;
        public String toString() {
            return ("Error: " + sErrorCode + " on screen: " + Integer.toString(iErrorScreen) + " at code location: " + sErrorLocation + " with user message: " + sUserMessage);
        public String getErrorCode() {
            return sErrorCode;
        public String getErrorScreen() {
            return Integer.toString(iErrorScreen);
        public String getErrorLocation() {
            return sErrorLocation;
        public String getUserMessage() {
            return sUserMessage;
    // ErrorList static class.
    package commonfiles;
    import java.util.Vector;
    public class ErrorList {
        private static Vector vErrorList = new Vector(20,10);
        public static final int INTERNAL_GUI_NONE = 40001;
        public static final int DATABASE_CONNECTION_FAILED = 50001;
        public static final int DATABASE_QUERY_FAILED = 50002;
        public static void addError(Error newError) {
            vErrorList.add(newError);
        public static Error[] getAllErrors(boolean clearErrors) {
            Error[] objErrorList = (Error[]) vErrorList.toArray(new Error[vErrorList.size()]);
            if (clearErrors) {
                vErrorList.clear();
            return objErrorList;
        public static boolean hasErrors() {
            if (vErrorList.isEmpty()) {
                return false;
            } else {
                return true;
    }

  • Solaris X window packages for AS 7.0?

    I learned from the exercise the hard way that AS 7.0 doesn't install on "harden" system (see my post under "installation fail") and was told it's worth while to have the X window installed since manually installation might create future problem (see my post under "manual installation ?"). I look at the software requirement here:
    http://docs.sun.com/source/816-7161-10/rn.html#1000684
    It has no mention of X window is a must requirement. Now that I am in the process of getting the security exemption to have X window installed, the ITops told me they need the list of all the specific X window package names. They said there're hundreds of files and tons of X window package so they must know which package to be specific that App Server 7.0 needs.
    Could someone help me with the list -- if not, it looks like they'll dig their heels and I won't get the App Server 7.0 installed and deployed at all.

    Can someone verify if these packages will be sufficient for the App Server 7.0 to install. I am sure we are not the only one that has "harden" system. How are other users deal with this?
    system SUNWcg6 GX (cg6) Device Driver
    system SUNWcg6h GX (cg6) Header Files
    system SUNWcg6x GX (cg6) Device Driver (64-bit)
    system SUNWeuxwe UTF-8 X Window Environment
    system SUNWi13rf X11 ISO-8859-13 required fonts
    system SUNWi15rf X11 ISO-8859-15 required fonts
    system SUNWi2rf X11 ISO-8859-2 required fonts
    system SUNWi4rf X11 ISO-8859-4 required fonts
    system SUNWi5rf X11 ISO-8859-5 required fonts
    system SUNWi7rf X11 ISO-8859-7 required fonts
    system SUNWi8rf X11 iso8859-8 required fonts
    system SUNWi9rf X11 ISO-8859-9 required fonts
    system SUNWuxlcf UTF-8 X Locale Environment Common Files
    system SUNWuxlcx UTF-8 X Locale Environment Common Files (64-bit)
    system SUNWxi18n X Window System Internationalization Common Package
    system SUNWxi18x X Window System Internationalization Common Package (64-bit)
    system SUNWxim X Window System X Input Method Server Package
    system SUNWximx X Window System X Input Method Server Package (64-bit)
    system SUNWxwdv X Windows System Window Drivers
    system SUNWxwdvx X Windows System Window Drivers (64-bit)
    system SUNWxwfnt X Window System platform required fonts
    system SUNWxwhl X Window System & Graphics Header links in /usr/include
    system SUNWxwicx X Window System ICE library (64-bit)
    system SUNWxwinc X Window System include files
    system SUNWxwkey X Windows software, PC keytables
    system SUNWxwmox X Window System kernel modules (64-bit)
    system SUNWxwoft X Window System optional fonts
    system SUNWxwplt X Window System platform software
    system SUNWxwplx X Window System library software (64-bit)
    system SUNWxwpsr Sun4u-platform specific X server auxiliary filter modules
    system SUNWxwrtl X Window System & Graphics Runtime Library Links in /usr/lib
    system SUNWxwrtx X Window System Runtime Compatibility Package (64-bit)
    system SUNWxwslb X Window System static/lint libraries
    system SUNWxwslx X Window System lint libraries (64-bit)

  • Common bc4j.xcfg

    Hi
    I'm using BC4J. I have a number of ApplicationModule in different packages. Each package have a common package with a bc4j.xcfg file containing connectionDefinition.
    I need the same connection definition for All my App modules, but my application runs on different costumers. When running at these custumers I have to edit each of these bc4j.xcfg files - Is there a way so that I can let all my appplicationModule share a bc4j.xcfg file (or property file)?
    Johnny
    Denmark

    If you're trying to change the connection, I'd suggest using datasources instead of JDBC connect strings. Take a look at the howto on datasources at
    http://otn.oracle.com/products/jdev/howtos/10g/usingdatasources/using_datasources.html
    This would allow you to use one static connection and allow your end-users to customize it just once.
    -SteveA

  • Reuse Regions as a Component like Packages?

    Is there are way of making a region a single collection that can be treated like a reusable component, like that of a SQL Package? (Sort of Object Oriented Programming)
    For example, I want to have a Region that display's a record's "CREATED_BY", "CREATE_DATE", "MODIFY_BY" and "MODIFY_DATE" fields. The region also has Buttons and Items inside it, to be included into the component.
    These are used in different tables in the schema, so I was to reuse this Region (also, it uses a common package, that contain its different PL/SQL Code, that could manage the 'properties' and 'methods') in different pages that I nominate, preferably refering to a single definition. Should this definition change, it would be instantly changed in all associated pages as well.
    I am not sure of the correct way of doing this. It does not seem Shorcuts in Shared Components will achieve this. Is there any Tutorial for this situation?
    Thank you for your comments.

    Ou, as I see such question is a common problem, I just start another topic with the same problem. I`ve tried to resolve problem by creating my own event that dispatch to listeners, and I`ve tried to add Listener to main app. Just in case it will such:
    1. You create event: LoginCorrectEvent.
    2. dispacth it.
    3. main app listen to LoginCorrectEvent and make something.
    You can check code in this topic http://forums.adobe.com/thread/700947?tstart=0
    But I have problem that I haven`t instance to listen to, but you will have I suppose, so you can make event driven communication. Something like this:
    var loginComp:LoginComponent = new LoginComponent();
    loginComp.addEventListener(LoginCorrectEvent.LOGIN_CORRECT_EVENT, loginCorrectHandler);
    it will be in you main app, and there you should define loginCorrectHandler - it will handle event.

  • VCO 6 Out of memory when importing a 27 meg package

    Could not access HTTP invoker remote service at [https://ssvco.pan.local:8281/vco/webremoting/vcofactory.service]; nested exception is java.lang.OutOfMemoryError: Java heap space
    Tried to use the workflow as well.
    File E:\VCO\com.stuff.common.package is too large ( 26.518 MB > 2 MB ). To prevent very slow performance, the system has rejected it !

    How exactly do you import the package? Via API, via Java client, or as part of deploying a plug-in? How the vCO is deployed - Linux appliance or Windows install together with vCenter?
    Also, which workflow do you refer to?
    These 2MB look like the limitation of mime attachment size that I don't think it has been changed between 5.5 and 6.0

  • Custom Arch Boot-USB with preloaded package list

    Hello guys!
    The other day I was just thinking that it would be amazing to not having to reinstall each system (I have many PCs) from scratch and was wondering if I could make a bootable USB with a preloaded script to download and install the most common packages I always install. I guess I could do that by adding a script to the USB which would be in the root's "home" during USB-boot. But I'm just asking to see if there's a better way (if it would work at all)

    This is a copy + paste from the Wiki:
    https://wiki.archlinux.org/index.php/Pa … d_packages
    Backing up and retrieving a list of installed packages
    It is good practice to keep periodic backups of all pacman-installed packages. In the event of a system crash which is unrecoverable by other means, pacman can then easily reinstall the very same packages onto a new installation.
    ■ First, backup the current list of non-local packages:
    $ pacman -Qqen > pkglist.txt
    ■ Store the pkglist.txt on a USB key or other convenient medium or gist.github.com or Evernote, Dropbox, etc.
    ■ Copy the pkglist.txt file to the new installation, and navigate to the directory containing it.
    ■ Issue the following command to install from the backup list:
    # pacman -S $(< pkglist.txt)
    *** I have a note to use this so it doesn't reinstall packages that I already have.
    # pacman -S --needed $(< pkglist.txt)
    In the case you have a list which was not generated like mentioned above, there may be foreign packages in it (i.e. packages not belonging to any repos you have configured, or packages from the AUR).
    In such a case, you may still want to install all available packages from that list:
    # pacman -S --needed $(comm -12 <(pacman -Slq|sort) <(sort badpkdlist) )
    Explanation:
    ■ pacman -Slq lists all available softwares, but the list is sorted by repository first, hence the sort command.
    ■ Sorted files are required in order to make the comm command work.
    ■ The -12 parameter display lines common to both entries.
    ■ The --needed switch is used to skip already installed packages.
    You could edit the pkglist.txt to keep a list of packages that you know you what to have installed on each computer
    Last edited by M177ER (2014-02-19 19:21:02)

  • Accessing a dll from classes in different packages

    Hello java community,
    I am new to Java and especially the jni so your help is greatly appreciated.
    I am having trouble accessing a Windows native dll from classes in different packages. I placed the .dll in my ClassPath. I am able to loadLibrary successfully from class X in my 'common' package. However, when I try to access the same .dll from another class Y in package 'notsocommon'. I get an unsatisfied link error. I changed the X.h file to include common in the function definition (eg. Java_common_X_functionName) and I did the same to the Y.h file (Java_notsocommon_Y_functionName). I am able to work with the dll from the X class but not the Y class. I don't know what I am doing wrong. I am very new to Java, so any help is appreciated.
    Thank you.

    I apologize to everyone for posting this. I figured out my mistake, it was in the dll and not in the java. Also using
    javah -jni notsocommon.Y
    creates the correct header file.

Maybe you are looking for

  • Pending Rejection Report

    Hi., The scenario is 1) Material subjected to Quality is received from Vendor 2) Out of 10 quantity, 5 rejected in Quality Usage Decision. 3) In our company daily hundreds of UD's are done. 4)Is there any report in which we get the information about

  • App store Quick link

    I recently bought a macbook and recieved the free mountain lion. To redeem the email said to go to quick links in the app store and click redeem. When I clicked redeem i Was taken to a blank grey screen. What is going on?

  • Exporting keynote to quicktime

    Hi, I have only 5 pages of keynote presentation which I exported to Quicktime. When I launched the slide in Quicktime, I only see two of the five. And I dont see any control (play, pause, forward etc) even if I move my cursor over the slide page..ple

  • Getting error with Oracle10g Express using SQLPlus?

    I just installed Oracle10g Express on Linux FC6. I get errors in Java and SQLPlus when trying to connect to the database, or start it. In SQLPlus as "sysdba" when I type "startup" I get this error... ORA-27100: shared memory realm already exists And

  • ### displayed for Thai characters

    Save Our Environment. Save Yourself. Hi Experts!! I have a smartform which prints even Thai characters. When standard texts are given (Thai), they are being printed fine. But when some Thai characters are being fetched from some table and printed dir