users@glassfish.java.net

Re: FTP ResourceAdapter or Connector

From: Binod <Binod.Pg_at_Sun.COM>
Date: Mon, 25 Feb 2008 14:16:35 +0530

If you are writing a resource adapter, you can use that even from
EJB timer, since resource adapters are bi-directional.

- Binod.

On 23-Feb-08, at 3:02 PM, glassfish_at_javadesktop.org wrote:

> The EJB specification says the following:
>
> * An enterprise bean must not attempt to listen on a socket, accept
> connections on a socket, or use a socket for multicast.
> [i]The EJB architecture allows an enterprise bean instance to be a
> network socket client, but it does not allow it to be a network
> server.[/i]
>
> For this you should use an inbound J2EE CA connector.
>
> So if you use an EJB Timer to connect to an FTP server at some
> interval to check for (and download) new files and close the
> connection immediately when you're done, you're not breaking any
> restrictions.
> [Message sent by forum member 'dkoper' (dkoper)]
>
> http://forums.java.net/jive/thread.jspa?messageID=260559
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>