users@glassfish.java.net

Re: exception handling in EJB3 Stateless and JAX -WS. guide tutorial example...

From: Mohammad Shamsi <m.h.shams_at_gmail.com>
Date: Mon, 26 May 2008 10:52:06 +0330

Hi Markus,

In Java EE 5 we can one code for both Session Bean and Web Service.

@WebService
@Stateless
public class FooImpl implements Foo {
      public void dofoo() {
      }
}

clients can call dofoo method, either via RMI (as a Session Bean) or
SOAP/HTTP (as a web method)

for web service clients i can throw just a SOAPFaultException and for RMI
clients i can throw any exception.

i have to know that how to handle and throw exception from this method that
both clients can use it.



On Mon, May 26, 2008 at 9:57 AM, Markus Karg <karg_at_quipsy.de> wrote:

> What exactly do you want to know?
>
>
>
> Regards
>
> Markus
>
>
>
> *From:* Mohammad Shamsi [mailto:m.h.shams_at_gmail.com]
> *Sent:* Samstag, 24. Mai 2008 12:33
> *To:* users_at_glassfish.dev.java.net
> *Subject:* exception handling in EJB3 Stateless and JAX -WS. guide
> tutorial example...
>
>
>
> hi all,
>
> im looking for guides and examples for Exception Handling in EJB3
> Stateless Session Bean and JAX WS
>
> any resources ? idea ?
>
>
>
>
> --
> sincerely yours
> M. H. Shamsi
>



-- 
sincerely yours
M. H. Shamsi