User: oleg
Date: 00/06/21 00:46:21
Modified: src/main/org/jboss/ejb Container.java
StatefulSessionContainer.java
Log:
Typos fixed
Revision Changes Path
1.16 +2 -2 jboss/src/main/org/jboss/ejb/Container.java
Index: Container.java
===================================================================
RCS file: /products/cvs/ejboss/jboss/src/main/org/jboss/ejb/Container.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- Container.java 2000/06/20 09:08:49 1.15
+++ Container.java 2000/06/21 07:46:21 1.16
@@ -63,14 +63,14 @@
* @see ContainerFactory
* @author Rickard �berg ([EMAIL PROTECTED])
* @author <a href="[EMAIL PROTECTED]">Marc Fleury</a>
- * @version $Revision: 1.15 $
+ * @version $Revision: 1.16 $
*/
public abstract class Container
{
// Constants -----------------------------------------------------
// This is used in Class name comparisons
- protected static final String EJB_OBJECT = "javax.ejx.EJBObject";
+ protected static final String EJB_OBJECT = "javax.ejb.EJBObject";
// Attributes ----------------------------------------------------
1.12 +27 -13 jboss/src/main/org/jboss/ejb/StatefulSessionContainer.java
Index: StatefulSessionContainer.java
===================================================================
RCS file:
/products/cvs/ejboss/jboss/src/main/org/jboss/ejb/StatefulSessionContainer.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- StatefulSessionContainer.java 2000/06/20 09:08:49 1.11
+++ StatefulSessionContainer.java 2000/06/21 07:46:21 1.12
@@ -31,7 +31,7 @@
*
* @see <related>
* @author Rickard �berg ([EMAIL PROTECTED])
- * @version $Revision: 1.11 $
+ * @version $Revision: 1.12 $
*/
public class StatefulSessionContainer
extends Container
@@ -397,8 +397,22 @@
Method[] m = homeInterface.getMethods();
for (int i = 0; i < m.length; i++)
{
- // Implemented by container
- map.put(m[i], getClass().getMethod(m[i].getName()+"Home",
m[i].getParameterTypes()));
+ try
+ {
+ // Implemented by container
+ if (m[i].getName().equals("create"))
+ {
+ map.put(m[i], getClass().getMethod("createHome", new Class[] {
MethodInvocation.class }));
+ }
+ else
+ {
+ map.put(m[i], getClass().getMethod(m[i].getName()+"Home",
m[i].getParameterTypes()));
+
+ }
+ } catch (NoSuchMethodException e)
+ {
+ System.out.println(m[i].getName() + " in bean has not been mapped");
+ }
}
homeMapping = map;
@@ -412,23 +426,23 @@
Method[] m = remoteInterface.getMethods();
for (int i = 0; i < m.length; i++)
{
- if (!m[i].getDeclaringClass().getName().equals(EJB_OBJECT))
+ try
{
- // Implemented by bean
- map.put(m[i], beanClass.getMethod(m[i].getName(),
m[i].getParameterTypes()));
+ if (!m[i].getDeclaringClass().getName().equals(EJB_OBJECT))
+ {
+ // Implemented by bean
+ map.put(m[i], beanClass.getMethod(m[i].getName(),
m[i].getParameterTypes()));
- }
- else
- {
- try
+ }
+ else
{
// Implemented by container
map.put(m[i], getClass().getMethod(m[i].getName(), new Class[] {
MethodInvocation.class }));
- } catch (NoSuchMethodException e)
- {
- System.out.println(m[i].getName() + " in bean has not been mapped");
}
+ } catch (NoSuchMethodException e)
+ {
+ System.out.println(m[i].getName() + " in bean has not been mapped");
}
}