I have the following code that I'm trying to deploy as an EJB to WebLogic 12c, but I'm getting an error:
"Error deploying the EJB GeopoliticalServiceBean(Application: campaigner-ejb, EJBComponent: campaigner-service.jar), the JNDI name java:global/campaigner-ejb/campaigner-service/GeopoliticalServiceBean!com.dr_dee_sw.campaigner.service.GeopoliticalServiceLocal is already in use. You must set a different JNDI name in the weblogic-ejb-jar.xml deployment descriptor or corresponding annotation for this EJB before it can be deployed."
public interface GeopoliticalService
{
...
}
@Local
public interface GeopoliticalServiceLocal extends GeopoliticalService
{
}
@Remote
public interface GeopoliticalServiceRemote extends GeopoliticalService
{
}
@TransactionManagement(value = TransactionManagementType.CONTAINER)
@TransactionAttribute(value = TransactionAttributeType.REQUIRED)
@Stateless
public class GeopoliticalServiceBean implements GeopoliticalServiceLocal,GeopoliticalServiceRemote
{
...
}
This is my first app using all annotations, but it still seems fairly straight-forward. What am I missing?
Aucun commentaire:
Enregistrer un commentaire