Dear all,

since this is my first submission, first of all a big "Hello" to
everyone. Now for the problem:

I´m using JOnAS 4.7.4 together with ObjectWebs Lomboz
(3.2RC2-200608081203) and XDoclet 1.2.3, trying to rewrite a JBoss
application for JOnAS.

There is an entity bean I´m currently working on, but it seems the
corresponding JOnAS tags are not interpreted right and the final
deployment-descriptor (jonas-ejb-jar.xml) is missing some content. 

Here the tags of the corresponding bean:

---------------------------------8<-----------------------------
/**
 * @ejb.bean 
 *   name="AccessSessionEntity" display-name="Name for
 *   AccessSessionEntity" description="Description for
 *   AccessSessionEntity"
 *   jndi-name="ejb/emayor/sh/entity/AccessSessionEntity" 
 *   type="CMP"
 *   cmp-version="2.x" 
 *   view-type="local" 
 *   primkey-field = "asid" 
 *           
 * @jboss.persistence 
 *   table-name = "ACCESS_SESSION" 
 *   create-table = "true"
 *   datasource = "java:/MySqlDS" 
 *   datasource-mapping = "mySQL"
 *   remove-table = "true"
 * @ejb.finder 
 *   method-intf = "LocalHome" 
 *   query = "SELECT DISTINCT OBJECT(o) FROM
 *            AccessSessionEntity AS o WHERE o.userId = ?1" 
 *   result-type-mapping = "Local" 
 *   signature = "java.util.Collection findByUserId(java.lang.String
userId)"
 * @ejb.finder method-intf = "LocalHome" 
 *   query = "SELECT DISTINCT OBJECT(o) FROM
 *            AccessSessionEntity AS o" 
 *   result-type-mapping = "Local" 
 *   signature = "java.util.Collection findAll()"
 * 
 * @ejb:transaction type="Required"
 * 
 * @ejb.home
 *
local-class="org.emayor.servicehandling.interfaces.AccessSessionLocalHome"
 * @ejb.interface
 *
local-class="org.emayor.servicehandling.interfaces.AccessSessionLocal"
 * @ejb:pk
 *   class="java.lang.String"
 * 
 * @ejb.persistence table-name="ACCESS_SESSION"            
 * 
 * @jonas.bean
 *   ejb-name="AccessSessionEntity"
 *   jndi-name="ejb/emayor/sh/entity/AccessSessionEntity"
 *   automatic-pk-field-name="asid"
 *   cleanup="removeall"
 *                         
 * @jonas.jdbc-mapping
 *   jndi-name="java:/MySqlDS"
 *   jdbc-table-name="ACCESS_SESSION"
 *   automatic-pk="true"
 * 
 * @jonas.session-timeout session-timeout="60"
 *   
 */

public abstract class AccessSessionEntityEJB implements EntityBean {
....
--------------------------------->8-----------------------------


Now for the output regarding to that EJB, taken from jonas-ejb-jar.xml:
--------------------------------8<------------------------------
<jonas-ejb-jar>
....
  <jonas-entity>      

    <ejb-name>AccessSessionEntity</ejb-name>
    <jndi-name>ejb/emayor/sh/entity/AccessSessionEntity</jndi-name>

    <jdbc-mapping>
      <jndi-name>java:/MySqlDS</jndi-name>
    </jdbc-mapping>

  </jonas-entity>
....
</jonas-ejb-jar>
--------------------------------->8-----------------------------

Finally, I´m posting this one here, because I´ve searched almost
everywhere and did not find a solution (or even the problem itself) so
far.

Any suggestions or ideas what I? did wrong?
Thanks in advance :) 

Best Regards,
Max

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to