Hey I looked through the Middlegen buglist and seems there are some bugs
related to this:

http://sourceforge.net/tracker/index.php?func=detail&aid=596249&group_id=36044&atid=415990
http://sourceforge.net/tracker/index.php?func=detail&aid=615463&group_id=36044&atid=415990

I see from a comment by Aslak that CMRs do not apply to remote beans at
all. So I guess the fix to this would be something like this (I might be
wrong here):

local - Create methods with CMR fields linking to other local interfaces.
remote - Create methods with just the fields (like flightId instead of
flightLocal)

Anyone has time to look into this? Involvement from more users would be
really good I think, as the developers are really busy for the
moment. Submitted patches/solutions are so much quicker to add than
sitting down and figuring things out..

.eivind

On Wed, 13 Nov 2002, Russell Black wrote:

> First, I want to say God Bless Middlegen!, and kudos to Aslak and the other 
>developers.  This will be an enormous time saver if I can get it to do what I need.
>  
> When I configure middlegen to generate remote interfaces (viewtype="remote" in the 
>cmp20 subtask), it generates create methods which take local interfaces as parameters.
>  
> For example:  a Choice belongs to a Scale, and the middlegen-erated create method in 
>ChoiceBean looks like this:
>  
>    public foo.interfaces.ChoicePK ejbCreate( int number, java.lang.String text, 
>boolean na, icoachplus.interfaces.ScaleLocal scale ) 
>  
> Resulting in an xdoclet-generated *remote* interface that looks like this:  
>  
> public foo.interfaces.Choice create(int number , java.lang.String text , boolean na 
>, icoachplus.interfaces.ScaleLocal scale)
> 
> This causes two issues.  First, since it didn't generate any local interfaces, it 
>won't compile.  I can make it compile by using viewtype="both", but the real issue in 
>my mind is:  what good is a create method on a remote interface that takes local 
>interfaces as parameters?  A remote client of course does not have access to local 
>interfaces.
>  
> I love the CMR feature introduced in EJB 2.0, so I want to use local interfaces 
>where I can, but I'd really like to be able to create objects with the remote 
>interfaces where running in the same JVM is not an option.
>  
> Thanks,
>  
> Russell
>  
> 
>N޵隊X'u(uܨnǫy˫܂'$~N)i^I"ƺ'^jwZ*.
ZrHr)y>i((mifezǫx%fezǫ+-.ǟallqzlX)ߣu^



-------------------------------------------------------
This sf.net email is sponsored by: Are you worried about
your web server security? Click here for a FREE Thawte
Apache SSL Guide and answer your Apache SSL security
needs: http://www.gothawte.com/rd523.html
_______________________________________________
middlegen-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/middlegen-user

Reply via email to