Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • ejb-name - identifies the EJB that these settings apply to; this should match the ejb-name for the EJB in ejb-jar.xml
  • jndi-name - the Home interface for the EJB is registered in JNDI at the address specified here; this global JNDI name is used by application clients to connect to this EJB (while it can be used by other server-side components, EJB references are the recommended approach); it is only meaningful if the EJB has a (remote) Home interface.
  • local-jndi-name - the LocalHome interface for the EJB is registered in JNDI at the address specified here; this global JNDI name can be used by other server-side components that want to use this EJB, though the recommended approach is to define and use a local EJB reference instead; it is only meaningful if the EJB has a LocalHome interface.
  • tssGroup - this is a set of elements that contains CORBA security settings, for EJBs exposed as CORBA objects; it is not necessary if the EJB will not be accessed via CORBA.
  • openejb-jndiEnvironmentRefsGroup - a set of elements that handle resolving references declared by the current Session bean (including EJB references, Resource references, and Web Service references).

Back to Top

...

Set the JNDI properties

Edit the jndi.properties file located in in the <session_home>/jndi directory as shown in the following example:

...

Build the Seesion Bean application by typing maven from the <session_home> directory. This will create the session-ejb-SNAPSHOT.jar file in the <session_home>/target directory.

Back to Top

Modify the WAR files

Open the web.xml file located in the <session_home>/src/webapp/WEB-INF directory and comment out the following taglib element:

Code Block
xml
xml
borderStylesolid
titleExcerpt from the web.xml file

...
<!--	 <taglib>
	 	<taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
		<taglib-location>/WEB-INF/tld/c.tld</taglib-location>
	</taglib> -->
...

Open the two jsp files, stateless.jsp and stateful.jsp located in the <session_home>/src/webapp directory and make sure the following line is present:

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>

Back to Top

Back to Top

Deploy the migrated application

...