This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

invoke a url from an EJB?

 
Jhonnathan Emilio Cardona Saineda
Ranch Hand
Posts: 38
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How I can invoke a url from an EJB or specifically from a MDB?

and how I can pass 2 parameters to the url to that the receive a Servlet???

 
Nicolo Villarete
Greenhorn
Posts: 7
Eclipse IDE Java Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think it's possible because Message driven beans are only meant to receive messages from queue/topic also I would not suggest.

for 2 parameter question you can use query strings e.g.
"http://localhost/MyApp/folder/servletURL.htm?firstVar=I&secVar=ate&thrdvar=your+dog"

in your servlet doGet()

System.out.prinln(request.getParameter("thrdvar"));

should output "your dog"

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic