Skip to content

Additional EJB example suggestion #56

@glassfishrobot

Description

@glassfishrobot

Please could you add an example which shows two Stateless session beans which both implement the same remote interface without annotating the interface as remote.

In other words:

public interface RemoteI
{
}

public interface LocalI
{
}

@Stateless(name = "BeanOne")
@Local(LocalI.class)
@Remote(RemoteI.class)
public class BeanOne implements LocalI, RemoteI
{
}

@Stateless(name = "BeanTwo")
@Local(LocalI.class)
@Remote(RemoteI.class)
public class BeanTwo implements LocalI, RemoteI
{
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions