• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Local, Remote, Webservice in Single bean

 
Kathiresan Chinna
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have the following interfaces and implementation classs.

@Stateless(name = "WorkOrderDao", mappedName = "WorkOrderDao")
public class WorkorderDaoImpl implements WorkorderDaoLocal, WorkorderDaoWS, WorkorderDaoRemote
{
..
..
}


@Local
public interface WorkorderDaoLocal extends WorkorderDao
{ }

@Remote
public interface WorkorderDaoRemote extends WorkorderDao
{ }

@WebService (name = "WorkorderDaoService", serviceName = "WorkorderDaoService", targetNamespace = "http://jaxws.ck.ws.com", portName = "WorkorderDaoPort")
public interface WorkorderDaoWS extends WorkorderDao
{ }


public interface WorkorderDao {
..
..
}


Eclipse, Weblogic 10
------------
This is deployed without problem, but there is no Web Service created.

Is this correct implementation ?
Any Idea ?

Thanks in advance
Kathiresan


 
Duran Harris
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The container will think that this bean is remote,local and a webservice endpoint....This won't work...you need to choose only one of the 3 types.

 
Kathiresan Chinna
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK Thank you

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic