-
1. Re: EJB2.0 entity bean configuration files
sfcoy Oct 11, 2012 6:04 PM (in response to chandrarsa)You will also likely need a jboss-ejb3.xml file (which replaces the old jboss.xml file).
But developing CMP entity beans instead of using JPA is certainly not "best practice" in any sense as it requires a much higher degree of technical knowledge (amongst other things).
-
2. Re: EJB2.0 entity bean configuration files
chandrarsa Oct 12, 2012 12:46 AM (in response to sfcoy)I can see lot of difference EJB2.0, EJB3.0 Entity beans, In EJB3.0 each Entity bean is required one stateless session bean. EJB3.0 is good for new implementation projects because EJB configuration files are avoid in this release. Entity beans are deprecated in this release. Server migration is also flexible in future with EJB3.0.
I feel, EJB migration not good, when work on server migration projects until forcibly EJB migration is required because code has to be updated and plenty unit testing is required and JPA knowledge is required.
Hope I am sync with you.
-
3. Re: EJB2.0 entity bean configuration files
sfcoy Oct 12, 2012 1:10 AM (in response to chandrarsa)So you are really migrating an existing application, rather than developing something new?
If so, from which server implementation are you migrating?
-
4. Re: EJB2.0 entity bean configuration files
chandrarsa Oct 12, 2012 5:53 AM (in response to sfcoy)Yes, it is existing application.
weblogic
-
5. Re: EJB2.0 entity bean configuration files
sfcoy Oct 12, 2012 6:21 AM (in response to chandrarsa)How many CMP entity beans do you have?
I know from past experience that migrating CMP between vendors can be challenging to say the least.
Are they marked up with xdoclet by any chance? That would make it easier.
-
6. Re: EJB2.0 entity bean configuration files
chandrarsa Oct 14, 2012 11:27 PM (in response to sfcoy)60+ CMP's
Not used xdoclets.
-
7. Re: EJB2.0 entity bean configuration files
sfcoy Oct 15, 2012 12:05 AM (in response to chandrarsa)How complicated is/are your weblogic-cmp-jar.xml file/s? The content of this would need to be converted/translated to corresponding jbosscmp-jdbc.xml (schema available at https://github.com/jbossas/jboss-as/blob/master/cmp/src/main/resources/standardjbosscmp-jdbc.xml).
Do you need 100% compatibility with your existing database?
-
8. Re: EJB2.0 entity bean configuration files
chandrarsa Oct 15, 2012 12:27 AM (in response to sfcoy)Yes 100% is required.
Our CMP's are completly mapped to DB.Even AUTO key generation and table relalation.
-
9. Re: EJB2.0 entity bean configuration files
sfcoy Oct 15, 2012 12:43 AM (in response to chandrarsa)Sorry, the link above refers to the actual schema at http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_4_0.dtd.
I think this is a big undertaking.