You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "David Blevins (JIRA)" <ji...@apache.org> on 2006/11/22 22:54:02 UTC

[jira] Created: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Example: Using @EJB to refer to other EJBs
------------------------------------------

                 Key: OPENEJB-357
                 URL: http://issues.apache.org/jira/browse/OPENEJB-357
             Project: OpenEJB
          Issue Type: Sub-task
            Reporter: David Blevins




-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Re: [jira] Commented: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by David Blevins <da...@visi.com>.
On Jan 11, 2007, at 11:34 PM, Filippo Diotalevi wrote:

> On 1/12/07, David Blevins <da...@visi.com> wrote:
>>
>> Here's the snippet macro's source code if someone happened to have
>> time and/or ideas on how to make a version that did the same thing
>> without (or with less obnoxious) tags in source code.
>>
>>    http://svn.atlassian.com/svn/public/contrib/confluence/snippet-
>> plugin/trunk/
>
> I'm not an expert in Confluence plugins, but I can try to give it a
> look and see if it's easy to modify for our needs.

I'm not sure what kind of tags might be better, maybe something  
simply smaller might be less obnoxious.  Or maybe something might  
more sneakily look like an actual comment.

Maybe we could just configure the snippet delimiter at the top of the  
class and then strategically use it in the document.  Could even be  
as short as a single character like '^' or '~'.  No real need for a  
text prefix with BEGIN and END as you could just parse on/off when  
you see the delimiter and then reference the snippets by number.

Don't know what the snippet macro uses for parsing the files, but  
with this library parsing with an arbitrary delimiter would be easy  
as pie.

http://svn.codehaus.org/swizzle/trunk/swizzle-stream/src/main/java/ 
org/codehaus/swizzle/stream/StreamLexer.java

You just ...

String delimiter = ...;
StreamLexer lexer = new StreamLexer(delimiter, delimiter);
String firstSnippet = lexer.nextToken();

Or with the begin/end style...

String beginDelimiter = ...;
String endDelimiter = ...;

StreamLexer lexer = new StreamLexer(beginDelimiter, endDelimiter);
String firstSnippet = lexer.nextToken();


-David




Re: [jira] Commented: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by Filippo Diotalevi <fi...@gmail.com>.
On 1/12/07, David Blevins <da...@visi.com> wrote:
>
> Here's the snippet macro's source code if someone happened to have
> time and/or ideas on how to make a version that did the same thing
> without (or with less obnoxious) tags in source code.
>
>    http://svn.atlassian.com/svn/public/contrib/confluence/snippet-
> plugin/trunk/

I'm not an expert in Confluence plugins, but I can try to give it a
look and see if it's easy to modify for our needs.

--
filippo

Re: [jira] Commented: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by David Blevins <da...@visi.com>.
On Jan 11, 2007, at 3:18 PM, Jacek Laskowski wrote:

> On 1/11/07, Jeremy Whitlock <jc...@gmail.com> wrote:
>> Hi All,
>>     So before I just jump in and commit or not commit, can we come  
>> to an
>> agreement.  Do we want to commit these changes, if approved, or not?
>
> Dave + Dain are in favour of it while I'm -1. It's 2:1 for it. I'm  
> sold!

To be clear, I hate the snippet comments in the source... I just  
can't think of any better ideas.

Here's the snippet macro's source code if someone happened to have  
time and/or ideas on how to make a version that did the same thing  
without (or with less obnoxious) tags in source code.

   http://svn.atlassian.com/svn/public/contrib/confluence/snippet- 
plugin/trunk/

-David




Re: [jira] Commented: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On 1/11/07, Jeremy Whitlock <jc...@gmail.com> wrote:
> Hi All,
>     So before I just jump in and commit or not commit, can we come to an
> agreement.  Do we want to commit these changes, if approved, or not?

Dave + Dain are in favour of it while I'm -1. It's 2:1 for it. I'm sold!

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

Re: [jira] Commented: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by David Blevins <da...@visi.com>.
On Jan 11, 2007, at 2:05 PM, Jeremy Whitlock wrote:

> Hi All,
>    So before I just jump in and commit or not commit, can we come  
> to an
> agreement.  Do we want to commit these changes, if approved, or not?

I'm happy to back whatever solution Jacek likes.


-David


> Take care,
>
> Jeremy
>
> On 1/11/07, Dain Sundstrom <da...@iq80.com> wrote:
>>
>> On Jan 11, 2007, at 1:54 PM, David Blevins wrote:
>>
>> >
>> > On Jan 11, 2007, at 12:59 PM, Jacek Laskowski wrote:
>> >
>> >> On 1/11/07, Filippo Diotalevi <fi...@gmail.com> wrote:
>> >>
>> >>> Sorry about that. I followed the instructions for writing docs
>> >>> David gave here:
>> >>> http://www.nabble.com/Documenting-examples-%28was%3A-Re%3A-EJB3-
>> >>> Embedding-tutorial-avialable%29-p8084926.html
>> >>>
>> >>> I understand your point, having a less intrusive macro would be
>> >>> great.
>> >>> However, it's an example, and its goal is to be a demonstration
>> >>> of how
>> >>> ejb 3 work
>> >>
>> >> Well, let's pretend Dave was wrong that time and it was not a good
>> >> advice ;-)
>> >
>> > David never claimed to be right ;)
>> >
>> > "Any refinements/improvements welcome.  If you end up tacking
>> > documenting an example, feel free to take a fresh (i.e. totally
>> > different) approach.  Whatever get the job done :)  Try and drop  
>> some
>> > notes on the list if you do."
>> >
>> > I'm not a fan of the snippet tags in the code either, but my desire
>> > to see something on the website beat my dislike of the snippet  
>> tags.
>>
>> I like the snippet tags since they remind me that I should make sure
>> the wiki text matches the code :)
>>
>> -dain
>>


Re: [jira] Commented: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by Jeremy Whitlock <jc...@gmail.com>.
Hi All,
    So before I just jump in and commit or not commit, can we come to an
