wood burning stoves*
The moose likes EJB and other Java EE Technologies and the fly likes  invoke a url from an EJB? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark " invoke a url from an EJB?" Watch " invoke a url from an EJB?" New topic
Author

invoke a url from an EJB?

Jhonnathan Emilio Cardona Saineda
Ranch Hand

Joined: Jan 24, 2012
Posts: 38

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???


Sorry for my English, I'll improve
Nicolo Villarete
Greenhorn

Joined: Mar 20, 2012
Posts: 7

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"

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: invoke a url from an EJB?