Getting: "Usage of 'java.net.*' is not allowed in EJB."

0

Hello Scott,
Please see Sun EJB Spec at http://java.sun.com/products/ejb/docs.html
Chapter 24.1.2:
-


An enterprise bean must not attempt to listen on a socket, accept
connections on a socket, or
use a socket for multicast.
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. Allowing the instance to become a network
server would conflict with
the basic function of the enterprise bean-- to serve the EJB clients.
-



I admit disallowing the whole java.net package usage was oversimplification.
Will be fixed in #633,
thank you for report.

--
regards,
Alexey Kudravtsev.
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"

P.S Could you please post EJB related message into the
jetbrains.intellij.eap.j2ee group?



"Scott Curtis" <scurtis@smart421.com> wrote in message
news:afrni8$o3h$1@is.intellij.net...

Why?

>

Can anyone explain why this is the case please? I am not arguing because

it

may be the way things are but code that was fine in #629 is suddenly

showing

as erroneous in #632 which I guess is due to the better J2EE support. So

any

enlightenment will be greatly recieved.

>

thanks
- scott

>
>


0

Sorry about posting here. Don't know why I did that? Thanks for the info.


"Alexey Kudravtsev" <cdr@intellij.com> wrote in message
news:afrv29$5nj$1@is.intellij.net...

Hello Scott,
Please see Sun EJB Spec at http://java.sun.com/products/ejb/docs.html
Chapter 24.1.2:
--------
An enterprise bean must not attempt to listen on a socket, accept
connections on a socket, or
use a socket for multicast.
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. Allowing the instance to become a network
server would conflict with
the basic function of the enterprise bean-- to serve the EJB clients.
---------

>

I admit disallowing the whole java.net package usage was

oversimplification.

Will be fixed in #633,
thank you for report.

>

--
regards,
Alexey Kudravtsev.
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"

>

P.S Could you please post EJB related message into the
jetbrains.intellij.eap.j2ee group?

>
>
>

"Scott Curtis" <scurtis@smart421.com> wrote in message
news:afrni8$o3h$1@is.intellij.net...

Why?

>

Can anyone explain why this is the case please? I am not arguing because

it

may be the way things are but code that was fine in #629 is suddenly

showing

as erroneous in #632 which I guess is due to the better J2EE support. So

any

enlightenment will be greatly recieved.

>

thanks
- scott

>
>

>
>


0

请先登录再写评论。