Win a copy of Rust Web Development this week in the Other Languages forum!

Ross Crockett

Ranch Hand
+ Follow
since Aug 25, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ross Crockett

Hello Godfrey,
I'm an Android native apps developer and am looking at using OAuth or OpenID in an app I manage as a personal project, do you have an opinion on using these as opposed to an AAA mechanism built by myself for the app?

Cheers,
Ross
7 years ago
I think I'm missing something, as couldn't someone root their phone, decompile the code and see the encrypted credentials and the location to send it to be decrypted? Do you have a link to an example of where this is done so I can see how it all hangs together?
7 years ago
Has any one sat the 1Z0-554 - Oracle Application Development Framework 11g Implementation Specialist exam? I've done most of the tutorials and watched most of the ADF Insider videos (http://www.oracle.com/technetwork/developer-tools/adf/learnmore/adfinsider-093342.html) but would like to tackle some sample questions to gauge my understanding.

Google doesn't turn up much results...
Hello,
Without going as far as creating your own Custom View Component, is there an easy way to create a layout that can be used within other layouts? What I'm after is a sort of JSP include like behaviour where I can create one layout that displays a footer or menu for example, and then include that within other layouts so its on every view. It might be easier to think of the layout as a 'tile' of sorts to be placed in other layouts by some kind of tag.

My hypothetical usage would look something like this:

11 years ago
I think it more comes down to which features you want to use NetBeans for doesn't it? The Android SDK comes with all the command line tools etc to do development, so in theory you should be able to use any IDE or none at all. While Eclipse will allow you to get started and make following the tutorials a lot quicker, you could always use NetBeans to do your java and XML stuff, then maybe create some ant scripts or something that leverage the necessary tools from the SDK to package and launch your application.
11 years ago
Passed SCBCD this morning with 81%.

Study path was similar to most others:

1. Read EJB3 In Action writing notes as I went along
2. Read EJB Specs
3. Read Mikalai Zaikin Notes
4. Tried examples from books, web sites etc
5. Enthuware test simulator

I highly recommend reading the specs in accompaniment with MZ's notes. The spec provides the level of detail you need to really understand the concepts, where as I found MZ's notes good to refer to every now and again. The benefits of doing examples is underrated too, it really helps sink that knowledge in when you have to write it all down.

I also really recommend the Enthuware tests. I found the questions are reflective of the actual exam questions and are a great preparation tool. I did find the actual exam a LOT easier than the mock tests though like others have mentioned.

As for other tips:

  • The forums are gold! I liked to read all the threads even if I knew the answer. It's good to try and reply to some too as it either makes you learn something new or cements in something you already knew
  • Read the questions. A lot of questions I got wrong in the simulators were because I didn't read the question CLOSELY. I really took my time in the exam to make sure I understood each question.

  • With SCJP, SCWCD and now SCBCD under the belt I think I will take a break for a while and possibly do SCWSD in the future. Time for beer tonight though!

    Thanks authors and ranchers for your work!
    12 years ago
    Hey Sandeep,
    Im a bit too lazy to find exactly where in the spec this is mentioned, but the statement in Mikalai's notes is correct. Check out the API docs for the EntityManager.refresh() method where it also confirms the statement.


    Throws:
    IllegalStateException - if this EntityManager has been closed.
    IllegalArgumentException - if not an entity or entity is not managed
    TransactionRequiredException - if invoked on a container-managed entity manager of type PersistenceContextType.TRANSACTION and there is no transaction.
    EntityNotFoundException - if the entity no longer exists in the database.



    It can be managed if you add a merge() call in in the refresh() call e.g.

    Hello Dante,
    There is no guarantee that your for loop will be entered e.g. if degree is -2

    If the loop is skipped there is no return statement after loop to return a String. Since your toString() method has to return a String, the compiler complains about it. I would suggest adding a return statement after your loop to return a default value if the degree is invalid i.e. return null or "".

    Your code would then look something like:

    12 years ago
    Thanks Naveen,
    I haven't used Pro EJB 3: Java Persistence API so i'm not familiar with there example format. Your post below though suggests that the Chapter 2 examples simply require you to run a batch file. Is there a *.bat file in that directory? Or do they mean an Ant script (hence output in your original post)?

    Just looking at the details, maybe check if EXAMPLES_HOME should be "C:/EXAMPLES_HOME/" instead of "C:/EXAMPLES_HOME/examples".

    Does your C:/EXAMPLES_HOME directory look something like:

    EXAMPLES_HOME
    |
    + examples
    + config
    + bin
    + lib

    or is everything under C:/EXAMPLES_HOME/examples? Might just be a path issue...
    Hey nav,

    I tried following this message but failed.



    The more info you post here will increase your chances of finding a solution, check out Tell The Details.

    Since I assumed you couldn't install Glassfish, try the following steps:

    1. In a web browser go to https://glassfish.dev.java.net/public/downloadsindex.html#top
    2. Download the latest stable version (think its 2.1.1).
    3. Also on that page is a link to a quick start guide. You should read this to get a familiarity with the server etc.
    4. The installation should be pretty self explanatory, from memory I don't think there was anything that required special knowledge to complete.
    5. Once setup make sure you set all the appropriate environment variables (JAVA_HOME, J2EE_HOME etc).
    6. From memory, EJB3 in Action requires you to possibly change some things in the Ant script. Check the readme (if there is one) that comes with the examples on what needs to be set before running examples.

    Hope that helps. If your still struggling, post a bit more info about what you have installed (e.g. your CLASSPATH, JDK etc.) and the exact details of the problems your facing (e.g. error messages, can't understand a step)

    Cheers,
    Ross
    Looks like no JPA classes are being found when ant compiles your code, it's likely you don't have the JPA classes or they aren't on the classpath.

    Look into this first and reply if still in trouble.
    I agree with Paul here. Just double check your transaction type, if it is RequiresNew it should commit after each method in your loop. However, if you want to ensure your changes are reflected before a commit occurs you can always call flush() on your EntityManager (assuming your using JPA).
    I would suggest every question is based on info covered in the specs, what questions would be asked that aren't?

    As Deepika mentioned, the exam covers the Exam objectives, the knowledge for which is covered in the specs.

    ah no problems, thanks for the speedy reply.