Why use ojdeploy when building ViewController jar/war?

Hi,
It is known that ojdeploy is the recommended way to go when building/deploying an ADF app. The advantages are stated in many blog posts in the web.
IMHO the most important reason for using ojdeploy instead of javac when creating an EAR is that javac CANNOT validate your BC. This means for example that if you refactor-rename an attribute of a VO and then commit only xml and not the related View Row Impl class, the build in your CI server will succeed if using only javac and fail if using ojdeploy (as it should be). So ojdeploy is the only way when building jars of Model projects if you want to be 100% sure the you have valid ADF code.
The question is if the is a similar reason for using ojdeploy when building ViewController jars/wars??
Thanx in advance for any feedback.
Spyros Doulgeridis
adfhowto.blogspot.com
Edited by: spido on Jul 6, 2011 10:04 AM

ojdeploy makes changes to your descriptors javac or jar does not know about. Actually nobody knows about the changes as you have to look into the war to see them. I'm not even sure that they are documented.
Timo

Similar Messages

  • Why using EJB when we have BC4J ?

    Hello everybody
    When I heared about EJB two years ago, I read couple of articles about it and found it useful. Now, when I read about BC4J and the ability they give us, a question pops up into my mind. Why should we use EJB ?
    We can simple use BC4J and they are very good. I think there is something about EJBs that I dont know and thats why I think this way.
    I'll appriciate any help.
    Thanx in adnvace.

    BC4J is a J2EE framework that lets you get down to business and focus on building your application.
    It then gives you a choice of deploying your application using simple Java classes, or using an EJB Session Bean if you want to take advantage of EJB Session Bean's container-managed transaction (for example, to particpate in a transaction with another bean you didn't write), or method-level security.
    The key points are that it saves J2EE developers tons of time by allowing them to not waste their time on writing application plumbing code to implement the many J2EE Design Patterns that all real-world applications need.
    Around 800 Oracle Applications developers inside Oracle are using the BC4J framework to get their self-service web applications to market with better features in faster time than their competitors. The framework is filled with nuts-and-bolts application-building features that our own developers have told us are the boring, mundane, plumbing-kinda code that they don't WANT to write, debug, and test themselves.
    It gives you a big advantage and allows you do decide whether or not to use EJB at deployment time instead of forcing you to make that decision up front.

  • Using web resources in a JAR/WAR file in another project

    Hi,
    I would like to make a core set of .jspx files available to other developers without them having to physically include each of the .jspx files into their JDeveloper projects manually.
    I've tried creating various WAR and JAR files, and then including those into my JDeveloper projects (Project Properties > Libraries > Add Jar/Directory) but the result is always the same:
    javax.faces.FacesException: Problem in renderResponse: /test.jspx Not Found in ExternalContext as a Resource
    In the simplest case, I've created a war file with only a single file in it:
    /test.jspx
    I've also tried a war with:
    /public_html/test.jspx
    Can anybody provide some pointers as to what it is I need to do here? Some things I've read suggest that I need to extend the classpath to include my test.war, but I can't find the appropriate setting for this in JDeveloper.
    I'm using the latest version of JDeveloper 10g, and for the purposes of testing I'm using the embedded OC4J.
    Thanks for any tips!
    Alistair.

    I haven't done this so far, but it should be possible.
    One thing you should have in mind is this:
    Every WAR is a separate Web Application and has its own context as well as context root.
    If you'd like to reuse pages from another WAR file you need to know its context root at the bare minimum to reference to it.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Why use Applet when display Form Application?What is the benefits using it?

    Hi All,
    I still don't know what is the benefits using Java Applet when displaying Form Applications.
    What is other ways to display Form?
    Thanks!

    http://en.wikipedia.org/wiki/Applet
    It depdends what you mean by "non applet" - you could mean an application or a "thin" browser UI that does not require a JVM
    THe thing is, you don't really have a choice if using Forms

  • Why use FISL when there FI and CO?

    Hello SDN,
    when is it a need for companies to use FISL?
    Thanks.
    Adette

    Hi Dave & Karthik ,
    Thanks! points awarded.
    Dear Dave,
    So, I can say SL is allows for flexible analysis and reporing? If so, is there technically 2 sets of the same data, 1 in say GL and 1 in SL?
    Dear Karthik,
    By parallel ledgers, do you mean, a ledger in , for example GL, also replicated in SL but data shown in different currencies for reporting?
    Regards
    Adette
    Message was edited by:
            Adette Rosenthal

  • Why Using Top Link is best in DB Adapter?

    Hi All,
    Can any one suggest , Why Using Top Link (Build-in Insert, Select etc. operation) is best in DB Adapter over using custom query?
    Thanks

    Hi Vikky,
    for insert/select it depends on what kind of user you are. TopLink lets you browse and click on a tables and have everything generated for you. If you are more a DBA or show me the SQL type then you can just type SQL directly.
    Some advantages of TopLink would be:
    -The range of SQL generated by TopLink is limited, but if you hard code complex SQL into your service you need to maintain it.
    -TopLink can generate at runtime the correct SQL for a given database, making switching from say DB2 to Oracle easy.
    -The merge operation will compare the input XML to the columns on the database and update only what has changed. It can also do a sparse merge. If only 4 columns in the XML were set, only those 4 columns in the database will be updated.
    -For inbound polling the strategy used (LogicalDelete, Sequencing Table, etc) is a configuration property and then at runtime multiple SQL statements are generated. The SQL also takes advantage of advanced syntax like the Oracle-only FOR UPDATE SKIP LOCKED, writing it all yourself may be tedious and error prone.
    -The main benefit of TopLink is when you go beyond thinking about a single table. If you import multiple related tables at once, TopLink will generate the SQL to select from and maintain multiple tables, establish a commit order, and generate a hierarchical XSD. With custom SQL the matching XSD is always flat. I.e. if you just need to insert an emp you could get away with custom SQL. If you need to insert a dept and emps, I would use TopLink.
    -This is also when the intermediary abstraction of an object/table makes more sense, as you only need to import a complex relational schema once, then generate inserts, selects, etc.
    So I hope that helps. They are each equally viable and can do something that the other can't. Where you see an overlap I would go with personal preference.
    Thanks
    Steve

  • Jdbc connection blocks when run from jar

    The following code establishes a connection EXCEPT when run from within a jar file:
    String jdbcDriverName = "oracle.jdbc.driver.OracleDriver";
    String dbConnectionURL = "jdbc:oracle:thin:@192.168.2.7:1521:PRISM";
    String userName = "mdo";
    String password = "mdpass";
    // Load the JDBC driver and create a connection to the database
    Class.forName( jdbcDriverName );
    OracleDataSource dataSource = new OracleDataSource();
    dataSource.setURL( dbConnectionURL );
    dataSource.setUser( userName );
    dataSource.setPassword( password );
    connection = dataSource.getConnection();
    When run from a jar file, the application does not execute beyond the line:
    connection = dataSource.getConnection();
    No exceptions are thrown, it just appears that getConnection never returns.
    Do I need to do anything different to execute this code from within a jar file?
    Thanks in advance,
    Phil
    <><

    When building the JAR file, I inadvertently included files from two Oracle JDBC driver versions (1.2 and 1.4). I was building a single jar file with all files in it.
    I am guessing same named files existed in both driver JARs and caused "confussion" when combined into the single JAR.
    Still, I would have expected an exception to be thrown or a null connection to be returned instead if the thread just blocking.
    Thanks for all replies,
    Phil
    <><

  • Why use an external editor?

    I have done a search on this basic question, but everyone is at least one step ahead of me. I found lots of questions about using external editors, but none on why to use one if the first place.
    It's self-evident that the basic answer is to extend Aperture's capabilities. So let me narrow the focus of my question as follows:
    1. Just out of curiousity, there must be at least some overlap in things that Aperture does and what the external editor can do, correct?
    2. Can you share some guidelines as to when you would stay in Aperture itself and when you would  use the external editor through Aperture?
    3. An obvious question is why use Aperture when you have an external editor?  The most likely answer is that Aperture does some things better, and the external editor does other things better. So does it come down to experience in deciding which program to use for what? As someone whose post processing has, for years, been limited to cropping, that's a pretty daunting reality. Any advice anyone can offer to offset my inexperience would be appreciated. For example, someone on a share-your-image type forum just blasted me when I posted something labled as my first effort at using a RAW file. I made "local" changes here and there in the image. He told me I'm doing things "totally wrong" and I should make global changes, and avoid making local changes. I don't know if he's right or not, but if he is, how was I to know that? So again, any advice for a PP newb would be great.
    Thanks!
    Ben

    Good questions, Ben!
    And probably the answers are a matter of taste and personal preferences, and depending on the workflow we are using.
    2. Can you share some guidelines as to when you would stay in Aperture itself and when you would  use the external editor through Aperture?
    For me, the escape to an external editor is an occasionally necessary evil, if I really need to do things well, that Aperture cannot do.  The problem is, that using an external editor will break Aperture's lossless workflow; it will create an additional original image file, and Aperture cannot undo the edits done in the external editor. And the additional original files will be gigantic 16bit tiffs or PSD files. So I would never use the external editor without a pressing need.
    I use an external editor, if I need to create images with transparency or do advanced retouching that requires the composition of two or more images. That are things that Aperture cannot do.
    Or, if I have images that need lens correction or perspective correction.
    3. An obvious question is why use Aperture when you have an external editor?
    I use Aperture first of all, to keep my images organised - my Aperture library is my database of all photos I have taken during my lifetime.
    And I use Aperture to edit the images and to keep track of the edited image versions and how they relate. For 99% of my image processing needs Aperture is sufficient and great.
    -- Léonie

  • Build ADF jar from maven

    Can we use maven to build ADF jar from one project which contains reusable components such as page template and task flow and the ADF jar is being used in another UI projects?
    Thanks

    Have tried google?
    I found http://groups.google.com/group/adf-methodology/web/maven-and-jdeveloper-adf-projects?pli=1 for a start.
    Timo

  • NoClassdefFoundError on the third-party jar's classes when building APK

    I am building a native extension for Android.
    For the android library, I create a android project and add several third-party jar files to build path.
    I extract a jar file from a android project and merge it and third-party jar files into a single jar file.
    I package ANE using a merged jar file and build a APK.
    When I install a APK and launch it, NoClassdefFoundError on the third-party class occurs.
    I use Flash Builder 4.6 and set sdk version to the Flex SDK 4.6.0 + AIR SDK 15.0.0.356.
    I decompile APK and check the classes.dex.
    Strangely a certain jar's classes are missing in the classes.dex.
    I tried googling and found a similar case.
    The following is the link :
    http://stackoverflow.com/questions/24777394/noclassdeffounderror-on-thirdparty-class-files -when-building-adobe-native-extens
    I try to follow the answer in this link.
    Did dx.jar in the AIR SDK really strip out some classes of third-party jar file??
    I inquired the java version of the third-party related with NoClassdefFoundError.
    Now I am waiting for the reply.
    Is anybody else know about this?

    The android-support-v4.jar is same.
    I check android-support-v4.jar's classes in ANE.
    But they are missing in APK after release build.
    I don't know why.
    I use Flash Builder 4.6 and Flex SDK 4.6.0 + AIR SDK 15.0.0.356.
    Is there anyone else know about this???

  • Not able to build osb jar using osb 10.3

    Hi All,
    I am working on developing an osb jar from workspace(osb 10.3) using ant scripts.When i am trying to invoke an ant with target "export" it show an error "Java returned :13".I went through the entire post sent by respected people over the forum but i am not able to solve it.
    Script which i am using :
    <project name="ConfigExport">
    <property file="./build.properties"/>
    <property name="eclipse.home"
    value="${bea.home}/tools/eclipse_pkgs/2.0/eclipse_3.3.2/eclipse"/>
    <property name="weblogic.home" value= "${bea.home}/wlserver_10.3"/>
    <property name="metadata.dir" value="${workspace.dir}/.metadata"/>
    <target name="export">
    <available file="${metadata.dir}" type="dir"
    property="metadata.dir.exists"/>
    <java dir="${eclipse.home}"
    jar="${eclipse.home}/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20080118.jar"
    fork="true"
    failonerror="true"
    maxmemory="768m">
    <arg line="-data ${workspace.dir}"/>
    <arg line="-application com.bea.alsb.core.ConfigExport"/>
    <arg line="-configProject ${config.project}"/>
    <arg line="-configJar ${config.jar}"/>
    <sysproperty key="weblogic.home" value="${weblogic.home}"/>
    </java>
              <antcall target="deleteMetadata"/>
    </target>
         <target name="deleteMetadata" unless="metadata.dir.exists">
    <delete failonerror="false" includeemptydirs="true"
    dir="${metadata.dir}"/>
         </target>
    </project>
    It seems that on debugging the error in eclipse log say for ex: C:\bea\tools\eclipse_pkgs\2.0\eclipse_3.3.2\eclipse\configuration\
    show me an error saying : "java.lang.RuntimeException: Application "com.bea.alsb.core.ConfigExport" could not be found in the registry."
    It seems that com.bea.alsb.core.ConfigExport not able to find the class which is used to export an osb jar.Moreover in the thread posted basically talks about osb 11 so i am not able to find many folders like middleware,oracle,osb.home.
    Please let me know what is the possible solutions for this in osb 10.3.
    Regards,
    Rajeev Goel
    (Application Developer)

    see here Export from OEPE not working for an answer, that I copy/paste here:
    You have to verify if your OEPE instalation has the following file in the directory dropins (e.g C:\Oracle\middleware\oepe11.1.1.3\dropins)
    filename:
    oracle.osb.ide.link
    content:
    path=C:/Oracle/Middleware/Oracle_OSB1
    Under the Oracle_OSB1 you have an eclipse directory with needed plugins:
    e.g. C:/Oracle/Middleware/Oracle_OSB1/eclipse is not empty
    This is only a sample directory naming from Windows installation, I had a problem on RHEL 5.3 where installer did not put such files.
    Then I took the files from Windows installation.
    I suspect the files are installed "automatically" but I am not sure when.

  • Why does Flash/Flex Builder 4 Premium downgrade to Standard when I install Flash Player Debug?

    Why does Flash/Flex Builder 4 Premium downgrade to Standard when I install Flash Player Debug?
    I installed a corporate install of Flex/Flash Builder 4 Premium, and verified that it was the Premium version was installed.  The Start Page said that Flash Player was needed to display the text, so I installed Flash Player 10 Debug -- first download link from here:
    http://www.adobe.com/support/flashplayer/downloads.html
    When I then started Flex Builder 4, the splash screen showed Premium, but as soon as the Start Page was visible, it showed "FB Adobe Flash Builder 4 Standard" --- Help | About showed Standard, and the splash screen from then on showed Standard.
    A Google search showed a work around for this, but it requires a license for Premium, which I don't have because our corporate install has it built-in:
    http://bloginblack.de/2010/05/adobe-master-collection-cs5-breaks-flash-builder-4-premium-a nd-how-to-fix-it/
    1. Anyone know how to resolve this?
    2. Can Adobe fix this?
    Thanks!

    I had similar problem. I was involved in Flash Builder prerelease program and few months later I installed Adobe CS5 Master Collection. After that I had a same situation.  Best thing was, my Flash Builder Beta was Premium version but acted like Standard, and FB from CS5 was Standard but acted like Premium. I removed CS5 and beta version of CS5. used CS5 Cleaning Fix and then reinstalled my apps.
    I was lucky that I didn't have many big projects involved in FB beta or CS5 workspaces, I heard some guys had problems with migrated workspace configurations but I don't know what was the problem.

  • When / why use XML to store data instead of database table ?

    Hi All,
    I still not use XML much in applications and don't know much about its utilization.
    I read here and there about storing data as XML instead of into database tables.
    - could any body please tell me when / why use XML to store data instead of database table ?
    e.g : store inventory per warehouse in XML format. ?
    - What is the other cases or reasons of extracting database records into XML or vice versa ?
    - is there any good pdf on this ?
    Thank you for your help,
    xtanto

    It depends entirely what you want to accomplish with the 'XML in the database'. There are basically 3 independent methods: As CLOB, as XMLType views or as native XMLType 'columns'
    Each method has advantages and disadvantages, especially in the performance vs purpose tradeoff.
    The Oracled Press book "Oracle Database 10g XML & SQL Design, Build, & Manage XML Applications in Java, C, C++, & PL/SQL" is highly recommended for anyone interested in Oracle and XML. http://books.mcgraw-hill.com/getbook.php?isbn=0072229527&template=oraclepress

  • Why are unwanted vi files produced when building executable?

    I'm using LabVIEW 9, and when I build an executable, it creates 3 unwanted folders containing a number of .vi files that I don't want to have.  The 3 unwanted folders that are automatically created are:
    NI_HTML, NI_report, and NI_Standard Report
    Why are these folders with numerous .vi files created automatically, and where is the option to exclude these when building the .exe?  Ok thanks
    Solved!
    Go to Solution.

    I assume this is a executable build description is created in LabVIEW 8.6 (or earlier), look in your LabVIEW 2009 build settings, there should be an option 'Use LabVIEW 8.x build layout'  (or something similar), this is probably checked, please uncheck.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Why can I not attach a document to an email? Every time I want to send an email with a document attached to it, an error notice pops out. It tell me that the file is being used even when  it is not. How can I fix this issue?

    Why can I not attach a document to an email? Every time I want to send an email with a document attached to it, an error notice pops out. It tells me that the file is being used even when  iall other programs are closed. How can I fix this issue?

    Thanks Jeff, I was not aware that a template could be multi-page.  (All the existing templates were 1 page)
    But it worked, saving me some steps.  When I was finished I renamed the document, and locked it.
    Then tried to save it but  could not because it was locked.  I closed it, went to my Spread Sheet Folder ,
    to find it, it was not there.  The Finder could not find it either.
    So I start over again.
    I opened up Numbers and it showed my personal Numbers template folder, it contained both my new 
    original 4 page template and the vanished saved document!
    I tried to delete the template containing these document data and could not - I had to go to the Library/Application Support/Numbers to physically remove it from this folder. Then I started over again.  I Finally found out how to make it work: I can now "save as", and then lock, and it will go to place where I want it to be saved and locked.
    The secret is: Click on the document title in the menu bar, and it opens up  "Save as...", which works the same as in OS 10.4.11, and you can pick the place you want for saving.  Once done that, you can then lock the document in the same pull down menu, and then close it.
    I also found later that I can delete a template from its folder, by letting Numbers open the templates,
    clicking on the one I want to remove, then go to the "Numbers Menu/File/Move to...", select "Desktop"
    and from there the selected template can then be thrown into the Trash from there.
    It appears now that the real fault of the Numbers software is that the "Save as" command is not available in the "Edit" or "File" pull-down menus, but hidden behind the title of the document.

Maybe you are looking for