Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP forum!

Adela Popescu

Greenhorn
+ Follow
since Oct 28, 2004
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Adela Popescu

Thank you very much,Raghubir.
Regards,
Adela
Thank you, Ricardo. But I want to know which books are the best.
Which books would you recommand me?

Regards,
Adela
I have the intention to prepare for the SCEA.
Could you please write me which books are very good.

Regards,
Adela
Hi Doug,
Thank you for your detailed answer.
Regards,
Adela
Hello,

I hope somebody can help me. I have one database table which has as primary keys ID and VERSION. Other columns are VALID_FROM and a lot of other columns.
I need to have two classes, the Data class and DataHistory class. So I have also two persistence classes that both maps to this table. From the Data class I need the list of histories and the current history entry. This means I have a OneToManyMapping to the DataHistory class for the list of histories. For the current history I have a OneToOneMapping to the History class with setting the query for the max version for VALID_FROM <= current date.
The mapping for the current entry is:
OneToOneMapping oneToOneMapping = new OneToOneMapping();
oneToOneMapping .setAttributeName("_current");
oneToOneMapping .setReferenceClass(DataHistory.class));
oneToOneMapping .setForeignKeyFieldName("ID");
oneToOneMapping .setForeignKeyFieldName("VERSION");

d.oneToOneMapping (oneToOneMapping );

I receive errors that this mapping is not OK.
Do you know why??
Many thanks in advance,
Adela
Hi,
Today I started reading HFS & JSP book. I achieved the first "Sharpen your pencil" exercises (page 19) and I would know if my answers are right. Do you know whre the answers are in the book?
On the http://www.wickedlysmart.com/HeadFirst/HeadFirstServlets/HeadFirstJavaServlets.html
is written: "there are no separate exercise PDFs because all answers to the exercises are printed in the book this time". But I can't found where there are.

Thank you,

Adela
Hello Valentin,

Many thanks. The article is very good.
Daca vorbiti romaneste scrieti-mi pe heidipopa@aol.com.

Regards,
Adela
Hi Valentin,

Thank you for your answer, but I am still not sure that will be a good decision to change to EJB in my company. We have a good server framework that do all the staffs like security, multithreading etc and we use TopLink for persistence. With soi it is also possible to have different type of clients. We have now a web client.
In this case, is really better to change to EJB ?

Regards,
Adela
Hello,

Suppose I have a client-server architecture with service oriented interfaces. In this case, the client can access the functionality that is exposed in the soi commands. Can somebody tell me if there are any advantages of EJB architecture in comparation with the soi architecture besides the threading and security?

Many thanks in advance
Adela
Hi Keerthy,
EJBException is a system exception, not application exception. For me answer A is not correct. In this case the container logs a system exception

Regards,
Heidi
Hi,
I need your help. I get the exam tomorrow morning and I want to be sure.
Can't anybody give me an answer?

Thank you,
Adela
Hi Amol,
Thany you for the answer. But what about answer A? I think also the container throws a system exception. I think you have right with answer D.

Regards,
Adela
Hi,
The question is:
Which of the following is performed by the container if a message-drive bean does not complete its transaction before the end of the onMessage() method?
Possible answers:
A.Log an aplication exception
B.Roll back the started transaction
C.Discard the instance of the bean
D.Throw an exception.

I have marked B and C but answer A should also be true. Is this correct?
I have understand that the container logs only system exception. Also in this case, the container cannot receive an application exception.

Regards,
Adela
Thank you very mach Keertky, now I understand.
Cheers,
Adela
Many thanks for your answer. Keerthi, when the database must be on the same JVM, that means you can have a client on another machine accessing a remote bean and this bean is on the same JVM with my entity bean (the bean is the client for my entity bean).The entity bean accesses the database and has a cmr field to another entity bean. I have right? My problem was that I didn't understand that you can have a client on another JVM.
Binoj, it is very interesting that WebLogic can this.

Regards,
Adela