users
[Top] [All Lists]

Re: [cinjug-users] EJBObject and EJBLocalIObject interfaces

To: "Keshav Kode" <keshav.kode@xxxxxxxxx>
Subject: Re: [cinjug-users] EJBObject and EJBLocalIObject interfaces
From: "James Carman" <james@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 13 Dec 2006 06:32:03 -0500
Cc: esumerfd@xxxxxxxxxxxxxx, "users@xxxxxxxxxx" <users@xxxxxxxxxx>
Delivered-to: mailing list users@cinjug.org
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=RS1L9dSNlHUMxZmFpIHTf1YTBSnKyGNp+wOjDfDQqzziJhM+yuGz0ZNm2s3XcBXuzBbqetv543RLFvOAeuKpEsjfLKIBj55/AAzfZA4uD1v3UwQj9KIygU+O/UCV9G1gCPxn3UolYHeztGmagyVKCcNktw1i0pS9UDBX+TvD0bY=
In-reply-to: <dff556200612122251hb012380sb1212f67677dd352@mail.gmail.com>
Mailing-list: contact users-help@cinjug.org; run by ezmlm
References: <6a216ba20612111527m4a8d8806j1531d3926cd2b857@mail.gmail.com> <dff556200612122251hb012380sb1212f67677dd352@mail.gmail.com>
Sender: jwcarman@xxxxxxxxx
Or, as one of the comments points out, you could avoid local
interfaces altogether and just access it via the remote interface.
The app server will take care of optimizing the call if it's really a
local call.


On 12/13/06, Keshav Kode <keshav.kode@xxxxxxxxx> wrote:
As I see it you have 3 potential options:

1) use something like xdoclet to generate interfaces
2) move to EJB3
3) use 'Business Interface' pattern
(http://www.theserverside.com/patterns/thread.tss?thread_id=12363)

Hope this helps.
Keshav Kode




On 12/11/06, Edward Sumerfield <esumerfd@xxxxxxxxxxxxxx> wrote: > Anyone have any fancy ways of removing the duplication between these > two interfaces? One needs to throw the RemoteException and the local > does not. Makes sence in theory but it means duping every method in > every bean. > > I could go code generation, copy from EJBObject to EJBLocalObject and > filter out the "throws RemoteException" string. Should be a simple ant > task but someone must have solved this inefficiency already? > > -- > Ed > > --------- > You may unsubscribe from this mailing list > by sending a blank email addressed to: > users-unsubscribe@xxxxxxxxxx > > -- > Find additional help by sending a blank email > addressed to: > users-help@xxxxxxxxxx > >



--
Thank you,
Keshav Kode
Keshav.Kode@xxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>