Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

restfull service use ejb web service  RSS feed

 
Dora Di Donato
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,
it is possible that this restfull service method transfer use the EJB private TomTomGtw gtw that expose the same services but soap type?
It means that i can invoke it by restfull method o by soap services?

@EJB(mappedName="java:global/tom-tom-gtw/tom-tom-gtw.jar/TomTomGtwBean!com.accenture.ams.tom.tom.gtw.interfaces.TomTomGtw")
private TomTomGtw gtw;

@POST
@Path("/from-device/{MUID_A}/to-device/{MUID_B}")
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
public TransferResponse transfer(@PathParam("MUID_A") String muidA, @PathParam("MUID_B") String muidB) {
log.debug("TOM TOM GTW Transfer RESTful Service invoked...");
log.debug("Request parameters are: MUID_A[{}] MUID_B[{}]", muidA, muidB);

TransferRequest request = new TransferRequest();

request.setMuidA(muidA);
request.setMuidB(muidB);

return gtw.transfer(request);
}

thanks
Di Donato
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!