-
1. Re: O'Reilly JBoss 3.0 Workbook
cchoi Sep 17, 2002 5:36 AM (in response to bill.burke)Hi,
This is about "run.client_71a" target of the Workbook.
A running of this target creates an entity bean with a specified primary key and writes the record to DB. The second run causes ...DuplicateKeyException... error as expected.
But it seems the data that have been written to DB by running run.client_71a is lost when JBoss is shutdown.
If you run "run.client_71a" again after having RE-started JBoss, you do NOT get ...DuplicateKeyException... message;
i.e., the entity bean is created with no problem as if it had never been created.
How come the data is lost when JBoss is shutdown?
How could I keep the data even when JBoss is shutdown?
Thank you very much for your explanations in advance:)
(Also posted in this Forum on Sep. 16th) -
2. Re: O'Reilly JBoss 3.0 Workbook
cchoi Sep 17, 2002 5:38 AM (in response to bill.burke)Hi,
This is about "run.client_71a" target of the Workbook.
A running of this target creates an entity bean with a specified primary key and writes the record to DB. The second run causes ...DuplicateKeyException... error as expected.
But it seems the data that have been written to DB by running run.client_71a is lost when JBoss is shutdown.
If you run "run.client_71a" again after having RE-started JBoss, you do NOT get ...DuplicateKeyException... message;
i.e., the entity bean is created with no problem as if it had never been created.
How come the data is lost when JBoss is shutdown?
How could I keep the data even when JBoss is shutdown?
Thank you very much for your explanations in advance:)
(Also posted in this Forum on Sep. 16th) -
3. Re: O'Reilly JBoss 3.0 Workbook
cchoi Sep 17, 2002 5:47 AM (in response to bill.burke)Hi,
This is about "run.client_71a" target of the Workbook.
A running of this target creates an entity bean with a specified primary key and writes the record to DB. The second run causes ...DuplicateKeyException... error as expected.
But it seems the data that have been written to DB by running run.client_71a is lost when JBoss is shutdown.
If you run "run.client_71a" again after having RE-started JBoss, you do NOT get ...DuplicateKeyException... message;
i.e., the entity bean is created with no problem as if it had never been created.
How come the data is lost when JBoss is shutdown?
How could I keep the data even when JBoss is shutdown?
Thank you very much for your explanations in advance:)
(Also posted in this Forum on Sep. 16th) -
4. Re: O'Reilly JBoss 3.0 Workbook
cchoi Sep 17, 2002 5:49 AM (in response to bill.burke)Hi,
This is about "run.client_71a" target of the Workbook.
A running of this target creates an entity bean with a specified primary key and writes the record to DB. The second run causes ...DuplicateKeyException... error as expected.
But it seems the data that have been written to DB by running run.client_71a is lost when JBoss is shutdown.
If you run "run.client_71a" again after having RE-started JBoss, you do NOT get ...DuplicateKeyException... message;
i.e., the entity bean is created with no problem as if it had never been created.
How come the data is lost when JBoss is shutdown?
How could I keep the data even when JBoss is shutdown?
Thank you very much for your explanations in advance:)
(Also posted in this Forum on Sep. 16th) -
5. Re: O'Reilly JBoss 3.0 Workbook
pfat Sep 22, 2002 10:36 PM (in response to bill.burke)Bill,
I am a bit of a newbie and am using the 'EJB 3rd Edition' as well as your workbook as a primer to get my feet wet. I came across something that appears a little confusing in the text and example code.
On page 5 of the Chapter 4 examples section, you make mention of an ant task 'clean.db'. It appears just under the 'compile:' ejb-jar:' output sample at the top of the page. I tried executing this without success. After digging into the build.xml file, I do not see a task defined for 'clean.db'. I would think that this should be in the ../ex4_01/build.xml file, but maybe I am missing it and it is someplace else.... Could you clarify if this is in inconsistency?
I would like to be able to hack up these examples and be able to run them multiple times. However, I am struggling with HypersonicSQL trying to remove the data that was added. Thanks in advance!
Brian -
6. Re: O'Reilly JBoss 3.0 Workbook
e_j_m Sep 24, 2002 4:37 PM (in response to bill.burke)The link above is broken.
Also, at the www.monson-haefel.com website, there is a link to workbooks, which is also broken. -
8. Re: O'Reilly JBoss 3.0 Workbook
bill.burke Sep 25, 2002 12:52 PM (in response to bill.burke)Sorry for the late response....
In jbosscmp-jdbc.xml you'll see the <remove-table> tag. This is what causes the table to be dropped on jboss shutdown. Turn off this flag, and it will hold data between shutdowns.
<jbosscmp-jdbc>
java:/DefaultDS
<datasource-mapping>Hypersonic SQL</datasource-mapping>
<create-table>true</create-table>
<remove-table>true</remove-table> -
9. Re: O'Reilly JBoss 3.0 Workbook
bill.burke Sep 25, 2002 12:59 PM (in response to bill.burke)Sorry....
Add this to build.xml
*Please note*
JBoss must be shut down to run this target.
Bill
> Bill,
> I am a bit of a newbie and am using the 'EJB 3rd
> Edition' as well as your workbook as a primer to get
> my feet wet. I came across something that appears a
> little confusing in the text and example code.
>
> On page 5 of the Chapter 4 examples section, you make
> mention of an ant task 'clean.db'. It appears just
> under the 'compile:' ejb-jar:' output sample at the
> top of the page. I tried executing this without
> success. After digging into the build.xml file, I do
> not see a task defined for 'clean.db'. I would think
> that this should be in the ../ex4_01/build.xml file,
> but maybe I am missing it and it is someplace
> else.... Could you clarify if this is in
> inconsistency?
>
> I would like to be able to hack up these examples and
> be able to run them multiple times. However, I am
> struggling with HypersonicSQL trying to remove the
> data that was added. Thanks in advance!
>
> Brian -
10. Re: O'Reilly JBoss 3.0 Workbook
rchriste Oct 22, 2002 4:30 PM (in response to bill.burke)Hello All,
Has anyone else had trouble printing the Beta pdf? My Acrobat reader has the Print button grayed out.
Thanks,
-Bob -
11. Re: O'Reilly JBoss 3.0 Workbook
andrewboyd Oct 22, 2002 4:57 PM (in response to bill.burke)Your link didn't work for me. However this one did:
http://www.oreilly.com/catalog/entjbeans3/workbooks/index.html
then just scroll down to the JBoss section and select which one you want.
Cheers,
Andrew -
12. Re: O'Reilly JBoss 3.0 Workbook
wwheeler1464 Oct 23, 2002 1:12 PM (in response to bill.burke)Yeah, it's a nonprintable PDF. The idea is to whet your appetite, allow user testing, whatever, without removing the incentive to purchase. :-)
Willie