which code can be inserted into Lines 4-6 below to define the bean with the ejb name of BarBean?

A developer wants to write a stateful session bean using the following interface as local business
interface:
1. package acme;
2. public interface Bar{
3. public void barQ;4-i
Assuming there is NOT an ejb-jar.xml file, which code can be inserted into Lines 4-6 below to
define the bean with the ejb name of BarBean?
1. package acme;
2. import javax. ejb.*;
3. import Java, io.*; 4.
5.
6.
7.}

A developer wants to write a stateful session bean using the following interface as local business
interface:
1. package acme;
2. public interface Bar{
3. public void barQ;4-i
Assuming there is NOT an ejb-jar.xml file, which code can be inserted into Lines 4-6 below to
define the bean with the ejb name of BarBean?
1. package acme;
2. import javax. ejb.*;
3. import Java, io.*; 4.
5.
6.
7.}

A.
©Stateful
public class BarEJB implementsBar{
public void bar0 {}

B.
@Stateful(name=”Bar”)
public class BarBean implements Bar{
public void barQ {}

C.
©Stateful
public classBarBeanimplements Serializable, Bar{
public void bar0{}

D.
@Stateful(name=”Bar”)

public class BarBean implementsBar{
public void barQ throwsJava.rmi.RemoteException{}



Leave a Reply 0

Your email address will not be published. Required fields are marked *