title: There is JBAS011469 error when the app trying to write data to db. (JBossAS7, MySql)
body: <p>I am newbie in the Java EE world. To improve my programming experience I chose the JBoss Developer Studio, and the JBoss AS 7 server with MySQL database. I use these tools in Fedora 20.
  JBoss has a sample application (<a href="https://dl.dropboxusercontent.com/u/827503/44ums/jboss-as-kitchensink.zip" rel="nofollow noreferrer">jboss-as-kitchensink.zip</a> ) and I would like to create my own simple sample application like this example. The kitchensink sample use xml to store data, I'm using MySql. 
  I cannot insert to data from jsf page. If I tried I've got this message to the console: </p>
  
  <pre><code>INFO [com.itemsapp.service.ItemInsertion] (http-localhost-127.0.0.1-8080-1) Inserting Lenovo 
  INFO [javax.enterprise.resource.webcontainer.jsf.renderkit] (http-localhost-127.0.0.1-8080-1) WARNING: FacesMessage(s) have been enqueued, but may not have been displayed. 
  sourceId=null[severity=(ERROR 2), summary=(JBAS011469: Transaction is required to perform this operation (either use a transaction or extended persistence context)), detail=(Insertation unsuccessful)] 
  </code></pre>
  
  <p>But if I insterted data maunaly, I could get the that from the database <img src="https://i.stack.imgur.com/GvMp2.png" alt="as you can see here"> . </p>
  
  <pre><code>INSERT INTO `itemsapp`.`ITEM`(`ITEM_ID`,`ITEM_PRICE`,`MODEL_NO`,`NAME`,`TOTAL_NO`)VALUES(1,250,"Inspiron 3520","DELL",12);
  SELECT * FROM itemsapp.ITEM; 
  </code></pre>
  
  <p>I archived my project from jbdevstudio <a href="https://dl.dropboxusercontent.com/u/827503/44ums/ItemsApp_jsf_kts.zip" rel="nofollow noreferrer">https://dl.dropboxusercontent.com/u/827503/44ums/ItemsApp_jsf_kts.zip</a> . </p>
  
  <p>What am i doing wrong?</p>
  
  <p>Does someone have any idea how to change this code? </p>
  
  <p>Thank you in advance for any help you can provide. </p>
  
  <p>P.S.: The links points Dropbox links. </p>