This week's book giveaway is in the Open Source Projects forum.
We're giving away four copies of Eclipse Collections Categorically: Level up your programming game and have Donald Raab on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

restfull service use ejb web service

 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't sweat petty things, or pet sweaty things. But cuddle this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic