Rajitha Gunawardhane

Ranch Hand
+ Follow
since Dec 11, 2007
Merit badge: grant badges
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Rajitha Gunawardhane

Vincent Vauban wrote:The step 1 is recommended but not mandatory.
I recommend you do it, now that the course is free.



I just passed the exam. How long will it take to get the certificate and badge?
Thank you Vincent, your tests helped me to find the gaps.
Thank you very much.. it is getting clear now. I found on internet that now Spring Academy Pro is now free for work emails.
The exam registration page still asks to complete the Academy Pro course. Please see the attached image

3 months ago
Hi I have a question related to registering for the exam and buying a voucher.
1. Is it mandatory to do the spring academy free course?
2. I saw a voucher mentioned below in the text. Can I use that voucher for the spring certification exam?
"This Academic VCP exam voucher is valid for any of the VMware Certified Technical Associate Level exams, the 2V0-21.20PSE, 2V0-21.23PSE, 2V0-33.22PSE, and 2V0-72.22PSE exams.  "
3 months ago
Thank you Frits and Jhonson,

What i also though was CMT with REQUIRED.

After the detail explanation about the  question, i am clear about the answer.


Thank you all.

Frits Walraven wrote:

Yes! It is really helpful. That is what i am referring . And i have enthuware mock as well .


 

So as it need both methods to have same client's transaction, It cant be in BMT, because if it is BMT then client's transaction is suspending.
Am i correct?  


Yes!



In that case for following question why it should be BMT?

You are developing a session bean having two methods m1 and m2 that must have the following functionality - 1. Both the methods will be called by the client in the same transaction scope. 2. You need to dynamically set the transaction timeout for the transaction in bean method m1 based on certain parameters.
(Source: Enthuware mock)

Frits Walraven wrote: Yes!



Thank you!.

Frits Walraven wrote:

Rajitha Gunawardhane wrote:I am sorry. It is my mistake. But not a small one. I will follow it.  


No problem.

Are you by any chance reading my notes? You can find them here: OCEEJBD-Links

You might want to check chapter 5.4.3 and 5.4.4. What do you think is the answer after reading those paragraphs?



Yes! It is really helpful. That is what i am referring . And i have enthuware mock as well .

As in 5.4.3 section
"A client transaction is always suspended when it calls a Bean-managed EJB (even if the client is another Bean Managed EJB)."

So as it need both methods to have same client's transaction, It cant be in BMT, because if it is BMT then client's transaction is suspending.

Am i correct?

Frits Walraven wrote:Please Quote Your Sources.



Hi Frits,

I am sorry. It is my mistake. But not a small one. I will follow it.
Thank you for notifying me.

It from your product. Enthuware.
Hi All,

I need to if BMT are propagating to the clients or not. I assume it is not every time when UserTransaction.beging() it is holding the current transaction(if it is there) and starting a new one. Please correct me if i am wrong.

If what i understood is correct, what is the correct answer for following question.

You are developing a session bean having two methods m1 and m2 that must have the following functionality "Both the methods will be called by the client in the same transaction scope".

Is it BMT or CMT?

Thank you.

Rajitha Gunawardhane wrote:Hi All,

It has mentioned that usage of static fields are restricted in EJB. But when i created a non final static filed in Stateful ejb, it worked without any error.
So does that means container not giving any error with these kind of things? It is up to the developer to use it properly?

I know the reason for this is that in a distributed environment it is difficult to handle static fields if there are multiple JVMs.

Thank you.



I am wrong it says "must not use". Then fine.
Hi All,

It has mentioned that usage of static fields are restricted in EJB. But when i created a non final static filed in Stateful ejb, it worked without any error.
So does that means container not giving any error with these kind of things? It is up to the developer to use it properly?

I know the reason for this is that in a distributed environment it is difficult to handle static fields if there are multiple JVMs.

Thank you.

Frits Walraven wrote:No, you won't find any EJB 2.x questions.



Thank you!!
Hi All,

In EJB 3.1 spec there are parts related to EJB 2.1 as well. I wanted to know in the exam is it considering that part as well?

Of course knowing that part helpful when working with different applications.

Thank you.
Hi All,

I want to know is it possible to change JNDI name for a ejb as follow,

if EJB in abc-common.jar jndi name will be as follow

       java:global/abc-ear/abc-common-ejb/xxx
java:app/abc-common-ejb/xxx
java:module/xxx
java:global/abc-ear/abc-common-ejb/xxx
java:app/abc-common-ejb/xxx
java:module/xxx

if EJBs in abc-main.jar then name will be

       java:global/abc-ear/abc-main-ejb/xxx
java:app/abc-main-ejb/xxx
java:module/xxx
java:global/abc-ear/abc-main-ejb/xxx
java:app/abc-main-ejb/xxx
java:module/xxx

Question: I wanted to know, is it possible to change jndi name of abc-common.jar to look like abc-main.jar