Java legal/practical questions.

Hello all.
I have two questions concerning not specifically programming, but I don't know where to post, so I shall do it here, sorry if I am wrong.
First of all: sometimes I (we) use some libraries made by ourselves (my colleagues at job). Should these classes be available to everyone, not only by my company?. How (even if it is not obliged)?.
The second: when using (ups, this is C#. I meant importing) this classes and any other of the same kind (I specially think about some com.*.*), as we comment the code, I think it must be reported that they are not from the jdk (and probably how to get them and where). What do you think?. Is this necessary or too much comments?.

First of all: sometimes I (we) use some libraries made
by ourselves (my colleagues at job). Should these
classes be available to everyone, not only by my
company?. How (even if it is not obliged)?.
That all depends on company policy.
Ask your boss about that.
If your library is to be used by customers to interface with your product you will of course need at least some kind of an interface and libratry to be made available but it will likely be only a subset of the full thing, just enough that they can communicate.
The second: when using (ups, this is C#. I meant
importing) this classes and any other of the same kind
(I specially think about some com.*.*), as we comment
the code, I think it must be reported that they are
not from the jdk (and probably how to get them and
where). What do you think?. Is this necessary or too
much comments?.Just use descriptive package names and good documentation.
You can customise your Javadoc to contain your company name and a copyright notice automatically at the top and/or bottom of each page using a few switches to the Javadoc generator, and can add anything else inside the class documentation.

Similar Messages

  • Best Practices Question: How to send error message to SSHR web page.

    Best Practices Question: How to send error message to SSHR web page from custom PL\SQL procedure called by SSHR workflow.
    For the Manager Self-Service application we’ve copied various workflows which were modified to meet business needs. Part of this exercise was creating custom PL\SQL Package Procedures that would gather details on the WF using them on custom notification sent by the WF.
    What I’m looking for is if/when the PL\SQL procedure errors, how does one send an failure message back and display it on the SS Page?
    Writing information into a log or table at the database level works for trouble-shooting, but we’re looking for something that will provide the end-user with an intelligent message that the workflow has failed.
    Thanks ahead of time for your responses.
    Rich

    We have implemented the same kind of requirement long back.
    We have defined our PL/SQL procedures with two OUT parameters
    1) Result Type (S:Success, E:Error)
    2) Result Message
    In the PL/SQL procedure we always use below construct when we want to raise any message
    hr_utility.set_message(APPL_NO, 'FND_MESSAGE_NAME');
    hr_utility.raise_error;
    In Exception block we write below( in successful case we just set the p_result_flag := 'S';)
    EXCEPTION
    WHEN APP_EXCEPTION.APPLICATION_EXCEPTION THEN
    p_result_flag := 'E';
    p_result_message := hr_utility.get_message;
    WHEN OTHERS THEN
    p_result_flag := 'E';
    p_result_message := hr_utility.get_message;
    fnd_message.set_name('PER','FFU10_GENERAL_ORACLE_ERROR');
    fnd_message.set_token('2',substr(sqlerrm,1,200));
    fnd_msg_pub.add;
    p_result_message := fnd_msg_pub.get_detail;
    After executing the PL/SQL in java
    We have written some thing similar to
    orclStmt.execute();
    OAExceptionUtils.checkErrors (txn);
    String resultFlag = orclStmt.getString(provide the resultflag bind no);
    if ("E".equalsIgnoreCase(resultFlag)){
    String resultMessage = orclStmt.getString(provide the resultMessage bind no);
    orclStmt.close();
    throw new OAException(resultMessage, OAException.ERROR);
    It safely shows the message to the user with all the data in the page.
    We have been using this construct for a long time for all our projects. They are all working as expected.
    Regards,
    Peddi.

  • Oracle Asset (Functional) Practice Questions for Interviews and Exam

    https://www.createspace.com/3495382
    http://www.amazon.com/Functional-Questions-Interviews-Certification-Examination/dp/1456311581/ref=sr_1_4?ie=UTF8&s=books&qid=1289178586&sr=8-4
    List Price: $29.99
    Add to Cart
    Oracle Asset (Functional) Practice Questions for Interviews and Certification Examination (Release 11i and 12)
    Functional Consultant
    Authored by Erp Gold
    This book contains 150 Oracle Asset Practice Questions for functional consultants. Very useful for interviews and certification examinations.
    Publication Date:
    Oct 26 2010
    ISBN/EAN13:
    1456311581 / 9781456311582
    Page Count:
    94
    Binding Type:
    US Trade Paper
    Trim Size:
    6" x 9"
    Language:
    English
    Color:
    Black and White
    Related Categories:
    Computers / General

    Reported as spam!

  • Oracle Asset (Functional) Practice Questions for Interviews and Certificati

    https://www.createspace.com/3495382
    List Price: $29.99
    Add to Cart
    Oracle Asset (Functional) Practice Questions for Interviews and Certification Examination (Release 11i and 12)
    Functional Consultant
    Authored by Erp Gold
    This book contains 150 Oracle Asset Practice Questions for functional consultants. Very useful for interviews and certification examinations.
    Publication Date:
    Oct 26 2010
    ISBN/EAN13:
    1456311581 / 9781456311582
    Page Count:
    94
    Binding Type:
    US Trade Paper
    Trim Size:
    6" x 9"
    Language:
    English
    Color:
    Black and White
    Related Categories:
    Computers / General

    Reported as spam!

  • Best practice question -- copy container, assemble it, build execution plan

    So, this is a design / best practice question:
    I usually copy containers as instructed by docs
    I then set the source system parameters
    I then generate needed parameters / assemble the copied container for ALL subject areas present in the container
    I then build an execution plan JUST FOR THE 4 SUBJECT AREAS and build the execution plan and set whatever is needed before running it.
    QUESTION - When i copy the container, should i delete all not needed subject areas out of it or is it best to do this when building the execution plan? I am basically trying to simplify the container for my own sake and have the container just have few subject areas rather than wait till i build the execution plan and then focus on few subject areas.
    Your thoughts / clarifications are appreciated.
    Regards,

    Hi,
    I would suggest that you leave the subject areas and then just don't include them in the execution plan. Otherwise you have the possibility of running into the situation where you need to include another subject area in the future and you will have to go through the hassle of recreating it in your SSC.
    Regards,
    Matt

  • SAP Adapter Best Practice Question for Deployment to Clustered Environment

    I have a best practices question on the iway Adapters around deployment into a clustered environment.
    According to the documentation, you are supposed to run the installer on both nodes in the cluster but configure on just the first node. See below:
    Install Oracle Application Adapters 11g Release 1 (11.1.1.3.0) on both machines.
    Configure a J2CA configuration as a database repository on the first machine.
    Perform the required changes to the ra.xml and weblogic-ra.xml files before deployment.
    This makes sense to me because once you deploy the adapter rar in the next step it the appropriate rar will get staged and deployed on both nodes in the cluster.
    What is the best practice for the 3rdParty adapter directory on the second node? The installer lays it down with the adapter rar and all. Since we only configure the adapter on node 1, the directory on node 2 will remain with the default installation files/values not the configured ones. Is it best practice to copy node 1's 3rdParty directory to node 2 once configured? If we leave node 2 with the default files/values, I suspect this will lead to confusion to someone later on who is troubleshooting because it will appear it was never configured correctly.
    What do folks typically do in this situation? Obviously everything works to leave it as is, but it seems strange to have the two nodes differ.

    What is the version of operating system. If you are any OS version lower than Windows 2012 then you need to add one more voter for quorum.
    Balmukund Lakhani
    Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog |
    Team Blog | @Twitter
    | Facebook
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

  • SAP Adapter Best Practice Question for Migration of Channels

    I have a best practice question on the SAP adapter when migrating an OSB project from one environment (DEV) to another (QA).
    If my project includes an adapter channel that (e.g., Inbound SAP Proxy listening on a channel), how do I migrate that project to another environment if the channel in the target environment is different.
    I tried using the search and replace mechanism in the sbconsole, but it doesn't find the channel name in the jca and wsdl files.
    What is the recommended way to migrate from one environment to the other when the channel name changes?

    I have a best practice question on the SAP adapter when migrating an OSB project from one environment (DEV) to another (QA).
    If my project includes an adapter channel that (e.g., Inbound SAP Proxy listening on a channel), how do I migrate that project to another environment if the channel in the target environment is different.
    I tried using the search and replace mechanism in the sbconsole, but it doesn't find the channel name in the jca and wsdl files.
    What is the recommended way to migrate from one environment to the other when the channel name changes?

  • Java Best Practices

    Hi All,
    can any one tell me what are all Java Best Practices or can you please refer site where we can find java best practices.
    pvmk

    manuel.leiria wrote:
    Check out this great siteAlso check out Joshua Bloch's [Effective Java|http://www.amazon.com/Effective-Java-2nd-Joshua-Bloch/dp/0321356683/]. Much of the advice on the Java Practices site duplicates content from Bloch's book, but without the explanations and discussion that make Effective Java the one book every Java programmer should read. And the best part is, the second edition just came out, so it now contains advice related to generics, annotations, and other features that weren't covered in the original.

  • Looking for authorized 1Z0-514 practice questions

    I'm studying for the 1Z0-514 - Oracle Database 11g Essentials exam. I have gone through all of the tutorials in the 11g 2-day DBA manual and Oracle By Example supplement. I think I'm ready but would like some practice questions to test myself. According to http://www.certguard.com/, every hit on Google for "1Z0-514" is a braindump. That site also lists a number of reputable sites for practice exams, although none of them includes 1Z0-514.
    Q1: Does anyone know of a verified source of legitimate 1Z0-514 practice questions?
    Q2: Does anyone know how relevant OCA practice exams (1Z0-052) would be for 1Z0-514? They seem to have a lot of common ground.

    Hi, I had the same problem you are having now a few months ago, after studying the 11g 2-day DBA manual I couldn't find any authorized practice questions.
    I ended up going through OCA books and practice questions. I advise you use them, the 1z0-052 and 1z0-514 exams cover very similar topics.

  • Need 1z0-144 Practice Questions (Dumps)

    Hi All
    I need practice questions for 1z0-144 exam.
    Study material, as everybody knows, is available but in scattered form.
    Please tell me any resource for getting the questions.
    Thanks and Regards.

    Using such methods is illegal.
    See Need Oracle OCA Dumps and other such threads. Use the search link above.
    http://blogs.oracle.com/certification/entry/0477
    http://blogs.oracle.com/certification/2009/05/the_route_you_choose.html
    HTH
    Srini

  • Need oracle practice question for OCA

    Need oracle practice question for OCA.
    Edited by: 823938 on Dec 27, 2010 10:21 PM

    It's illegal to use dumps.
    Read the following link:
    http://www.certguard.com/braindumps.asp

  • Practical question: How to transfer ASM backup files?

    Hi friends:
    A practical question:
    all dev, production database using ASM for storage, production db using RMAN did full backup. (everyday night, one copy redundancy)
    For example, production database is down, then in short time, it is hard to repaire back online, then, I want to transfer ASM backup files(sets) to dev database, make dev as a quick temporary production db.
    question: how can you find full backup sets (location) and how to trasnfer?
    thanks a lot in advance.
    Message was edited by:
    jerrygreat

    You can find backupsets by using the
    list backupset
    command
    and you can transfer them using the
    backup backupset command.
    Both commands are fully documented in the RMAN documentation for 10g.
    Please read it.
    Obviously changing a dev database into a production one has little to do with proper backup and recovery procedures.
    Sybrand Bakker
    Senior Oracle DBA

  • JAVA written practical test

    Hi
    I don't quite know where to put this thread, but I am looking for a downloadable java written practical test. We are in the process of employing some new staff and we need a test of some sorts to gauge the skills.
    Actually any kind of JAVA test would be appreciated
    Thanks

    I don't quite know where to put this thread, but I am
    looking for a downloadable java written practical
    test. We are in the process of employing some new
    staff and we need a test of some sorts to gauge the
    skills.
    Actually any kind of JAVA test would be appreciatedJust search Google for "mock SJCP exam". And if you really want to use it for employment test: stop testing for Java knowledge and start testing for programing skills. Those things are rather unrelated, and the latter surely is more important.

  • Bean best practice question

    Simple questions (hopefully), I know how to code this but just want some advice on the best way to do the following:
    1. User enters data into HTML form and submits
    2. Some Java at the backend grabs these details and emails them off somewhere
    I am thinking of doing the following, but what’s the best way?
    1. HTML form submits and data is sent directly to a JavaBean (FormBean.java)
    2. FormBean.java contains standard getters/setters but also contains a method called sendMail(), is this bad practice? Do I need a second Bean sendMail.java? Or is this completely the wrong way to do things i.e. should I do this entirely in a servlet with only 1 bean to grab the data (FormBean) and then access from servlet?
    Just a bit confused on what’s best practice for this stuff?
    Thanks!

    2. FormBean.java contains standard getters/setters but also contains a method called sendMail(), is this bad practice? Do I need a second Bean sendMail.java? A better approach is this way
    a) Have all the form data in the form bean
    b) Write sendMail in a all together different class, as action.
    c) Send the form bean as a parameter to sendMail for processing and sending an email
    This way your sendMail() will become a kind of a service. Tomorrow you might have some other data, which you will have to send it in an email. In that case, you just reuse sendMail() method. Otherwise, if you have sendMail() in form bean itself, then if there are many form beans, then you would have to write sendMail() in every form bean, which is a bad practice. One principle of OOAD is to separate the functionality, which is redundant in your classes and make it as a separate module. If there are changes to the sendMail() functionality then, by having it in one module, you only have to change it at one place.
    Or is this completely the wrong way to do things i.e. should I do this entirely in a servlet with only 1 bean to grab the data (FormBean) and then access from servlet?You can have a servlet which acts like a controller, which receives the request parameters, constructs the form bean and invokes appropriate Action (in your case sendMail()). This is same as an MVC framework. Instead of you re-inventing the wheel to create a servlet controller, form bean, action etc. You could use one of the several MVC frameworks available in the market, such as Struts or Spring MVC.

  • Do you know any web pages that has java problem-solving questions??

    hi i just wanna practice my problem solving skills.......
    buy i ve already solved all the questions that i have......................
    so i m looking for new questions,,,looking for new problems..
    do you know any web site that provides java
    questions for students.......?

    better than u
    hellbetter than whom you dickhead.
    stay away from forums.

Maybe you are looking for

  • Problem with printing in Snow Leopard

    Since upgrading to 10.6 I cannot select Duplex Printing for my Canon iP5200R from Mail, Safari or Microsoft Office. I can select Duplex from Adobe Photoshop Elements, Reader etc., Pages and Preview. I have downloaded the latest drivers. To print from

  • JDBC performance problem with Blob

    Hi, I've some performance problem while inserting Blob in an Oracle 8i database. I'm using JVM 1.17 on HP-UX 11.0 with Oracle thin client The table I used contains only two columns : an integer (the primary key) and a blob. First I insert a row in th

  • Same Classification

    We need to do exception handling for addln data tab when DIR staus got chaned from DR from RA. For same values at author, owner and approver, There is one exit(CLCTMS02) available that can be use for to check characteristic values  . But this exit wi

  • MOVED: GPU Mode???

    This topic has been moved to MSI Notebooks & Netbooks. https://forum-en.msi.com/index.php?topic=174265.0

  • Sap netweaver developer studio falls to half open

    *Do help me, I am making application in SAP NetWeaver Developer Studio, but to open many windows on the hill and you are unable to reopen wants to open but closes.*