Rajitha Gunawardhane

Ranch Hand
+ Follow
since Dec 11, 2007
Rajitha likes ...
Java
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
5
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rajitha Gunawardhane

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


Mikalai Zaikin wrote:

Rajitha Gunawardhane wrote:

Mikalai Zaikin wrote:

Rajitha Gunawardhane wrote:

Mikalai Zaikin wrote:I would say 1st edition is better for certification



I checked the Table of Content of 1st and 2nd editions. There are considerable differences. I just wanted to double check and confirmed with you.



You should also check dates of first, second edition and WSD6 exam release, so it will make it clear.



Thank you for the quick response. 1st is on 2009 and 2nd on 2013. I think exam release around 2011 (Correct me if i am wrong) so 2009 is the one



SCDJWS 6 beta started in July 2010 - by that time production SCDJWS 6 exam objectives were finalized.



Thank you again!!! appreciate a lot.

Mikalai Zaikin wrote:

Rajitha Gunawardhane wrote:

Mikalai Zaikin wrote:I would say 1st edition is better for certification



I checked the Table of Content of 1st and 2nd editions. There are considerable differences. I just wanted to double check and confirmed with you.



You should also check dates of first, second edition and WSD6 exam release, so it will make it clear.



Thank you for the quick response. 1st is on 2009 and 2nd on 2013. I think exam release around 2011 (Correct me if i am wrong) so 2009 is the one

Mikalai Zaikin wrote:I would say 1st edition is better for certification



I checked the Table of Content of 1st and 2nd editions. There are considerable differences. I just wanted to double check and confirmed with you.
Hi Nancy Antony,

Can you please let me know the materials you used?