Meaningless Drivel is fun!*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 32

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

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"

 
jQuery in Action, 2nd edition
 
subject: invoke a url from an EJB?
 
Similar Threads
EJB Lookup problem from same server instance
EJB deployment in jboss
A question on transactions
EJB from HTML
Iplanet and WL