About Question enthuware.oce-ejbd.v6.2.422 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
kezman9
Posts: 26
Joined: Fri Jul 06, 2012 1:08 am
Contact:

About Question enthuware.oce-ejbd.v6.2.422 :

Post by kezman9 »

The correct answer is not precise in my opinion:

Code: Select all

@Stateless
@TransactionManagement(BEAN)
public class MySessionBean implements MySession { 
...
}
For this snippet to work, it needs to statically import TransactionManagementType:

Code: Select all

import static javax.ejb.TransactionManagementType.*;
but it is not mentioned in question. The second option is to explicitly specify transaction type:

Code: Select all

@Stateless
@TransactionManagement(TransactionManagementType.BEAN)
public class MySessionBean implements MySession { 
...
}

Thanks,
Jarek

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.oce-ejbd.v6.2.422 :

Post by admin »

Added.

thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests