[jboss-user] [EJB 3.0] - Re: Migrating EJB3 Code from 4.2 to 5.0 and encountering [J

jriley do-not-reply at jboss.com
Wed Jan 21 10:31:59 EST 2009


I actually found the problem.   It was caused by my ejb-jar.xml entries

My entries were something like this:

<?xml version="1.0" encoding="UTF-8"?>
  | <ejb-jar version="3.0">
  | 	<enterprise-beans>
  | 		<session>
  | 			<ejb-name>PropertyService</ejb-name>
  | 			<remote>com.emageon.properties.service.PropertyService</remote>
  | 			<ejb-class>
  | 				com.emageon.properties.service.ejb.PropertyServiceBean
  | 			</ejb-class>
  | 			<session-type>Stateless</session-type>
  | 			<transaction-type>Container</transaction-type>
  | 		</session>
  | 	</enterprise-beans>
  | </ejb-jar>

The  tags need to be changed to <business-remote>.  Here is the corrected content.

<?xml version="1.0" encoding="UTF-8"?>
  | <ejb-jar version="3.0">
  | 
  | 	<enterprise-beans>
  | 		<session>
  | 			<ejb-name>PropertyService</ejb-name>
  | 			<business-remote>com.emageon.properties.service.PropertyService</business-remote>
  | 			<ejb-class>
  | 				com.emageon.properties.service.ejb.PropertyServiceBean
  | 			</ejb-class>
  | 			<session-type>Stateless</session-type>
  | 			<transaction-type>Container</transaction-type>
  | 		</session>
  | 	</enterprise-beans>
  | </ejb-jar>
  | 


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

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



More information about the jboss-user mailing list