[jboss-user] [JBoss Seam] - mapping entities in seam 2.0

maniappan do-not-reply at jboss.com
Wed Aug 22 01:29:39 EDT 2007


I am migrating my application which from 1.2.1 to 2.0Beta1.
Had mapped some Home objects using the relatedentites definitions in components.xml as mentioned below :

  | <!DOCTYPE components PUBLIC
  |   "-//JBoss/Seam Component Configuration DTD 2.0//EN"
  |   "http://jboss.com/products/seam/components-2.0.dtd"[
  | <!ENTITY relatedentities SYSTEM "classpath:///WEB-INF/specialcomponents.xml.txt">
  | ]>
  | 
and the specialcomponents.xml.txt had the mappings as [for example]:

  | <component class="org.jboss.seam.example.booking.HotelBookingAction" name="hotelBookingTest"/>
  | 
The file where the hotelBookingTest is injected has annotation specified as 

  | @In(create=true)
  | HotelBookingAction hotelBookingTest
  | 
This doesn't seem to work,  I get exception when the object where the hotelBookingTest gets created telling 

  | Caused by: javax.ejb.EJBTransactionRolledbackException: In attribute requires non-null value: register.hotelBookingTest
  | 

Is this  supported in Seam 2.0?

-- Mani.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076583#4076583

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076583



More information about the jboss-user mailing list