Oh berarti accidentally ada 2 spring context dong yah?

Berarti gue bener dong... hibernate nya gak nyambung sama (salah satu) spring 
context nya... 

Hahahhaa

Ngeyel... :p

 

 

Adelwin Handoyo  |  Senior Consultant - Wholesale Bank
Standard Chartered Bank
7, Changi Business Park Cresent, Level 3. Singapore (486028)

T : (65) 659 61395  | E [email protected] 

 

 

________________________________

From: [email protected] [mailto:[email protected]] On 
Behalf Of joshua sitopul
Sent: Monday, May 10, 2010 3:38 AM
To: [email protected]
Subject: Re: [JUG-Indonesia] Spring HQL Error : 
org.hibernate.HibernateException: createQuery is not valid without active 
transaction

 

  

 

         

        > Ya saya kan udah bilang di posting di atas, jangan pakai wildcard.
        Akibatnya, kita jadi gak tau @Servicenya dideteksi sama xml yang mana,
        soalnya ada 2 xml dan 2-2nya base packagenya *.
        Pakai wildcard gpp, tapi jangan cuma *, kasi prefix supaya lebih
        terkontrol xml mana ngeload bean yang mana.
        
        Di referensinya Spring juga sudah diingatkan, bahwa
        tx:annotation-driven hanya memproses yang diload oleh XML tempat dia
        dideklarasikan.
        
        
http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/transaction.html#transaction-declarative-annotations
 
<http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/transaction.html#transaction-declarative-annotations>
 

         

Iya, di atas memang uda dikasih tau..tapi salah salah taruh di 
springapp-servlet.xml kemarin..sekarang baru mengerti tx:annotation-driven 
setelah baca dari blog dan referensi dari springnya..

Oh ya, yang penjelasan soal service pakai interface akan dibuatkan kelas proxy 
oleh spring. Mengapa kalau saya tidak pakai interface di service tidak terjadi 
apa-apa ?? tetap berjalan seperti biasanya ?? 




This email and any attachments are confidential and may also be privileged.  If 
you are not the addressee, do not disclose, copy, circulate or in any other way 
use or rely on the information contained in this email or any attachments.  If 
received in error, notify the sender immediately and delete this email and any 
attachments from your system.  Emails cannot be guaranteed to be secure or 
error free as the message and any attachments could be intercepted, corrupted, 
lost, delayed, incomplete or amended.  Standard Chartered PLC and its 
subsidiaries do not accept liability for damage caused by this email or any 
attachments and may monitor email traffic.

 

Standard Chartered PLC is incorporated in England with limited liability under 
company number 966425 and has its registered office at 1 Aldermanbury Square, 
London, EC2V 7SB.

 

Standard Chartered Bank ("SCB") is incorporated in England with limited 
liability by Royal Charter 1853, under reference ZC18.  The Principal Office of 
SCB is situated in England at 1 Aldermanbury Square, London EC2V 7SB. In the 
United Kingdom, SCB is authorised and regulated by the Financial Services 
Authority under FSA register number 114276.

 

If you are receiving this email from SCB outside the UK, please click 
http://www.standardchartered.com/global/email_disclaimer.html to refer to the 
information on other jurisdictions.

Kirim email ke