Re: i need more documentation on applicationContext.xml

2010-06-21 Thread Jens Hadlich

Hi Jake,

the  simply tells Spring to put transactional 
advice on any class or method that has an @Transactional annotation on it.


Regards,
Jens

Am 21.06.2010 18:16, schrieb Jake Vang:

Stephen,

i know it is a spring xml file. i can tell that with the  element, they are defining a transaction
manager. however, what does  do? to me, intuitively, it defines a transaction manager that
will process by annotations.

the tutorial that gives this applicationContext.xml shows us how to
get things working, but doesn't really explain in detail "why" we are
doing what we are doing. that's kind of what i meant.

On Mon, Jun 21, 2010 at 10:04 AM, Stephen Turner  wrote:
   

On Mon, 21 Jun 2010 00:56:19 -0400, Jake Vang
wrote:

 

hi, i've been reading and studying
http://struts.apache.org/2.0.14/docs/struts-2-spring-2-jpa-ajax.html.
i want to know what is actually going on in applicationContext.xml.
for example, what do these two lines do? please explain or refer me to
better documentation.

  





   

Hi Jake,

This file holds the Spring configuration. You'll need to read up on Spring -
they have excellent documentation at:

http://www.springsource.org/

Steve

 

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


   



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: i need more documentation on applicationContext.xml

2010-06-21 Thread Jake Vang
thanks Martin. that gives me a little more confidence. that takes a
little mystery away from that XML file.

by the way, do you know any books that discusses Struts 2 (the latest
latest version 2.1.x)? i would purchase it in a heartbeat.

On Mon, Jun 21, 2010 at 11:42 AM, Martin Gainty  wrote:
> a listing of  persistence-providers
>
> //notice the vendorAdapter changes for every vendor
> Toplink:  class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
>    vendorAdapter
>    
> 
> 
> 
>    
>   
>    TransactionManager: ?
>
> Spring OpenJpa:    class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
>      class="org.springframework.orm.jpa.vendor.OpenJpaVendorAdapter">
>     
>     
>     
>       
>   TransactionManager: ?
>
> Hibernate:   class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
>    
>     class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
> 
> 
> 
>    
>   
>  TransactionManager: ?
>
> //Spring SharedEntityManager supports EntityManagerFactory thru
> transactionManager:
>   class="org.springframework.orm.jpa.support.SharedEntityManagerBean">
>   
>  
> //transactionManager
>   class="org.springframework.orm.jpa.JpaTransactionManager">
>   
>   
>  
>
>
> conclusion seems to be we can implement both the entityManager and
> transactionManager
> but only if wholly configured to use entityManagerFactory's (based on
> jpaVendorAdapter vendor specific configuration)
>
> Martin Gainty
> __
> Jogi és Bizalmassági kinyilatkoztatás/Verzicht und
> Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
>
> Ez az üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy
> jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése
> nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi
> alkalmazhatósága sincs.  Mivel az electronikus üzenetek könnyen
> megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet
> tartalma miatt.
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire
> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
> de ceci est interdite. Ce message sert à l'information seulement et n'aura
> pas n'importe quel effet légalement obligatoire. Étant donné que les email
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> aucune responsabilité pour le contenu fourni.
>
>
>
>
>> To: user@struts.apache.org; vangj...@googlemail.com
>> Subject: Re: i need more documentation on applicationContext.xml
>> Date: Mon, 21 Jun 2010 10:04:57 -0400
>> From: stur...@mit.edu
>>
>>
>> On Mon, 21 Jun 2010 00:56:19 -0400, Jake Vang 
>> wrote:
>>
>> > hi, i've been reading and studying
>> > http://struts.apache.org/2.0.14/docs/struts-2-spring-2-jpa-ajax.html.
>> > i want to know what is actually going on in applicationContext.xml.
>> > for example, what do these two lines do? please explain or refer me to
>> > better documentation.
>> >
>> > > > class="org.springframework.orm.jpa.JpaTransactionManager">
>> > > > />
>> > 
>> >
>> > 
>> >
>>
>> Hi Jake,
>>
>> This file holds the Spring configuration. You'll need to read up on Spring
>> - they have excellent documentation at:
>>
>> http://www.springsource.org/
>>
>> Steve
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>
> 
> Hotmail is redefining busy with tools for the New Busy. Get more from your
> inbox. See how.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: i need more documentation on applicationContext.xml

2010-06-21 Thread Jake Vang
Stephen,

i know it is a spring xml file. i can tell that with the  element, they are defining a transaction
manager. however, what does  do? to me, intuitively, it defines a transaction manager that
will process by annotations.

the tutorial that gives this applicationContext.xml shows us how to
get things working, but doesn't really explain in detail "why" we are
doing what we are doing. that's kind of what i meant.

On Mon, Jun 21, 2010 at 10:04 AM, Stephen Turner  wrote:
>
> On Mon, 21 Jun 2010 00:56:19 -0400, Jake Vang 
> wrote:
>
>> hi, i've been reading and studying
>> http://struts.apache.org/2.0.14/docs/struts-2-spring-2-jpa-ajax.html.
>> i want to know what is actually going on in applicationContext.xml.
>> for example, what do these two lines do? please explain or refer me to
>> better documentation.
>>
>>  >        class="org.springframework.orm.jpa.JpaTransactionManager">
>>        
>>    
>>
>>    
>>
>
> Hi Jake,
>
> This file holds the Spring configuration. You'll need to read up on Spring -
> they have excellent documentation at:
>
> http://www.springsource.org/
>
> Steve
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: i need more documentation on applicationContext.xml

2010-06-21 Thread Martin Gainty

a listing of  persistence-providers


//notice the vendorAdapter changes for every vendor 
Toplink: 

   vendorAdapter

   



   
  

   TransactionManager: ?


Spring OpenJpa:  





  

  TransactionManager: ?

 

Hibernate:  

   
   



   
  

 TransactionManager: ?


//Spring SharedEntityManager supports EntityManagerFactory thru 
transactionManager: 

 
  
 

//transactionManager 

 
  
  
 


 

conclusion seems to be we can implement both the entityManager and 
transactionManager 
but only if wholly configured to use entityManagerFactory's (based on 
jpaVendorAdapter vendor specific configuration)

Martin Gainty 
__ 
Jogi és Bizalmassági kinyilatkoztatás/Verzicht und 
Vertraulichkeitanmerkung/Note de déni et de confidentialité


 
Ez az üzenet bizalmas.  Ha nem ön az akinek szánva volt, akkor kérjük, hogy 
jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése 
nem megengedett.  Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi 
alkalmazhatósága sincs.  Mivel az electronikus üzenetek könnyen 
megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet 
tartalma miatt.

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.



 

> To: user@struts.apache.org; vangj...@googlemail.com
> Subject: Re: i need more documentation on applicationContext.xml
> Date: Mon, 21 Jun 2010 10:04:57 -0400
> From: stur...@mit.edu
> 
> 
> On Mon, 21 Jun 2010 00:56:19 -0400, Jake Vang  
> wrote:
> 
> > hi, i've been reading and studying
> > http://struts.apache.org/2.0.14/docs/struts-2-spring-2-jpa-ajax.html.
> > i want to know what is actually going on in applicationContext.xml.
> > for example, what do these two lines do? please explain or refer me to
> > better documentation.
> >
> >  > class="org.springframework.orm.jpa.JpaTransactionManager">
> >  > />
> > 
> >
> > 
> >
> 
> Hi Jake,
> 
> This file holds the Spring configuration. You'll need to read up on Spring 
> - they have excellent documentation at:
> 
> http://www.springsource.org/
> 
> Steve
> 
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
  
_
Hotmail is redefining busy with tools for the New Busy. Get more from your 
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2

Re: i need more documentation on applicationContext.xml

2010-06-21 Thread Stephen Turner


On Mon, 21 Jun 2010 00:56:19 -0400, Jake Vang   
wrote:



hi, i've been reading and studying
http://struts.apache.org/2.0.14/docs/struts-2-spring-2-jpa-ajax.html.
i want to know what is actually going on in applicationContext.xml.
for example, what do these two lines do? please explain or refer me to
better documentation.

 
/>







Hi Jake,

This file holds the Spring configuration. You'll need to read up on Spring  
- they have excellent documentation at:


http://www.springsource.org/

Steve

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



i need more documentation on applicationContext.xml

2010-06-20 Thread Jake Vang
hi, i've been reading and studying
http://struts.apache.org/2.0.14/docs/struts-2-spring-2-jpa-ajax.html.
i want to know what is actually going on in applicationContext.xml.
for example, what do these two lines do? please explain or refer me to
better documentation.

 





-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org