agreement.  Do we want to commit these changes, if approved, or not?

Take care,

Jeremy

On 1/11/07, Dain Sundstrom <da...@iq80.com> wrote:
>
> On Jan 11, 2007, at 1:54 PM, David Blevins wrote:
>
> >
> > On Jan 11, 2007, at 12:59 PM, Jacek Laskowski wrote:
> >
> >> On 1/11/07, Filippo Diotalevi <fi...@gmail.com> wrote:
> >>
> >>> Sorry about that. I followed the instructions for writing docs
> >>> David gave here:
> >>> http://www.nabble.com/Documenting-examples-%28was%3A-Re%3A-EJB3-
> >>> Embedding-tutorial-avialable%29-p8084926.html
> >>>
> >>> I understand your point, having a less intrusive macro would be
> >>> great.
> >>> However, it's an example, and its goal is to be a demonstration
> >>> of how
> >>> ejb 3 work
> >>
> >> Well, let's pretend Dave was wrong that time and it was not a good
> >> advice ;-)
> >
> > David never claimed to be right ;)
> >
> > "Any refinements/improvements welcome.  If you end up tacking
> > documenting an example, feel free to take a fresh (i.e. totally
> > different) approach.  Whatever get the job done :)  Try and drop some
> > notes on the list if you do."
> >
> > I'm not a fan of the snippet tags in the code either, but my desire
> > to see something on the website beat my dislike of the snippet tags.
>
> I like the snippet tags since they remind me that I should make sure
> the wiki text matches the code :)
>
> -dain
>

Re: [jira] Commented: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by Dain Sundstrom <da...@iq80.com>.
On Jan 11, 2007, at 1:54 PM, David Blevins wrote:

>
> On Jan 11, 2007, at 12:59 PM, Jacek Laskowski wrote:
>
>> On 1/11/07, Filippo Diotalevi <fi...@gmail.com> wrote:
>>
>>> Sorry about that. I followed the instructions for writing docs  
>>> David gave here:
>>> http://www.nabble.com/Documenting-examples-%28was%3A-Re%3A-EJB3- 
>>> Embedding-tutorial-avialable%29-p8084926.html
>>>
>>> I understand your point, having a less intrusive macro would be  
>>> great.
>>> However, it's an example, and its goal is to be a demonstration  
>>> of how
>>> ejb 3 work
>>
>> Well, let's pretend Dave was wrong that time and it was not a good  
>> advice ;-)
>
> David never claimed to be right ;)
>
> "Any refinements/improvements welcome.  If you end up tacking
> documenting an example, feel free to take a fresh (i.e. totally
> different) approach.  Whatever get the job done :)  Try and drop some
> notes on the list if you do."
>
> I'm not a fan of the snippet tags in the code either, but my desire  
> to see something on the website beat my dislike of the snippet tags.

I like the snippet tags since they remind me that I should make sure  
the wiki text matches the code :)

-dain

Re: [jira] Commented: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by David Blevins <da...@visi.com>.
On Jan 11, 2007, at 12:59 PM, Jacek Laskowski wrote:

> On 1/11/07, Filippo Diotalevi <fi...@gmail.com> wrote:
>
>> Sorry about that. I followed the instructions for writing docs  
>> David gave here:
>> http://www.nabble.com/Documenting-examples-%28was%3A-Re%3A-EJB3- 
>> Embedding-tutorial-avialable%29-p8084926.html
>>
>> I understand your point, having a less intrusive macro would be  
>> great.
>> However, it's an example, and its goal is to be a demonstration of  
>> how
>> ejb 3 work
>
> Well, let's pretend Dave was wrong that time and it was not a good  
> advice ;-)

David never claimed to be right ;)

"Any refinements/improvements welcome.  If you end up tacking
documenting an example, feel free to take a fresh (i.e. totally
different) approach.  Whatever get the job done :)  Try and drop some
notes on the list if you do."

I'm not a fan of the snippet tags in the code either, but my desire  
to see something on the website beat my dislike of the snippet tags.

The only options I see are to use the snippet macro or to just copy/ 
paste the code chunks into the wiki (and of course update the wiki  
when/if the code changes).

I'm fine with either way... whatever it takes to get the job done  
(i.e. getting these examples documented and on the website)

-David


Re: [jira] Commented: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On 1/11/07, Filippo Diotalevi <fi...@gmail.com> wrote:

> Sorry about that. I followed the instructions for writing docs David gave here:
> http://www.nabble.com/Documenting-examples-%28was%3A-Re%3A-EJB3-Embedding-tutorial-avialable%29-p8084926.html
>
> I understand your point, having a less intrusive macro would be great.
> However, it's an example, and its goal is to be a demonstration of how
> ejb 3 work

Well, let's pretend Dave was wrong that time and it was not a good advice ;-)

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

Re: [jira] Commented: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by Filippo Diotalevi <fi...@gmail.com>.
> On 1/11/07, Jacek Laskowski (JIRA) <ji...@apache.org> wrote:
> > https://issues.apache.org/jira/browse/OPENEJB-357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463979]
> >
> > Jacek Laskowski commented on OPENEJB-357:
> > -----------------------------------------
> > I'm against adding any semi-annotations to the code. It's not the code
> > that should be changed to be shown in Wiki, but the macro itself should.
> > These semi-annotations don't add any value to the code. We need to come up
> > with another way to document the code than add // END snippet:.
> > -1

Sorry about that. I followed the instructions for writing docs David gave here:
http://www.nabble.com/Documenting-examples-%28was%3A-Re%3A-EJB3-Embedding-tutorial-avialable%29-p8084926.html

I understand your point, having a less intrusive macro would be great.
However, it's an example, and its goal is to be a demonstration of how
ejb 3 work.

--
  Filippo

Re: [jira] Commented: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by Jeremy Whitlock <jc...@gmail.com>.
Jacek,
    Good point.  I've not looked at this to vote but I will later this
evening.

Take care,

Jeremy

On 1/11/07, Jacek Laskowski (JIRA) <ji...@apache.org> wrote:
>
>
>     [
> https://issues.apache.org/jira/browse/OPENEJB-357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463979]
>
> Jacek Laskowski commented on OPENEJB-357:
> -----------------------------------------
>
> I'm against adding any semi-annotations to the code. It's not the code
> that should be changed to be shown in Wiki, but the macro itself should.
> These semi-annotations don't add any value to the code. We need to come up
> with another way to document the code than add // END snippet:.
>
> -1
>
> > Example: Using @EJB to refer to other EJBs
> > ------------------------------------------
> >
> >                 Key: OPENEJB-357
> >                 URL: https://issues.apache.org/jira/browse/OPENEJB-357
> >             Project: OpenEJB
> >          Issue Type: Sub-task
> >          Components: documentation, ejb3 simplified
> >    Affects Versions: 3.0
> >            Reporter: David Blevins
> >         Assigned To: Jeremy Whitlock
> >             Fix For: 3.0
> >
> >         Attachments: OPENEJB-357.txt, patch.txt
> >
> >
> > Shows how to use the @EJB annotation on a bean class to refer to other
> beans.
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
> https://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>

Re: [jira] Closed: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by David Blevins <da...@visi.com>.
On Jan 18, 2007, at 5:25 AM, Filippo Diotalevi wrote:

> On 1/17/07, Jeremy Whitlock <jc...@gmail.com> wrote:
>> Hi All,
>>     I would like to thank Flippo for his submission and the  
>> documentation
>> with the submission.  We appreciate your involvement with OpenEJB  
>> and look
>> forward to working with you in the near future.
>>
>
> Hi Jeremy, it's always a pleasure... and don't forget there are two
> other patches
> https://issues.apache.org/jira/browse/OPENEJB-346
> https://issues.apache.org/jira/browse/OPENEJB-347

Looking good, Filippo!  Thanks a million for the docs and examples!

As no one was assigned to the patches, I went ahead and checked these  
in and regenerated the wiki content for publication to the website:

http://cwiki.apache.org/OPENEJB/counter-stateful-session-bean- 
example.html
http://cwiki.apache.org/OPENEJB/calculator-session-stateless-bean- 
example.html

I also added some more text to the calculator example trying to jazz  
it up a bit.  Let me know what you think!

Thanks again!

(ok, now I'm really going to bed)

-David


Re: [jira] Closed: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by Filippo Diotalevi <fi...@gmail.com>.
On 1/17/07, Jeremy Whitlock <jc...@gmail.com> wrote:
> Hi All,
>     I would like to thank Flippo for his submission and the documentation
> with the submission.  We appreciate your involvement with OpenEJB and look
> forward to working with you in the near future.
>

Hi Jeremy, it's always a pleasure... and don't forget there are two
other patches
https://issues.apache.org/jira/browse/OPENEJB-346
https://issues.apache.org/jira/browse/OPENEJB-347

-- 
Filippo Diotalevi
filippo.diotalevi@gmail.com
http://www.diotalevi.com/weblog
http://www.jugmilano.it

Re: [jira] Closed: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by David Blevins <da...@visi.com>.
And thanks to you, Jeremy, for applying it.  I know you've been crazy  
busy traveling for work.

-David

On Jan 17, 2007, at 10:37 AM, Jeremy Whitlock wrote:

> Hi All,
>    I would like to thank Flippo for his submission and the  
> documentation
> with the submission.  We appreciate your involvement with OpenEJB  
> and look
> forward to working with you in the near future.
>
> Take care,
>
> Jeremy
>
> On 1/17/07, Jeremy Whitlock (JIRA) <ji...@apache.org> wrote:
>>
>>
>>      [
>> https://issues.apache.org/jira/browse/OPENEJB-357? 
>> page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>>
>> Jeremy Whitlock closed OPENEJB-357.
>> -----------------------------------
>>
>>     Resolution: Fixed
>>
>> Patch applied at revision 497110.
>>
>> > Example: Using @EJB to refer to other EJBs
>> > ------------------------------------------
>> >
>> >                 Key: OPENEJB-357
>> >                 URL: https://issues.apache.org/jira/browse/ 
>> OPENEJB-357
>> >             Project: OpenEJB
>> >          Issue Type: Sub-task
>> >          Components: documentation, ejb3 simplified
>> >    Affects Versions: 3.0
>> >            Reporter: David Blevins
>> >         Assigned To: Jeremy Whitlock
>> >             Fix For: 3.0
>> >
>> >         Attachments: OPENEJB-357.txt, patch.txt
>> >
>> >
>> > Shows how to use the @EJB annotation on a bean class to refer to  
>> other
>> beans.
>>
>> --
>> This message is automatically generated by JIRA.
>> -
>> If you think it was sent incorrectly contact one of the  
>> administrators:
>> https://issues.apache.org/jira/secure/Administrators.jspa
>> -
>> For more information on JIRA, see: http://www.atlassian.com/ 
>> software/jira
>>
>>
>>


Re: [jira] Closed: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by Jacek Laskowski <ja...@laskowski.net.pl>.
On 2/15/07, David Blevins <da...@visi.com> wrote:
> I just was doing some updating on the website as noted in the other
> thread, adding all the examples to an index page and such....
>
> When I got to the EJB Injection example my jaw hit the floor -- we
> totally haven't applied Filippo's patch!
>
> And then I thought, well no wonder we haven't seen him around lately,
> his hard work is sitting in a closed jira collecting dust.  Yikes!

Noone could resist to change his/her mood after this! Unbelievable how
you can manage all this - keeping up with the community building and
development. Good to be in such a team!

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

Re: [jira] Closed: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by David Blevins <da...@visi.com>.
All checked in and the site updated:

http://cwiki.apache.org/OPENEJB/ejb-injection-example.html

Should rsync within the hour.

-David

On Feb 14, 2007, at 4:14 PM, David Blevins wrote:

> I just was doing some updating on the website as noted in the other  
> thread, adding all the examples to an index page and such....
>
> When I got to the EJB Injection example my jaw hit the floor -- we  
> totally haven't applied Filippo's patch!
>
> And then I thought, well no wonder we haven't seen him around  
> lately, his hard work is sitting in a closed jira collecting dust.   
> Yikes!
>
> Then I look back to find the last post from him and see even said  
> so.  Double yikes!
>
> Very, very sorry, Filippo!  I'm going to apply this guy right now.
>
> Hope we haven't killed the excitement for you, you've done some  
> really excellent work and we're lucky to have you.
>
> -David
>
> On Jan 18, 2007, at 5:30 AM, Filippo Diotalevi wrote:
>
>> On 1/17/07, Jeremy Whitlock <jc...@gmail.com> wrote:
>>> Hi All,
>>>     I would like to thank Flippo for his submission and the  
>>> documentation
>>> with the submission.  We appreciate your involvement with OpenEJB  
>>> and look
>>> forward to working with you in the near future.
>>
>> BTW... I don't see any changes in the sourcecode... seems like the
>> attached patch is correct, but somehow the patching process failed
>>
>> --
>>  filippo
>>
>


Re: [jira] Closed: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by David Blevins <da...@visi.com>.
I just was doing some updating on the website as noted in the other  
thread, adding all the examples to an index page and such....

When I got to the EJB Injection example my jaw hit the floor -- we  
totally haven't applied Filippo's patch!

And then I thought, well no wonder we haven't seen him around lately,  
his hard work is sitting in a closed jira collecting dust.  Yikes!

Then I look back to find the last post from him and see even said  
so.  Double yikes!

Very, very sorry, Filippo!  I'm going to apply this guy right now.

Hope we haven't killed the excitement for you, you've done some  
really excellent work and we're lucky to have you.

-David

On Jan 18, 2007, at 5:30 AM, Filippo Diotalevi wrote:

> On 1/17/07, Jeremy Whitlock <jc...@gmail.com> wrote:
>> Hi All,
>>     I would like to thank Flippo for his submission and the  
>> documentation
>> with the submission.  We appreciate your involvement with OpenEJB  
>> and look
>> forward to working with you in the near future.
>
> BTW... I don't see any changes in the sourcecode... seems like the
> attached patch is correct, but somehow the patching process failed
>
> --
>  filippo
>


Re: [jira] Closed: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by Filippo Diotalevi <fi...@gmail.com>.
On 1/17/07, Jeremy Whitlock <jc...@gmail.com> wrote:
> Hi All,
>     I would like to thank Flippo for his submission and the documentation
> with the submission.  We appreciate your involvement with OpenEJB and look
> forward to working with you in the near future.

BTW... I don't see any changes in the sourcecode... seems like the
attached patch is correct, but somehow the patching process failed

--
  filippo

Re: [jira] Closed: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by Jeremy Whitlock <jc...@gmail.com>.
Hi All,
    I would like to thank Flippo for his submission and the documentation
with the submission.  We appreciate your involvement with OpenEJB and look
forward to working with you in the near future.

Take care,

Jeremy

On 1/17/07, Jeremy Whitlock (JIRA) <ji...@apache.org> wrote:
>
>
>      [
> https://issues.apache.org/jira/browse/OPENEJB-357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>
> Jeremy Whitlock closed OPENEJB-357.
> -----------------------------------
>
>     Resolution: Fixed
>
> Patch applied at revision 497110.
>
> > Example: Using @EJB to refer to other EJBs
> > ------------------------------------------
> >
> >                 Key: OPENEJB-357
> >                 URL: https://issues.apache.org/jira/browse/OPENEJB-357
> >             Project: OpenEJB
> >          Issue Type: Sub-task
> >          Components: documentation, ejb3 simplified
> >    Affects Versions: 3.0
> >            Reporter: David Blevins
> >         Assigned To: Jeremy Whitlock
> >             Fix For: 3.0
> >
> >         Attachments: OPENEJB-357.txt, patch.txt
> >
> >
> > Shows how to use the @EJB annotation on a bean class to refer to other
> beans.
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
> https://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>

Re: [jira] Updated: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by Jeremy Whitlock <jc...@gmail.com>.
David,
    I've not tried today.  I'm onsite today so I cannot try until tonight.

Take care,

Jeremy

On 1/9/07, David Blevins <da...@visi.com> wrote:
>
> You ever get your build issues cleared up?
>
> -David
>
> On Jan 9, 2007, at 7:46 PM, Jeremy Whitlock wrote:
>
> > Flippo,
> >    I will apply your new patch shortly.  I'm away on business so if it
> > doesn't happen immediately, don't fret.  At worst, by Monday the 15th.
> >
> > Take care,
> >
> > Jeremy
> >
> > On 1/9/07, Filippo Diotalevi (JIRA) <ji...@apache.org> wrote:
> >>
> >>
> >>      [
> >> https://issues.apache.org/jira/browse/OPENEJB-357?
> >> page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
> >>
> >> Filippo Diotalevi updated OPENEJB-357:
> >> --------------------------------------
> >>
> >>     Attachment: OPENEJB-357.txt
> >>
> >> > Example: Using @EJB to refer to other EJBs
> >> > ------------------------------------------
> >> >
> >> >                 Key: OPENEJB-357
> >> >                 URL: https://issues.apache.org/jira/browse/
> >> OPENEJB-357
> >> >             Project: OpenEJB
> >> >          Issue Type: Sub-task
> >> >          Components: documentation, ejb3 simplified
> >> >    Affects Versions: 3.0
> >> >            Reporter: David Blevins
> >> >         Assigned To: Filippo Diotalevi
> >> >             Fix For: 3.0
> >> >
> >> >         Attachments: OPENEJB-357.txt, patch.txt
> >> >
> >> >
> >> > Shows how to use the @EJB annotation on a bean class to refer to
> >> other
> >> beans.
> >>
> >> --
> >> This message is automatically generated by JIRA.
> >> -
> >> If you think it was sent incorrectly contact one of the
> >> administrators:
> >> https://issues.apache.org/jira/secure/Administrators.jspa
> >> -
> >> For more information on JIRA, see: http://www.atlassian.com/
> >> software/jira
> >>
> >>
> >>
>
>

Re: [jira] Updated: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by David Blevins <da...@visi.com>.
You ever get your build issues cleared up?

-David

On Jan 9, 2007, at 7:46 PM, Jeremy Whitlock wrote:

> Flippo,
>    I will apply your new patch shortly.  I'm away on business so if it
> doesn't happen immediately, don't fret.  At worst, by Monday the 15th.
>
> Take care,
>
> Jeremy
>
> On 1/9/07, Filippo Diotalevi (JIRA) <ji...@apache.org> wrote:
>>
>>
>>      [
>> https://issues.apache.org/jira/browse/OPENEJB-357? 
>> page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>>
>> Filippo Diotalevi updated OPENEJB-357:
>> --------------------------------------
>>
>>     Attachment: OPENEJB-357.txt
>>
>> > Example: Using @EJB to refer to other EJBs
>> > ------------------------------------------
>> >
>> >                 Key: OPENEJB-357
>> >                 URL: https://issues.apache.org/jira/browse/ 
>> OPENEJB-357
>> >             Project: OpenEJB
>> >          Issue Type: Sub-task
>> >          Components: documentation, ejb3 simplified
>> >    Affects Versions: 3.0
>> >            Reporter: David Blevins
>> >         Assigned To: Filippo Diotalevi
>> >             Fix For: 3.0
>> >
>> >         Attachments: OPENEJB-357.txt, patch.txt
>> >
>> >
>> > Shows how to use the @EJB annotation on a bean class to refer to  
>> other
>> beans.
>>
>> --
>> This message is automatically generated by JIRA.
>> -
>> If you think it was sent incorrectly contact one of the  
>> administrators:
>> https://issues.apache.org/jira/secure/Administrators.jspa
>> -
>> For more information on JIRA, see: http://www.atlassian.com/ 
>> software/jira
>>
>>
>>


Re: [jira] Updated: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by Jeremy Whitlock <jc...@gmail.com>.
Flippo,
    I will apply your new patch shortly.  I'm away on business so if it
doesn't happen immediately, don't fret.  At worst, by Monday the 15th.

Take care,

Jeremy

On 1/9/07, Filippo Diotalevi (JIRA) <ji...@apache.org> wrote:
>
>
>      [
> https://issues.apache.org/jira/browse/OPENEJB-357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>
> Filippo Diotalevi updated OPENEJB-357:
> --------------------------------------
>
>     Attachment: OPENEJB-357.txt
>
> > Example: Using @EJB to refer to other EJBs
> > ------------------------------------------
> >
> >                 Key: OPENEJB-357
> >                 URL: https://issues.apache.org/jira/browse/OPENEJB-357
> >             Project: OpenEJB
> >          Issue Type: Sub-task
> >          Components: documentation, ejb3 simplified
> >    Affects Versions: 3.0
> >            Reporter: David Blevins
> >         Assigned To: Filippo Diotalevi
> >             Fix For: 3.0
> >
> >         Attachments: OPENEJB-357.txt, patch.txt
> >
> >
> > Shows how to use the @EJB annotation on a bean class to refer to other
> beans.
>
> --
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the administrators:
> https://issues.apache.org/jira/secure/Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
>

[jira] Updated: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by "David Blevins (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OPENEJB-357?page=all ]

David Blevins updated OPENEJB-357:
----------------------------------

    Description: 
Shows how to use the @EJB annotation on a bean class to refer to other beans.


> Example: Using @EJB to refer to other EJBs
> ------------------------------------------
>
>                 Key: OPENEJB-357
>                 URL: http://issues.apache.org/jira/browse/OPENEJB-357
>             Project: OpenEJB
>          Issue Type: Sub-task
>            Reporter: David Blevins
>
> Shows how to use the @EJB annotation on a bean class to refer to other beans.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by "Jeremy Whitlock (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeremy Whitlock updated OPENEJB-357:
------------------------------------

    Description: Shows how to use the @EJB annotation on a bean class to refer to other beans.  (was: Shows how to use the @EJB annotation on a bean class to refer to other beans.
)

Flippo,
    Looks like I will get to this tomorrow.  Thanks for your patience.

Take care,

Jeremy

> Example: Using @EJB to refer to other EJBs
> ------------------------------------------
>
>                 Key: OPENEJB-357
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-357
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: documentation, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>         Assigned To: Jeremy Whitlock
>             Fix For: 3.0
>
>         Attachments: OPENEJB-357.txt, patch.txt
>
>
> Shows how to use the @EJB annotation on a bean class to refer to other beans.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by "Jeremy Whitlock (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465325 ] 

Jeremy Whitlock commented on OPENEJB-357:
-----------------------------------------

Flippo,
    Can you recreate the patch?  It is failing to apply the pom.xml portion of the patch.  This is probably due to my tardiness in applying the patch.  I'm sorry for any inconvenience.

Take care,

Jeremy

> Example: Using @EJB to refer to other EJBs
> ------------------------------------------
>
>                 Key: OPENEJB-357
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-357
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: documentation, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>         Assigned To: Jeremy Whitlock
>             Fix For: 3.0
>
>         Attachments: OPENEJB-357.txt, patch.txt
>
>
> Shows how to use the @EJB annotation on a bean class to refer to other beans.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by "David Blevins (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465367 ] 

David Blevins commented on OPENEJB-357:
---------------------------------------

This one seems to work for me.

mingus:~/work/openejb3 10:48:35 
$ svn up
At revision 496943.

mingus:~/work/openejb3 10:48:38 
$ wget -q https://issues.apache.org/jira/secure/attachment/12348594/OPENEJB-357.txt

mingus:~/work/openejb3 10:48:44 
$ patch -p1 < OPENEJB-357.txt 
patching file examples/ejb-injection/README.txt
patching file examples/ejb-injection/src/main/java/org/apache/openejb/examples/injection/DataReaderImpl.java
patching file examples/ejb-injection/src/main/java/org/apache/openejb/examples/injection/DataReaderLocal.java
patching file examples/ejb-injection/src/main/java/org/apache/openejb/examples/injection/DataStoreImpl.java
patching file examples/ejb-injection/src/main/java/org/apache/openejb/examples/injection/DataStoreLocal.java
patching file examples/ejb-injection/src/main/java/org/apache/openejb/examples/injection/DataStoreRemote.java
patching file examples/ejb-injection/src/test/java/org/apache/openejb/examples/injection/EjbDependencyTest.java

Jeremy, you want to take another stab at it or should I commit it?

> Example: Using @EJB to refer to other EJBs
> ------------------------------------------
>
>                 Key: OPENEJB-357
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-357
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: documentation, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>         Assigned To: Jeremy Whitlock
>             Fix For: 3.0
>
>         Attachments: OPENEJB-357.txt, patch.txt
>
>
> Shows how to use the @EJB annotation on a bean class to refer to other beans.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Reopened: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by "Filippo Diotalevi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filippo Diotalevi reopened OPENEJB-357:
---------------------------------------


The attached patch contains the documentation of the example, following guidelines expressed at
http://www.nabble.com/Documenting-examples-%28was%3A-Re%3A-EJB3-Embedding-tutorial-avialable%29-p8084926.html

I also created a wiki page for this example at
http://cwiki.apache.org/confluence/display/OPENEJB/Ejb+Injection+Example
(obviously, the wiki page will appear correctly only when the patch is committed)

> Example: Using @EJB to refer to other EJBs
> ------------------------------------------
>
>                 Key: OPENEJB-357
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-357
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: documentation, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>         Assigned To: Filippo Diotalevi
>             Fix For: 3.0
>
>         Attachments: patch.txt
>
>
> Shows how to use the @EJB annotation on a bean class to refer to other beans.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by "David Blevins (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Blevins closed OPENEJB-357.
---------------------------------

    Resolution: Fixed

Applied and verified.  Regenerating site doc now.

> Example: Using @EJB to refer to other EJBs
> ------------------------------------------
>
>                 Key: OPENEJB-357
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-357
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: documentation, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>         Assigned To: Filippo Diotalevi
>             Fix For: 3.0
>
>         Attachments: OPENEJB-357.txt, patch.txt
>
>
> Shows how to use the @EJB annotation on a bean class to refer to other beans.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by "Jeremy Whitlock (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeremy Whitlock updated OPENEJB-357:
------------------------------------


Hi All,
    Concensus is that this will be committed until there is a better way to handle this.  The vote was 2:1.  Please feel free to take the changes of this patch, if accepted, and modify as necessary in the future.

Take care,

Jeremy

> Example: Using @EJB to refer to other EJBs
> ------------------------------------------
>
>                 Key: OPENEJB-357
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-357
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: documentation, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>         Assigned To: Jeremy Whitlock
>             Fix For: 3.0
>
>         Attachments: OPENEJB-357.txt, patch.txt
>
>
> Shows how to use the @EJB annotation on a bean class to refer to other beans.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by "Filippo Diotalevi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Filippo Diotalevi updated OPENEJB-357:
--------------------------------------

    Attachment: OPENEJB-357.txt

> Example: Using @EJB to refer to other EJBs
> ------------------------------------------
>
>                 Key: OPENEJB-357
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-357
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: documentation, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>         Assigned To: Filippo Diotalevi
>             Fix For: 3.0
>
>         Attachments: OPENEJB-357.txt, patch.txt
>
>
> Shows how to use the @EJB annotation on a bean class to refer to other beans.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by "Jacek Laskowski (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OPENEJB-357?page=comments#action_12459786 ] 
            
Jacek Laskowski commented on OPENEJB-357:
-----------------------------------------

Thanks Filippo for the excellent example! I could learn yet another feature of EJB 3.0. I hope it's going to be committed soon so others will be able to give it a spin, too.

+1 for committing it.

> Example: Using @EJB to refer to other EJBs
> ------------------------------------------
>
>                 Key: OPENEJB-357
>                 URL: http://issues.apache.org/jira/browse/OPENEJB-357
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: documentation, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>         Assigned To: Jeremy Whitlock
>             Fix For: 3.0
>
>         Attachments: patch.txt
>
>
> Shows how to use the @EJB annotation on a bean class to refer to other beans.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by "Jeremy Whitlock (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OPENEJB-357?page=all ]

Jeremy Whitlock closed OPENEJB-357.
-----------------------------------

    Resolution: Fixed

Patch accepted and committed to the repository as of revision 489456.

> Example: Using @EJB to refer to other EJBs
> ------------------------------------------
>
>                 Key: OPENEJB-357
>                 URL: http://issues.apache.org/jira/browse/OPENEJB-357
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: documentation, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>         Assigned To: Jeremy Whitlock
>             Fix For: 3.0
>
>         Attachments: patch.txt
>
>
> Shows how to use the @EJB annotation on a bean class to refer to other beans.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by "Jeremy Whitlock (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465468 ] 

Jeremy Whitlock commented on OPENEJB-357:
-----------------------------------------

This is because the pom.xml already has his module reference in it.  Running tests now and validating new code.  Will submit shortly.

Take care,

Jeremy

> Example: Using @EJB to refer to other EJBs
> ------------------------------------------
>
>                 Key: OPENEJB-357
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-357
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: documentation, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>         Assigned To: Jeremy Whitlock
>             Fix For: 3.0
>
>         Attachments: OPENEJB-357.txt, patch.txt
>
>
> Shows how to use the @EJB annotation on a bean class to refer to other beans.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Reopened: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by "David Blevins (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Blevins reopened OPENEJB-357:
-----------------------------------

      Assignee: Filippo Diotalevi  (was: Jeremy Whitlock)

Doesn't appear that the patch was applied.

> Example: Using @EJB to refer to other EJBs
> ------------------------------------------
>
>                 Key: OPENEJB-357
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-357
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: documentation, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>         Assigned To: Filippo Diotalevi
>             Fix For: 3.0
>
>         Attachments: OPENEJB-357.txt, patch.txt
>
>
> Shows how to use the @EJB annotation on a bean class to refer to other beans.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by "Jeremy Whitlock (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeremy Whitlock closed OPENEJB-357.
-----------------------------------

    Resolution: Fixed

Patch applied at revision 497110.

> Example: Using @EJB to refer to other EJBs
> ------------------------------------------
>
>                 Key: OPENEJB-357
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-357
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: documentation, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>         Assigned To: Jeremy Whitlock
>             Fix For: 3.0
>
>         Attachments: OPENEJB-357.txt, patch.txt
>
>
> Shows how to use the @EJB annotation on a bean class to refer to other beans.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by "Jeremy Whitlock (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENEJB-357?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeremy Whitlock reassigned OPENEJB-357:
---------------------------------------

    Assignee: Jeremy Whitlock  (was: Filippo Diotalevi)

> Example: Using @EJB to refer to other EJBs
> ------------------------------------------
>
>                 Key: OPENEJB-357
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-357
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: documentation, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>         Assigned To: Jeremy Whitlock
>             Fix For: 3.0
>
>         Attachments: OPENEJB-357.txt, patch.txt
>
>
> Shows how to use the @EJB annotation on a bean class to refer to other beans.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by "Jeremy Whitlock (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OPENEJB-357?page=all ]

Jeremy Whitlock reassigned OPENEJB-357:
---------------------------------------

    Assignee: Filippo Diotalevi  (was: Jeremy Whitlock)

> Example: Using @EJB to refer to other EJBs
> ------------------------------------------
>
>                 Key: OPENEJB-357
>                 URL: http://issues.apache.org/jira/browse/OPENEJB-357
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: documentation, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>         Assigned To: Filippo Diotalevi
>             Fix For: 3.0
>
>         Attachments: patch.txt
>
>
> Shows how to use the @EJB annotation on a bean class to refer to other beans.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by "Jeremy Whitlock (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OPENEJB-357?page=all ]

Jeremy Whitlock reassigned OPENEJB-357:
---------------------------------------

    Assignee: Jeremy Whitlock

> Example: Using @EJB to refer to other EJBs
> ------------------------------------------
>
>                 Key: OPENEJB-357
>                 URL: http://issues.apache.org/jira/browse/OPENEJB-357
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: documentation, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>         Assigned To: Jeremy Whitlock
>             Fix For: 3.0
>
>         Attachments: patch.txt
>
>
> Shows how to use the @EJB annotation on a bean class to refer to other beans.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by "Jacek Laskowski (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463979 ] 

Jacek Laskowski commented on OPENEJB-357:
-----------------------------------------

I'm against adding any semi-annotations to the code. It's not the code that should be changed to be shown in Wiki, but the macro itself should. These semi-annotations don't add any value to the code. We need to come up with another way to document the code than add // END snippet:.

-1

> Example: Using @EJB to refer to other EJBs
> ------------------------------------------
>
>                 Key: OPENEJB-357
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-357
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: documentation, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>         Assigned To: Jeremy Whitlock
>             Fix For: 3.0
>
>         Attachments: OPENEJB-357.txt, patch.txt
>
>
> Shows how to use the @EJB annotation on a bean class to refer to other beans.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Re: [jira] Updated: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by Jeremy Whitlock <jc...@gmail.com>.
David,
    I've assigned it to me.  I will take care of this.

Take care,

Jeremy

On 12/19/06, David Blevins <da...@visi.com> wrote:
>
>
> On Dec 18, 2006, at 2:56 PM, Filippo Diotalevi (JIRA) wrote:
>
> >      [ http://issues.apache.org/jira/browse/OPENEJB-357?page=all ]
> >
> > Filippo Diotalevi updated OPENEJB-357:
> > --------------------------------------
> >
> >     Attachment: patch.txt
> >
> > The attached patch contains an example of resource injection using
> > @EJB annotation
> >
>
> Excellent, Filippo!  This is great.
>
> Anyone have a moment to apply this?
>
> -David
>
>
> >> Example: Using @EJB to refer to other EJBs
> >> ------------------------------------------
> >>
> >>                 Key: OPENEJB-357
> >>                 URL: http://issues.apache.org/jira/browse/OPENEJB-357
> >>             Project: OpenEJB
> >>          Issue Type: Sub-task
> >>          Components: documentation, ejb3 simplified
> >>    Affects Versions: 3.0
> >>            Reporter: David Blevins
> >>             Fix For: 3.0
> >>
> >>         Attachments: patch.txt
> >>
> >>
> >> Shows how to use the @EJB annotation on a bean class to refer to
> >> other beans.
> >
> > --
> > This message is automatically generated by JIRA.
> > -
> > If you think it was sent incorrectly contact one of the
> > administrators: http://issues.apache.org/jira/secure/
> > Administrators.jspa
> > -
> > For more information on JIRA, see: http://www.atlassian.com/
> > software/jira
> >
> >
> >
>
>

Re: [jira] Updated: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by David Blevins <da...@visi.com>.
On Dec 18, 2006, at 2:56 PM, Filippo Diotalevi (JIRA) wrote:

>      [ http://issues.apache.org/jira/browse/OPENEJB-357?page=all ]
>
> Filippo Diotalevi updated OPENEJB-357:
> --------------------------------------
>
>     Attachment: patch.txt
>
> The attached patch contains an example of resource injection using  
> @EJB annotation
>

Excellent, Filippo!  This is great.

Anyone have a moment to apply this?

-David


>> Example: Using @EJB to refer to other EJBs
>> ------------------------------------------
>>
>>                 Key: OPENEJB-357
>>                 URL: http://issues.apache.org/jira/browse/OPENEJB-357
>>             Project: OpenEJB
>>          Issue Type: Sub-task
>>          Components: documentation, ejb3 simplified
>>    Affects Versions: 3.0
>>            Reporter: David Blevins
>>             Fix For: 3.0
>>
>>         Attachments: patch.txt
>>
>>
>> Shows how to use the @EJB annotation on a bean class to refer to  
>> other beans.
>
> -- 
> This message is automatically generated by JIRA.
> -
> If you think it was sent incorrectly contact one of the  
> administrators: http://issues.apache.org/jira/secure/ 
> Administrators.jspa
> -
> For more information on JIRA, see: http://www.atlassian.com/ 
> software/jira
>
>
>


[jira] Updated: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by "Filippo Diotalevi (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/OPENEJB-357?page=all ]

Filippo Diotalevi updated OPENEJB-357:
--------------------------------------

    Attachment: patch.txt

The attached patch contains an example of resource injection using @EJB annotation

> Example: Using @EJB to refer to other EJBs
> ------------------------------------------
>
>                 Key: OPENEJB-357
>                 URL: http://issues.apache.org/jira/browse/OPENEJB-357
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: documentation, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>             Fix For: 3.0
>
>         Attachments: patch.txt
>
>
> Shows how to use the @EJB annotation on a bean class to refer to other beans.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by "Jeremy Whitlock (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OPENEJB-357?page=comments#action_12459774 ] 
            
Jeremy Whitlock commented on OPENEJB-357:
-----------------------------------------

Filippo,
    I will be looking at your patch.  I will update you shortly.

Take care,

Jeremy

> Example: Using @EJB to refer to other EJBs
> ------------------------------------------
>
>                 Key: OPENEJB-357
>                 URL: http://issues.apache.org/jira/browse/OPENEJB-357
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: documentation, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>         Assigned To: Jeremy Whitlock
>             Fix For: 3.0
>
>         Attachments: patch.txt
>
>
> Shows how to use the @EJB annotation on a bean class to refer to other beans.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by "Jeremy Whitlock (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/OPENEJB-357?page=comments#action_12460339 ] 
            
Jeremy Whitlock commented on OPENEJB-357:
-----------------------------------------

Filippo,
    Thank you for your submission.  I have validated the patch and have accepted it as of revision 489456 of the repository.  Thank you again for you helpful example.

Take care,

Jeremy

> Example: Using @EJB to refer to other EJBs
> ------------------------------------------
>
>                 Key: OPENEJB-357
>                 URL: http://issues.apache.org/jira/browse/OPENEJB-357
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: documentation, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>         Assigned To: Jeremy Whitlock
>             Fix For: 3.0
>
>         Attachments: patch.txt
>
>
> Shows how to use the @EJB annotation on a bean class to refer to other beans.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by "Jeremy Whitlock (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465465 ] 

Jeremy Whitlock commented on OPENEJB-357:
-----------------------------------------

patching file openejb3/examples/ejb-injection/pom.xml
patching file openejb3/examples/ejb-injection/src/main/java/org/apache/openejb/examples/injection/DataReaderImpl.java
patching file openejb3/examples/ejb-injection/src/main/java/org/apache/openejb/examples/injection/DataReaderLocal.java
patching file openejb3/examples/ejb-injection/src/main/java/org/apache/openejb/examples/injection/DataReaderRemote.java
patching file openejb3/examples/ejb-injection/src/main/java/org/apache/openejb/examples/injection/DataStoreImpl.java
patching file openejb3/examples/ejb-injection/src/main/java/org/apache/openejb/examples/injection/DataStoreLocal.java
patching file openejb3/examples/ejb-injection/src/main/java/org/apache/openejb/examples/injection/DataStoreRemote.java
patching file openejb3/examples/ejb-injection/src/test/java/org/apache/openejb/examples/injection/EjbDependencyTest.java
patching file openejb3/examples/pom.xml
Hunk #1 FAILED at 34.
1 out of 1 hunk FAILED -- saving rejects to file openejb3/examples/pom.xml.rej

That is the error I get.  I'll just do this last one manually and commit.

Take care,

Jeremy

> Example: Using @EJB to refer to other EJBs
> ------------------------------------------
>
>                 Key: OPENEJB-357
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-357
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: documentation, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>         Assigned To: Jeremy Whitlock
>             Fix For: 3.0
>
>         Attachments: OPENEJB-357.txt, patch.txt
>
>
> Shows how to use the @EJB annotation on a bean class to refer to other beans.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (OPENEJB-357) Example: Using @EJB to refer to other EJBs

Posted by "David Blevins (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/OPENEJB-357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12473269 ] 

David Blevins commented on OPENEJB-357:
---------------------------------------

$ svn ci
Adding         ejb-injection/README.txt
Sending        ejb-injection/src/main/java/org/apache/openejb/examples/injection/DataReaderImpl.java
Sending        ejb-injection/src/main/java/org/apache/openejb/examples/injection/DataReaderLocal.java
Sending        ejb-injection/src/main/java/org/apache/openejb/examples/injection/DataReaderRemote.java
Sending        ejb-injection/src/main/java/org/apache/openejb/examples/injection/DataStoreImpl.java
Sending        ejb-injection/src/main/java/org/apache/openejb/examples/injection/DataStoreLocal.java
Sending        ejb-injection/src/main/java/org/apache/openejb/examples/injection/DataStoreRemote.java
Sending        ejb-injection/src/test/java/org/apache/openejb/examples/injection/EjbDependencyTest.java
Transmitting file data ........
Committed revision 507754.


> Example: Using @EJB to refer to other EJBs
> ------------------------------------------
>
>                 Key: OPENEJB-357
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-357
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: documentation, ejb3 simplified
>    Affects Versions: 3.0
>            Reporter: David Blevins
>         Assigned To: Filippo Diotalevi
>             Fix For: 3.0
>
>         Attachments: OPENEJB-357.txt, patch.txt
>
>
> Shows how to use the @EJB annotation on a bean class to refer to other beans.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.