You should create a non EJB Java class that provides this service, and your
beans can call it. Note that this data source is not transactional, so don't
expect updates throught the socket to be synchronized in a transactional
sense with database writes.

-Chris.

> -----Original Message-----
> From: yu_robin [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, July 07, 2000 2:05 AM
> To:   [EMAIL PROTECTED]
> Subject:      Socket in Entity Bean
>
> Hi everyone,
>   I have some data that must be fetched from a remote host through socket,
> and some others from a db.  I want to hide the difference between these
> two
> ways of getting data upon the entity bean layer�� then session beans can
> get
> data through entity beans uniformly. Can I write socket in my bean managed
> entity beans?
> pls help me.
> thanks.
>
> robin
> ++++++++++++++++++++++++++++
> Shanghai Huateng Software Systems Co., Ltd.
> 418 Gui Lin Road
> Shanghai, P.R.China 200233
> Tel     : +86-21-6451-3533-11
> Fax     : +86-21-6472-8625
> E-mail  : [EMAIL PROTECTED]
> Web     : http://www.huateng.com
>           http://www.chinapay.com
>
> ==========================================================================
> =
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to