Win a copy of Event Streams in Action this week in the Java in General forum!

Bell Katapa

Ranch Hand
+ Follow
since Jan 06, 2012
Bell likes ...
Oracle
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
5
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Bell Katapa

I would like to take this opportunity to thank Kathy and Bert. Your programmer certification book SCJP6 drilled the foundations of Java into my DNA. It is a blessing to the Java community that you have continued with this noble cause of culturing new Java professionals even with the new Java edition releases. Thank you.

Regards,

Bell Katapa BSc, OCPJP6, OCEWCD6, OCEEJB6.
I would like to take this opportunity to thank Kathy and Bert. Your programmer certification book SCJP6 drilled the foundations of Java into my DNA. It is a blessing to the Java community that you have continued with this noble cause of culturing new Java professionals even with the new Java edition releases. Thank you.

Regards,

Bell Katapa BSc, OCPJP6, OCEWCD6, OCEEJB6.
I know the competition has ended but here's another one that passed Tim's test harness

The wordOccurrence method



Helper code



Congrats Adam. The depths to which you went with obscurity deserved you the win.
Hello Jim,

Sorry i have just seen your post. Hope my response is still relevant.
Usually it's what we learn from the questions we get wrong (and right) on the practice exams that count.

However if i can offer my opinion purely on the scores you've posted i should say you may just get a fair amount of marks above the passing score (73%).
To be certain of passing with chances of a handsome score you should at least score marks in the region of 90% in 3 mock exams. Again there are no "hard rules" but am not completely off-the-mark with my advice.

Good luck,

Bell.
4 years ago

Campbell Ritchie wrote:Bell Katapa, sorry for misspelling your name earlier.



Thanks, no big deal. I think you got the spelling right unless my eyes are acting on me.
... and using java.util.regex.Pattern with java.util.regex.Matcher class

Using java.util.Scanner class ...

Campbell Ritchie wrote:

Bell Katapa wrote:

Have you tried that code in the test harness which Tim posted at the beginning of this thread? It failed when I tried it.



Yes. It fails on the second test sentence by 1 word "i". Despite passing the first test sentence the code has a flaw (it's searching for patterns even in-between words).
Am working on a version that sticks solely to space-delimited words. It would be so far a unique solution if i pull it off. Thanks for pointing this out.
My second attempt ...

Is knowledge of Java ME necessary for this certification?
Wow! I that my name? I can't stop smiling
Hello Richard,

I am currently on the path to JPA certification.

I.Y.O Are there enough and practical real-world justifications out there to warrant support in the JPA 2.x spec for keying on embeddables (rather than first class entities) when mapping key/value pair collections to relational data stores? Was this move more about 'completeness' than promotion of best design/coding practice? What's your take.
I was able to successfully build and deploy the example project from chapter 2 by
1. creating a new war project (with support for jsf)
2. creating packages to mirror those from the downloaded project
3. copying source files to mirrored location in new project
4. replace occurrences of "jdbc/chapter2" with a jndi name representation of a working datasource connection
5. replace hibernate persistence provider with eclipse in the persistence.xml file

I omitted all the the test files though from the process.

There were no errors on deployment. However when i tried to load the home page (i.e. http://localhost:8080/ActionBazaar) i was getting '404 - page not found error'. Same error even with /index.jsf is appended.
A section of the glassfish's server.txt log confirms the successful deployment

"[2014-06-16T00:36:34.389+0200] [glassfish 4.0] [INFO] [ejb.portable_jndi_names] [javax.enterprise.system.container.ejb.com.sun.ejb.containers] [tid: _ThreadID=145 _ThreadName=AutoDeployer] [timeMillis: 1402871794389] [levelValue: 800] [[
EJB5181:Portable JNDI names for EJB OrderProcessorBean: [java:global/example/OrderProcessorBean, java:global/example/OrderProcessorBean!com.actionbazaar.buslogic.OrderProcessor]]]

[2014-06-16T00:36:34.436+0200] [glassfish 4.0] [INFO] [ejb.portable_jndi_names] [javax.enterprise.system.container.ejb.com.sun.ejb.containers] [tid: _ThreadID=145 _ThreadName=AutoDeployer] [timeMillis: 1402871794436] [levelValue: 800] [[
EJB5181:Portable JNDI names for EJB ItemServiceBean: [java:global/example/ItemServiceBean!com.actionbazaar.buslogic.ItemService, java:global/example/ItemServiceBean]]]

[2014-06-16T00:36:34.467+0200] [glassfish 4.0] [INFO] [ejb.portable_jndi_names] [javax.enterprise.system.container.ejb.com.sun.ejb.containers] [tid: _ThreadID=145 _ThreadName=AutoDeployer] [timeMillis: 1402871794467] [levelValue: 800] [[
EJB5181:Portable JNDI names for EJB UserServiceBean: [java:global/example/UserServiceBean, java:global/example/UserServiceBean!com.actionbazaar.buslogic.UserService]]]

[2014-06-16T00:36:35.513+0200] [glassfish 4.0] [INFO] [jsf.config.listener.version] [javax.enterprise.resource.webcontainer.jsf.config] [tid: _ThreadID=145 _ThreadName=AutoDeployer] [timeMillis: 1402871795513] [levelValue: 800] [[
Initializing Mojarra 2.2.0 ( 20130502-2118 https://svn.java.net/svn/mojarra~svn/tags/2.2.0@11930) for context '/ActionBazaar']]

[2014-06-16T00:36:38.381+0200] [glassfish 4.0] [INFO] [AS-WEB-GLUE-00172] [javax.enterprise.web] [tid: _ThreadID=145 _ThreadName=AutoDeployer] [timeMillis: 1402871798381] [levelValue: 800] [[
Loading application [example] at [/ActionBazaar]]]

[2014-06-16T00:36:39.910+0200] [glassfish 4.0] [INFO] [] [javax.enterprise.system.core] [tid: _ThreadID=145 _ThreadName=AutoDeployer] [timeMillis: 1402871799910] [levelValue: 800] [[
example was successfully deployed in 52,929 milliseconds.]]
"