• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

O'Reilly's Enterprise JavaBeans 3.0 for SCBCD

 
Reema Patel
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,
I've just started preparing for the SCBCD exam and wanted to share my experience with fellow ranchers.

I tried a few books on EJB 3.0 but none could get close to OReilly's "Enterprise JavaBeans 3.0" ....this book rocks!!

However, I'm struck at Entity Beans examples. I can run through with the client programs with no problem; but, I can't see the tables created in HSQL DB. Has someone tried running the examples?

Regards,
Reema
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried a few books on EJB 3.0

Did you read "EJB3 In Action" too ? If so, could you please compare them ?
 
Camilo Morales
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Reema Patel:

However, I'm struck at Entity Beans examples. I can run through with the client programs with no problem; but, I can't see the tables created in HSQL DB. Has someone tried running the examples?
Reema


You can't see the tables because the example is not running properly ? of because you don't know where the HSQL Database Manager is ?

In the case of the second option, all you have to do is:

1- Start Up JBoss.
2- Deploy ans test the example(s) and client(s).
3- Now to see the database schema go to: http://localhost:8080/jmx-console.
4- Click on "database=localDB,service=Hypersonic" under the title "jboss".
5- Scroll down and click on the "startDatabaseManager" MBean Operation "Invoke" button.

That will bring up the HSQL Database Manager where you can your database schema, run some sql statements, etc.

The books explains this in the CHAPTER WORKBOOK 4 with screen shots and everything.

Regards,
 
Fadjer One
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I tried several examples in this book, and It's ok for me. I can see tables as explained below. What's exactly your problem ?

Don't forget than you can use Eclipse WPT to run examples too. I found this easer than ant tasks.

Good luck.
 
Reema Patel
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,
Fortunately now everything is working as expected.

This is quite strange; on my work PC I can't find the DB tables in the HSQL DB Manager GUI. However, on my home PC I can view the tables. I can't still figure out why is this so. Anyhow, I can run the examples now.

Regards,
Reema
SCJP, SCWCD
 
Reema Patel
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Initially posted by Verre:
Did you read "EJB3 In Action" too ? If so, could you please compare them ?


I can't comment on this book. However, I read couple of chapters of Apress's "Beginning EJB 3.0"; this book is good in theory; but, I find the O'Reilly's EJB 3.0 to be far better in all respects. I would strongly recommend anyone preparing for the SCBCD exam to buy this book.

Regards,
Reema
SCJP, SCWCD
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic