There are many kinds of web app. We are using JBoss and Jetty with servlets, not JSPs. I don't know how common that combination is, but I'm guessing it's not too rare. The snippets in the userguide did not seem adequate to me, but I guess "good examples" are always a matter of opinion. In a development example, I would have hoped to see something like a complete tutorial -- start to finish, with source code and build scripts -- which I could not find anywhere for Cayenne. A library of (unsupported) simple examples developed by Cayenne users in different environments and available for download would be helpful.
The short answer on Cayenne access from an EJB container seems to be that it won't work. It appears that Cayenne needs to support Hibernate-style MBean facilities in order to provide this kind of access. I don't have time or resources to make this work myself, so I guess that I will have to switch over to Hibernate and use that instead. That's really too bad, as I would have preferred to stick with Cayenne for other reasons.
On Wednesday, October 01, 2003, at 09:36AM, Andrus Adamchik <andru..bjectstyle.org> wrote:
>Hi Craig,
>
>On Tuesday, September 30, 2003, at 01:40 PM, Craig Ziesman wrote:
>> I built a simple JBoss HelloWorld app and managed to integrate with
>> minor difficulties. I would be willing to share this if anyone is
>> interested.
>
>If this is just a webapp, we already have a few good examples... Now if
>you could summarize/demonstrate the caveats specific to JBoss
>integration (e.g. compared to Tomcat), that would be great. We could
>include this in Cayenne docs.
>
>
>> Now I am trying to integrate Cayenne into an existing J2EE
>> application. I created a DataObject to replace one of my entity beans.
>> The DataObject gets referenced from a GUI using an applet/servlet
>> combo, which works great. However, the DataObject also gets referenced
>> from an existing session bean. This fails with a Class Not Found
>> exception when I try to reference the Dataobject.
>>
>> What is the required structure of the EAR file to get this to work? I
>> have tried every combination I can think of, and nothing helps.
>
>Umm... haven't used EJBs since before Cayenne went Alpha :-)... Can't
>help much here, sorry. But will be very interested to hear from you if
>you find a solution (I definitely know that others have done it in the
>past....) Just like with the example above, this maybe a very useful
>addition to the documentation.
>
>Thanks
>
>Andrus
>
>
>
This archive was generated by hypermail 2.0.0 : Thu Oct 02 2003 - 12:05:35 EDT