mbn> On Sat, Dec 21, 2002 at 02:23:04PM +0100, julien viet wrote:
>> I am currently working on jboss forum application and we
>> try to get rid of value object by using local directly
>> in web layer.
>> 
>> On that purpose we have two interceptors that allow
>> bulk retrieval of value of a cmp bean though it local interface.
>> 
>> For instance with a local :
>> 
>> local l = some_way_to_have_a_local();
>> // will retrieve all values of bean
>> // and store them in a cache at the beginning
>> // of invocation stack
>> System.out.println(l.getValue1());
>> // will hit the cache
>> System.out.println(l.getValue2());
>> 
>> and you have the same behaviour than value objects.
>> 
>> if you want to see it, it's in applications module, org/jboss/forums/cache
>> 
>> the interest is to avoid duplicate code with silly value-objects
>> and their creation in session facades.
>> 
>> julien

mbn> But where is the transaction started?

in a separate servlet filter. nevertheless you don't
need absolutely to start a transaction since it's only
read operations.

>> 
>> N> I am using JBoss 3.0.4 and developing a large number
>> N> of CMP 2 beans in a preliminary proof of concept.
>> 
>> N> Based on the new Local interfaces in EJB 2, can anyone
>> N> recommend a source for an updated pattern
>> N> implementation for Session Facades ? It seems like I
>> N> simply need to generate value objects to return to the
>> N> clients (in this case some clients will be servlets,
>> N> others will be rich clients) and I was hoping I could
>> N> save some coding time.......
>> 
>> N> The second question is, what do I need to do to make
>> N> JBoss log the SQL is issuing agains the database from
>> N> the CMP 2 engine to the consle or a file ?
>> 
>> N> Thanks !
>> 
>> N> //Nicholas
>> 
>> N> =====
>> N> Nicholas Whitehead
>> N> Home: (973) 377 9335
>> N> Cell: (201) 615 2716
>> N> Work: (212) 622 5639
>> N> [EMAIL PROTECTED]
>> 
>> 
>> N> -------------------------------------------------------
>> N> This SF.NET email is sponsored by: Order your Holiday Geek Presents Now!
>> N> Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap,
>> N> MP3 Players,  XBox Games,  Flying Saucers,  WebCams,  Smart Putty.
>> N> T H I N K G E E K . C O M       http://www.thinkgeek.com/sf/
>> N> _______________________________________________
>> N> JBoss-user mailing list
>> N> [EMAIL PROTECTED]
>> N> https://lists.sourceforge.net/lists/listinfo/jboss-user
>> 
>> 
>> 
>> -- 
>> Best regards,
>>  julien                            mailto:[EMAIL PROTECTED]
>> 
>> ___________________________________________________________
>> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais !
>> Yahoo! Mail : http://fr.mail.yahoo.com
>> 
>> 
>> -------------------------------------------------------
>> This SF.NET email is sponsored by: Order your Holiday Geek Presents Now!
>> Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap,
>> MP3 Players,  XBox Games,  Flying Saucers,  WebCams,  Smart Putty.
>> T H I N K G E E K . C O M       http://www.thinkgeek.com/sf/
>> _______________________________________________
>> JBoss-user mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/jboss-user




-- 
Best regards,
 julien                            mailto:[EMAIL PROTECTED]

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


-------------------------------------------------------
This SF.NET email is sponsored by: Order your Holiday Geek Presents Now!
Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap,
MP3 Players,  XBox Games,  Flying Saucers,  WebCams,  Smart Putty.
T H I N K G E E K . C O M       http://www.thinkgeek.com/sf/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to