Hi,
Yes most app servers will let you do things that are not portable, such
as access File APIs. Products always want to be customer friendly, but
you should be aware that your apps could have portability problems if
you use things not in compliance with the spec.
hth,
Sean
Katz Guy wrote:
> i actually talked to someone who did encounter this but i cant
> remember the vendor (probably not one of the main vendors). personally
> i encountered this when dealing with the Sun's J2EE RI (but thats
> obvious why).
> in bith cases the solution was to 'adjust' the server security policy
> to remove the file IO restriction .
>
> -----Original Message-----
> *From:* Rangarajan , Suresh ( Cognizant )
> [mailto:rsuresh4@(protected)]
> *Sent:* Monday, September 29, 2003 2:32 PM
> *To:* J2EEPATTERNS-INTEREST@(protected)
> *Subject:* Re: How does ejbs do logging?
>
> Yep. Thatz true.
> I can not think of a container that actually prevents File I/O
> from EJBs.
> Is there any?
>
>
> -----Original Message-----
> *From:* Katz Guy [mailto:Guy_Katz@(protected)]
> *Sent:* Monday, September 29, 2003 4:56 PM
> *To:* J2EEPATTERNS-INTEREST@(protected)
> *Subject:* Re: How does ejbs do logging?
>
> Hi;
> Actually, the logging server option is the only 'spec
> complient' way of dealing with logging from EJBs that I know.
> Due to the fact that you are not supposed to do file IO from EJBs.
>
> Its really weird that sun did not provide a standard way of
> logging for EJBs. Having a different server doing the pulling
> from JMS destinations/reading from sockets etc is usually out
> of the question for most apps and that's why most vendors
> allows logging to files by default.
>
> Any thoughts?
>
> ====================================================================
> Companion Site: http://www.corej2eepatterns.com J2EE BluePrints:
> http://java.sun.com/blueprints/corej2eepatterns List Archive:
> http://archives.java.sun.com/archives/j2eepatterns-interest.html
> Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to
> listserv@(protected)
>
> ====================================================================
> Companion Site: http://www.corej2eepatterns.com J2EE BluePrints:
> http://java.sun.com/blueprints/corej2eepatterns List Archive:
> http://archives.java.sun.com/archives/j2eepatterns-interest.html
> Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to
> listserv@(protected)
====================================================================
Companion Site: http://www.corej2eepatterns.com
J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns
List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html
Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)