On 2002.04.23 20:28:46 -0400 James Higginbotham wrote:
> That may be the case. The entity bean isn't using CMP 2.0 standards
> (abstract fields and such), but I noticed that if I changed the
> datasource in the standardjbosscmp-jdbc.xml file, things worked better
> (didn't use hsql by default - DefaultDS). 
> 
> So, do I use jbosscmp-jdbc.xml in place of jaws in my ejb.jar, 

yes

or do I
> deploy this file into the deploy directory like I would JMS
> configurations (I assume in place of jaws.xml in my meta-inf)?
> 
> Is the format of the enterprise-beans section the same as the older
> jaws.xml format (allowing for override of field types, etc)?

It allows much more, the format is similar, see the jbosscmp-jdbc_3_0.dtd
in server/src/resource/metadata I think (I may have the exact name wrong).

david jencks
> 
> Thanks,
> James
> 
> > -----Original Message-----
> > From: David Jencks [mailto:[EMAIL PROTECTED]] 
> > Sent: Tuesday, April 23, 2002 7:08 PM
> > To: James Higginbotham
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] create-table, jaws.xml and JBoss 3.0 beta2
> > 
> > 
> > Any chance you are using cmp2 in enough places so that 
> > jbosscmp-jdbc.xml would be the place to specify this?  I 
> > think the pm (jaws/cmp2) is specified somewhere in the 
> > container configuration.
> > 
> > david jencks
> > 
> > On 2002.04.23 19:05:20 -0400 James Higginbotham wrote:
> > > Can someone please tell me why the following entry in a 
> > jaws.xml file 
> > > inside my entity bean's jar continues to cause jboss to create the 
> > > table in mysql (named workflowstoragebean after the EJB) 
> > rather than 
> > > using the one specified in the jaws file (workflowejb)? When JBoss 
> > > creates the table, it creates a BLOB rather than LONGBLOB 
> > type for the 
> > > column and thus limits me to 65k bytes, which is not what I want. 
> > > Thus, I have defined the tablename for the CMP but jboss ignores it.
> > >  
> > >  <enterprise-beans>
> > >   <entity>
> > >    <ejb-name>WorkflowStorageBean</ejb-name>
> > >    <table-name>workflowejb</table-name>
> > >    <create-table>false</create-table>
> > >    <remove-table>false</remove-table>
> > >    <cmp-field>
> > >     <field-name>workflowId</field-name>
> > >     <column-name>workflowId</column-name>
> > >       <jdbc-type>VARCHAR</jdbc-type>
> > >       <sql-type>VARCHAR(64)</sql-type>
> > >    </cmp-field>
> > >    <cmp-field>
> > >     <field-name>data</field-name>
> > >     <column-name>data</column-name>
> > >        <jdbc-type>JAVA_OBJECT</jdbc-type>
> > >        <sql-type>BLOB</sql-type>
> > >    </cmp-field>
> > >  </entity>
> > >  </enterprise-beans>
> > > 
> > >  
> > > Thanks,
> > > James
> > > 
> > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 
> > > <HTML><HEAD><TITLE>Message</TITLE>
> > > <META http-equiv=Content-Type content="text/html; 
> > charset=us-ascii"> 
> > > <META content="MSHTML 6.00.2715.400" name=GENERATOR></HEAD> <BODY>
> > > <DIV><SPAN class=794470023-23042002><FONT face=Arial 
> > size=2>Can someone
> > > please 
> > > tell me why the following entry in a jaws.xml file inside my entity
> > > bean's jar 
> > > continues to cause jboss to create the table in mysql (named
> > > workflowstoragebean 
> > > after the EJB) rather than using the one specified in the jaws file 
> > > (workflowejb)? When JBoss creates the table, it creates a 
> > BLOB rather
> > > than 
> > > LONGBLOB type for the column and thus limits me to 65k 
> > bytes, which is
> > > not what 
> > > I want. Thus, I have defined the tablename for the CMP but 
> > jboss ignores
> > > it. 
> > > </FONT></SPAN></DIV>
> > > <DIV><SPAN class=794470023-23042002><FONT face=Arial 
> > > size=2></FONT></SPAN>&nbsp;</DIV>
> > > <DIV><SPAN class=794470023-23042002><FONT face=Arial 
> > > 
> > size=2>&nbsp;&lt;enterprise-beans&gt;<BR>&nbsp;&nbsp;&lt;entit
> > y&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;ejb-name&gt;WorkflowStorageBean
> > &lt;/ejb-name&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;table-name&gt;workf
> > lowejb&lt;/table-name&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;create-tabl
> > e&gt;false&lt;/create-table&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;remov
> > e-table&gt;false&lt;/remove-table&gt;<BR>&nbsp;&nbsp;&nbsp;&lt
> > ;cmp-field&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;field-name&gt;wo
> > rkflowId&lt;/field-name&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&lt;col
> > umn-name&gt;workflowId&lt;/column-name&gt;<BR>&nbsp;&nbsp;&nbs
> > p;&nbsp;&nbsp;
> > > 
> > > 
> > &lt;jdbc-type&gt;VARCHAR&lt;/jdbc-type&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;
> > > &nbsp;
> > > 
> > > 
> > &lt;sql-type&gt;VARCHAR(64)&lt;/sql-type&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;
> > > 
> > /cmp-field&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;cmp-field&gt;<BR>&nbsp;&nbsp;&
> > > 
> > nbsp;&nbsp;&lt;field-name&gt;data&lt;/field-name&gt;<BR>&nbsp;&nbsp;&n
> > > 
> > bsp;&nbsp;&lt;column-name&gt;data&lt;/column-name&gt;<BR>&nbsp;&nbsp;&
> > > nbsp;&nbsp;&nbsp;&nbsp;
> > > 
> > > 
> > &lt;jdbc-type&gt;JAVA_OBJECT&lt;/jdbc-type&gt;<BR>&nbsp;&nbsp;&nbsp;&n
> > > bsp;&nbsp;&nbsp;
> > > 
> > > 
> > &lt;sql-type&gt;BLOB&lt;/sql-type&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;/cmp-fi
> > > 
> > eld&gt;<BR>&nbsp;&lt;/entity&gt;<BR>&nbsp;&lt;/enterprise-bean
> > s&gt;<BR></FONT></SPAN></DIV>
> > > <DIV><SPAN class=794470023-23042002><FONT face=Arial 
> > > size=2></FONT></SPAN>&nbsp;</DIV>
> > > <DIV><SPAN class=794470023-23042002><FONT face=Arial 
> > > size=2>Thanks,</FONT></SPAN></DIV>
> > > <DIV><SPAN class=794470023-23042002><FONT face=Arial 
> > > size=2>James</DIV></FONT></SPAN></BODY></HTML>
> > > 
> > 
> 
> 

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to