[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: identifier of an instance of ... was altered from 1 to 0

2006-06-20 Thread anotherjavaguy
Any resolution on this. I'm getting this on a bean also..it used towork before 
I started playing with some things and now I cant figure out what I've done 
wrong. 

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

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


___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: FK- Insert and PostEJBCreate

2005-08-23 Thread anotherjavaguy
OK, just to close this out...
This configuration setting should do it. 


  |  
  |   
  |  INSERT after ejbPostCreate 
Container
  |  true
  |   
  |
  | 

I added this to my merge directory in xdoclet and it gets included in the 
jboss.xml

I didnt have much luck though with the redeploy so i changed the base 
configurations settings in the jboss.xml in the conf directory directly 
undeployed, cycled etc and now it seems to wait until after the post to do the 
insert. 





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

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


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: FK- Insert and PostEJBCreate

2005-08-23 Thread anotherjavaguy
OK It looks like there is a container configuration setting for the jboss.xml 
that will do the  inserts on post creates. 

...now to figure out how to do it with xdoclet?

anyone have an example?



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

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


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Configuring JNDI ConnectionFactory

2005-08-23 Thread anotherjavaguy
I'm new to jboss too so forgive if I ask stuff you already tried. 

Have you created a -ds.xml file in your deploy directory that binds to this 
jndi name?



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

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


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - FK- Insert and PostEJBCreate

2005-08-23 Thread anotherjavaguy
I have a couple of CMP EBs involved in a CMR and am having problems with the 
create. 

For example. ( I'll change the real object to make it easier to understand)

An auction is created with an owner. The owner_id in the auction table is a fk 
and it is not null. In other wors you must do the insert knowing the owner. 

I've set all the realtionships up and it looks like several other examples I've 
seen. In my create for auction i set its values from a vo  and pass the 
ownerLocal to the create. In the postcreate I set the owner for the new auction 
bean. I cant set the owner before because the spec wont allow me to call a cmr 
field in the create. 

Problem is that since the fk is not null in the database, it looks like the 
insert is attempted then the post create called. This would work if my fk was 
nullable as I assume I'd then get an update with the fk in postcreate. However 
my fk is not null so i get the can insert null sql error on the create. 

In WL and maybe some other containers you could tell the insert to wait until 
postcreate to do the insert and I think thats how I have gotten around this 
issue before. 

Is that possible with jboss?

OR is my problem entirely something else? Can you do the fk insert in the 
create? 





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

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


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Entity EJB - DataSource

2005-08-19 Thread anotherjavaguy
Ahh man . Talk about stupid mistakes. 

Dang I thought it just looked for the cmp-jdbc kind of like the ds.xml on the 
datasource stuff. 

Sigh..I'll just skulk away now embarassed


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

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


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Re: Entity EJB - DataSource

2005-08-18 Thread anotherjavaguy
Thanks for responding

I'm deploying as an ear but have attached the contents of the ejb jar file. I 
think the structure is fine since it deploys on wl8.1 fine using the wl 
descriptors. But I'll take any comments I can get. 
META-INF/
META-INF/MANIFEST.MF
META-INF/ejb-jar.xml
META-INF/jboss-cmp-jdbc.xml
META-INF/jboss.xml
com/
com/bn/
com/bn/ejb/
com/bn/ejb/appuser/
com/bn/ejb/appuser/ApplicationUserFacade.class
com/bn/ejb/appuser/ApplicationUserFacadeBean.class
com/bn/ejb/appuser/ApplicationUserFacadeHome.class
com/bn/ejb/appuser/ApplicationUserFacadeRemote.class
com/bn/ejb/appuser/eb/
com/bn/ejb/appuser/eb/ApplicationUserBean.class
com/bn/ejb/appuser/eb/ApplicationUserLocal.class
com/bn/ejb/appuser/eb/ApplicationUserLocalHome.class
com/bn/ejb/appuser/eb/ApplicationUserPK.class
com/bn/ejb/common/
com/bn/ejb/common/EAEnterpriseBean.class
com/bn/ejb/common/EAMessageDrivenBean.class
com/bn/ejb/common/EASessionBean.class
com/bn/ejb/common/EAStatelessSessionBean.class
com/bn/ejb/deal/
com/bn/ejb/deal/DealFacade.class
com/bn/ejb/deal/DealFacadeBean.class
com/bn/ejb/deal/DealFacadeHome.class
com/bn/ejb/deal/DealFacadeRemote.class
com/bn/ejb/deal/eb/
com/bn/ejb/deal/eb/ArrangerBean.class
com/bn/ejb/deal/eb/ArrangerLocal.class
com/bn/ejb/deal/eb/ArrangerLocalHome.class
com/bn/ejb/deal/eb/DealBean.class
com/bn/ejb/deal/eb/DealLocal.class
com/bn/ejb/deal/eb/DealLocalHome.class
com/bn/ejb/deal/eb/DealPK.class
com/bn/ejb/message/
com/bn/ejb/message/InviteUser.class
com/bn/rmi/
com/bn/rmi/Callback.class
com/bn/rmi/CallbackClient.class
com/bn/rmi/CallbackClientIntf.class
com/bn/rmi/CallbackImpl.class
com/bn/rmi/DataObject.class

Here is also the cmp xml file. I totally guessed on some of the differences 
between servers so I'm sure there something wrong here..among other places. 
It's huge so I'll just include the first entity. 


  | 
  | 
  | http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_4_0.dtd'>
  | 
  | 
  | java:jdbc/Assets
  | 
  | 
  | 
  | 
  | 
  | DealEJB
  | Deal
  |  
  | 
dealIdDEAL_ID
 
  | 
createdByUserIdCREATED_BY_USER_ID
 
  | 
createdDtmCREATED_DTM
 
  | 
modifiedByUserIdMODIFIED_BY_USER_ID
   
  | 
modifiedDtmMODIFIED_DTM
   
  | 
applicationUserIdAPPLICATION_USER_ID
  
  | 
productTypeIdPRODUCT_TYPE_ID
  
  | 
visibilityTypeIdVISIBILITY_TYPE_ID

  | 
amountAMOUNT
  
  | 
displayPeriodDaysDurDISPLAY_PERIOD_DAYS_DUR
   
  | 
visibleFlagVISIBLE_FLAG
   
  | 
publicPrivateIdPUBLIC_PRIVATE_ID
  
  | 
adminApproverApplUserIdADMIN_APPROVER_APPL_USER_ID

  | 
adminApprovalDtmADMIN_APPROVAL_DTM

  | 
bidStartDtmBID_START_DTM
  
  | 
bidEndDtmBID_END_DTM
  
  | 
closeDtmCLOSE_DTM
 
  | 
hideDtmHIDE_DTM
   
  | 
dealDescDEAL_DESC
 
  | 
creditRatingTxtCREDIT_RATING_TXT
  
  | 
amountCurrencyCdAMOUNT_CURRENCY_CD

  | 
quantityQUANTITY
  
  | 
quantityUomIdQUANTITY_UOM_ID
  
  | 
dealFrozenFlagDEAL_FROZEN_FLAG

  | 
inviteeEmailMessageTxtINVITEE_EMAIL_MESSAGE_TXT
   
  | 
issuingEntityLegalNameISSUING_ENTITY_LEGAL_NAME
   
  | 
invitedTotalAmtINVITED_TOTAL_AMT
  | 
invitedTotalCntINVITED_TOTAL_CNT
  
  | 
  | java.lang.Integer
  | dealId
  | DEAL_ID
  | INTEGER
  | NUMBER(10)  
  |
  | 
  | 
  | 
  | deal_seq  
  | 
  | 
  | 

Let me know if I can give you anymore info. Thanks for taking the time to look 
at it. 


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

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


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Beginners Corner] - Entity EJB - DataSource

2005-08-18 Thread anotherjavaguy
Trying to move a few EJBs from wl to jboss for the first time. I've deployed 
the beans but can't seem to get the DataSource Mapping set up corretly. 

I have an oracle-ds.xml file deployed and the console tells me that it binds 
the jndi names.  I assume that means the connections went ok but not sure. 

However when I try and use that jndi-name in my jboss-cmp-jdbc.xml file as the 
dafault datasource for my entity beans the finder methods dont return anything. 
I dont get any db errors, just either nulls or finder exceptions( no entity 
exists)

I am using
default
datasource


I can change the jndi name in that file to a nonesense jndiname and I get the 
same results, so I guess am just not setting up the datasource for these entity 
beans correclty.

Any pointers would be appreciated. 



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

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


---
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user