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> </DIV> > > > <DIV><SPAN class=794470023-23042002><FONT face=Arial > > > > > size=2> <enterprise-beans><BR> <entit > > y><BR> <ejb-name>WorkflowStorageBean > > </ejb-name><BR> <table-name>workf > > lowejb</table-name><BR> <create-tabl > > e>false</create-table><BR> <remov > > e-table>false</remove-table><BR> < > > ;cmp-field><BR> <field-name>wo > > rkflowId</field-name><BR> <col > > umn-name>workflowId</column-name><BR> &nbs > > p; > > > > > > > > <jdbc-type>VARCHAR</jdbc-type><BR> > > > > > > > > > > > <sql-type>VARCHAR(64)</sql-type><BR> < > > > > > /cmp-field><BR> <cmp-field><BR> & > > > > > nbsp; <field-name>data</field-name><BR> &n > > > > > bsp; <column-name>data</column-name><BR> & > > > nbsp; > > > > > > > > <jdbc-type>JAVA_OBJECT</jdbc-type><BR> &n > > > bsp; > > > > > > > > <sql-type>BLOB</sql-type><BR> </cmp-fi > > > > > eld><BR> </entity><BR> </enterprise-bean > > s><BR></FONT></SPAN></DIV> > > > <DIV><SPAN class=794470023-23042002><FONT face=Arial > > > size=2></FONT></SPAN> </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
