UrlConnection from EJB

Discussions

EJB programming & troubleshooting: UrlConnection from EJB

  1. UrlConnection from EJB (4 messages)

    Hi there,

    i would like to confirm something there...can i open an URLConnection to another site from my stateless session bean class, potentially to a registered services site to avail their services. I have to wrap the URLConnection with an HttpConnection class, which i can do. My question is, if you anyone knows of any issues with opening a URLConnection from within an EJB container.

    Thanks so much in advance for your help

    Shital

    Threaded Messages (4)

  2. UrlConnection from EJB[ Go to top ]

    This works fine for me.

    I am using a Message Driven Bean which posts data to a Servlet. I know you arent meant to use threading in an EJB, but from what I know URLConnections are acceptable. Would be interested to know it if anyone would say otherwise.
  3. UrlConnection from EJB[ Go to top ]

    I have done such a thing but find no reason to belive why this would be a problem...
  4. UrlConnection from EJB[ Go to top ]

    Thank you both for the reply. that helps..
    Shital
  5. UrlConnection from EJB[ Go to top ]

    sorry for the typo - my message should have read "I have NOT done such a thing but find no reason to belive why this would be a problem... "

    hope this doesnt change any thing for u...