[jboss-svn-commits] JBL Code SVN: r5417 - in labs/jbossesb/branches/ejb3/product: core/services core/services/src/META-INF core/services/src/org/jboss/soa/esb/services core/services/src/org/jboss/soa/esb/services/EJB lib/ext
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Aug 2 16:29:51 EDT 2006
Author: kurt.stam at jboss.com
Date: 2006-08-02 16:29:46 -0400 (Wed, 02 Aug 2006)
New Revision: 5417
Added:
labs/jbossesb/branches/ejb3/product/lib/ext/jboss-ejb3x.jar
Removed:
labs/jbossesb/branches/ejb3/product/core/services/src/META-INF/ejb-jar.xml
labs/jbossesb/branches/ejb3/product/core/services/src/META-INF/jboss.xml
labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/BatchHandlerHome.java
labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/BatchHandlerLocal.java
labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/BatchHandlerLocalHome.java
labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/NotificationHandlerHome.java
labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/NotificationHandlerLocal.java
labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/NotificationHandlerLocalHome.java
labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/PersistHandlerHome.java
labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/PersistHandlerLocal.java
labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/PersistHandlerLocalHome.java
Modified:
labs/jbossesb/branches/ejb3/product/core/services/build.xml
labs/jbossesb/branches/ejb3/product/core/services/src/META-INF/application.xml
labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerBsDelegateLocal.java
labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerBsDelegateRemote.java
labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/BatchHandler.java
labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/BatchHandlerBean.java
labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/NotificationHandler.java
labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/NotificationHandlerBean.java
labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/PersistHandler.java
labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/PersistHandlerBean.java
labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/NotifHandlerBsDelegateLocal.java
labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/NotifHandlerBsDelegateRemote.java
labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerBsDelegateLocal.java
labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerBsDelegateRemote.java
Log:
Adding ejb3 support
Modified: labs/jbossesb/branches/ejb3/product/core/services/build.xml
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/build.xml 2006-08-02 19:02:57 UTC (rev 5416)
+++ labs/jbossesb/branches/ejb3/product/core/services/build.xml 2006-08-02 20:29:46 UTC (rev 5417)
@@ -134,7 +134,7 @@
<!-- =================================================================== -->
<!-- Initialise -->
<!-- =================================================================== -->
- <target name="ejbdoclet" depends="org.jboss.esb.services.initXdoclet">
+ <target name="ejb3doclet" depends="org.jboss.esb.services.initXdoclet">
<echo>+---------------------------------------------------+</echo>
<echo>| |</echo>
@@ -183,22 +183,13 @@
<!-- Jar -->
<!-- =================================================================== -->
<target name="jar" description="Assemble jar files"
- depends="org.jboss.esb.services.compile,ejbdoclet"
+ depends="org.jboss.esb.services.compile"
>
- <jar destfile="${org.jboss.esb.services.dist.dir}/lib/jbossesb-services-client.jar"
+ <jar destfile="${org.jboss.esb.services.dist.dir}/lib/jbossesb-services.jar"
basedir="${org.jboss.esb.services.classes.dir}"
includes="**/*.class"
excludes="**/EJBs/*Bean*"
/>
- <jar destfile="${org.jboss.esb.services.dist.dir}/lib/jbossesb-services.jar"
- basedir="${org.jboss.esb.services.classes.dir}"
- includes="**/EJBs/*.class"
- manifest="${org.jboss.esb.services.metainf.dir}/manifest.server"
- >
- <metainf dir="${org.jboss.esb.services.metainf.dir}" includes="*.xml"
- excludes="application.xml"
- />
- </jar>
<antcall target="-ear"/>
</target>
Modified: labs/jbossesb/branches/ejb3/product/core/services/src/META-INF/application.xml
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/META-INF/application.xml 2006-08-02 19:02:57 UTC (rev 5416)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/META-INF/application.xml 2006-08-02 20:29:46 UTC (rev 5417)
@@ -8,4 +8,13 @@
<module>
<ejb>jbossesb-services.jar</ejb>
</module>
-</application>
+ <module>
+ <java>jbossesb-listeners.jar</java>
+ </module>
+ <module>
+ <java>jbossesb-processors.jar</java>
+ </module>
+ <module>
+ <java>jbossesb-common.jar</java>
+ </module>
+</application>
\ No newline at end of file
Deleted: labs/jbossesb/branches/ejb3/product/core/services/src/META-INF/ejb-jar.xml
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/META-INF/ejb-jar.xml 2006-08-02 19:02:57 UTC (rev 5416)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/META-INF/ejb-jar.xml 2006-08-02 20:29:46 UTC (rev 5417)
@@ -1,132 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
-
-<ejb-jar >
-
- <description><![CDATA[Jboss ESB]]></description>
- <display-name>Generated by XDoclet</display-name>
-
- <enterprise-beans>
-
- <!-- Session Beans -->
- <session >
- <description><![CDATA[NotificationHandler]]></description>
- <display-name>Jboss_Esb_Notification_Handler</display-name>
-
- <ejb-name>NotificationHandler</ejb-name>
-
- <home>org.jboss.soa.esb.services.EJB.NotificationHandlerHome</home>
- <remote>org.jboss.soa.esb.services.EJB.NotificationHandler</remote>
- <local-home>org.jboss.soa.esb.services.EJB.NotificationHandlerLocalHome</local-home>
- <local>org.jboss.soa.esb.services.EJB.NotificationHandlerLocal</local>
- <ejb-class>org.jboss.soa.esb.services.EJB.NotificationHandlerBean</ejb-class>
- <session-type>Stateless</session-type>
- <transaction-type>Container</transaction-type>
-
- </session>
-
- <session >
- <description><![CDATA[]]></description>
- <display-name>Jboss_ESB_PERSIST_HANDLER</display-name>
-
- <ejb-name>PersistHandler</ejb-name>
-
- <home>org.jboss.soa.esb.services.EJB.PersistHandlerHome</home>
- <remote>org.jboss.soa.esb.services.EJB.PersistHandler</remote>
- <local-home>org.jboss.soa.esb.services.EJB.PersistHandlerLocalHome</local-home>
- <local>org.jboss.soa.esb.services.EJB.PersistHandlerLocal</local>
- <ejb-class>org.jboss.soa.esb.services.EJB.PersistHandlerBean</ejb-class>
- <session-type>Stateless</session-type>
- <transaction-type>Bean</transaction-type>
-
- </session>
-
- <session >
- <description><![CDATA[]]></description>
- <display-name>Jboss_Esb_Batch_Handler</display-name>
-
- <ejb-name>BatchHandler</ejb-name>
-
- <home>org.jboss.soa.esb.services.EJB.BatchHandlerHome</home>
- <remote>org.jboss.soa.esb.services.EJB.BatchHandler</remote>
- <local-home>org.jboss.soa.esb.services.EJB.BatchHandlerLocalHome</local-home>
- <local>org.jboss.soa.esb.services.EJB.BatchHandlerLocal</local>
- <ejb-class>org.jboss.soa.esb.services.EJB.BatchHandlerBean</ejb-class>
- <session-type>Stateful</session-type>
- <transaction-type>Bean</transaction-type>
-
- </session>
-
- <!--
- To add session beans that you have deployment descriptor info for, add
- a file to your XDoclet merge directory called session-beans.xml that contains
- the <session></session> markup for those beans.
- -->
-
- <!-- Entity Beans -->
- <!--
- To add entity beans that you have deployment descriptor info for, add
- a file to your XDoclet merge directory called entity-beans.xml that contains
- the <entity></entity> markup for those beans.
- -->
-
- <!-- Message Driven Beans -->
- <!--
- To add message driven beans that you have deployment descriptor info for, add
- a file to your XDoclet merge directory called message-driven-beans.xml that contains
- the <message-driven></message-driven> markup for those beans.
- -->
-
- </enterprise-beans>
-
- <!-- Relationships -->
-
- <!-- Assembly Descriptor -->
- <!--
- To specify your own assembly descriptor info here, add a file to your
- XDoclet merge directory called assembly-descriptor.xml that contains
- the <assembly-descriptor></assembly-descriptor> markup.
- -->
-
- <assembly-descriptor >
- <!--
- To specify additional security-role elements, add a file in the merge
- directory called ejb-security-roles.xml that contains them.
- -->
-
- <!-- method permissions -->
- <!--
- To specify additional method-permission elements, add a file in the merge
- directory called ejb-method-permissions.ent that contains them.
- -->
-
- <!-- transactions -->
- <!--
- To specify additional container-transaction elements, add a file in the merge
- directory called ejb-container-transactions.ent that contains them.
- -->
- <container-transaction >
- <method >
- <ejb-name>NotificationHandler</ejb-name>
- <method-name>*</method-name>
- </method>
- <trans-attribute>Required</trans-attribute>
- </container-transaction>
-
- <!-- finder transactions -->
-
- <!-- message destinations -->
- <!--
- To specify additional message-destination elements, add a file in the merge
- directory called ejb-message-destinations.ent that contains them.
- -->
-
- <!-- exclude list -->
- <!--
- To specify an exclude-list element, add a file in the merge directory
- called ejb-exclude-list.xml that contains it.
- -->
- </assembly-descriptor>
-
-</ejb-jar>
Deleted: labs/jbossesb/branches/ejb3/product/core/services/src/META-INF/jboss.xml
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/META-INF/jboss.xml 2006-08-02 19:02:57 UTC (rev 5416)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/META-INF/jboss.xml 2006-08-02 20:29:46 UTC (rev 5417)
@@ -1,54 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.2//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd">
-
-<jboss>
-
- <enterprise-beans>
-
- <!--
- To add beans that you have deployment descriptor info for, add
- a file to your XDoclet merge directory called jboss-beans.xml that contains
- the <session></session>, <entity></entity> and <message-driven></message-driven>
- markup for those beans.
- -->
-
- <session>
- <ejb-name>NotificationHandler</ejb-name>
- <jndi-name>NotificationHandler</jndi-name>
- <local-jndi-name>NotificationHandlerLocal</local-jndi-name>
-
- <method-attributes>
- </method-attributes>
- </session>
- <session>
- <ejb-name>PersistHandler</ejb-name>
- <jndi-name>PersistHandler</jndi-name>
- <local-jndi-name>PersistHandlerLocal</local-jndi-name>
-
- <method-attributes>
- </method-attributes>
- </session>
- <session>
- <ejb-name>BatchHandler</ejb-name>
- <jndi-name>BatchHandler</jndi-name>
- <local-jndi-name>BatchHandlerLocal</local-jndi-name>
-
- <method-attributes>
- </method-attributes>
- </session>
-
- <!--
- write a merge file jboss-webservices.ent for webservice-description
- -->
-
- </enterprise-beans>
-
- <resource-managers>
- </resource-managers>
-
- <!--
- | for container settings, you can merge in jboss-container.xml
- | this can contain <invoker-proxy-bindings/> and <container-configurations/>
- -->
-
-</jboss>
Modified: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerBsDelegateLocal.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerBsDelegateLocal.java 2006-08-02 19:02:57 UTC (rev 5416)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerBsDelegateLocal.java 2006-08-02 20:29:46 UTC (rev 5417)
@@ -30,30 +30,37 @@
public class BatchHandlerBsDelegateLocal implements IbatchHandler
{
- private BatchHandlerLocal m_oBatchH;
+ //KS private BatchHandlerLocal m_oBatchH;
public BatchHandlerBsDelegateLocal(Context p_ctx) throws Exception
{
Object ref = p_ctx.lookup("BatchHandlerLocal");
- BatchHandlerLocalHome oHu = (BatchHandlerLocalHome) ref;
- m_oBatchH = oHu.create();
+// KS BatchHandlerLocalHome oHu = (BatchHandlerLocalHome) ref;
+// KS m_oBatchH = oHu.create();
} //__________________________________
public long newBatch () throws Exception
- { return m_oBatchH.newBatch(); }
+ { return 0;
+ //KS m_oBatchH.newBatch();
+ }
public int addToBatch (String p_s) throws Exception
- { return m_oBatchH.addToBatch(p_s); }
+ { return 0;
+ //KS m_oBatchH.addToBatch(p_s);
+ }
public void finish () throws Exception
- { m_oBatchH.finish(); }
+ { //KS m_oBatchH.finish();
+
+ }
public void releaseHandler()
- { try { m_oBatchH.remove(); }
+ { try { //KS m_oBatchH.remove();
+ }
catch (Exception e) {}
} //__________________________________
public void commitBatch(BatchProcess p_oBP) throws Exception
- { m_oBatchH.commitBatch(p_oBP);
+ { //KS m_oBatchH.commitBatch(p_oBP);
} //__________________________________
} //____________________________________________________________________________
Modified: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerBsDelegateRemote.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerBsDelegateRemote.java 2006-08-02 19:02:57 UTC (rev 5416)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/BatchHandlerBsDelegateRemote.java 2006-08-02 20:29:46 UTC (rev 5417)
@@ -36,19 +36,23 @@
public BatchHandlerBsDelegateRemote(Context p_ctx) throws Exception
{
Object ref = p_ctx.lookup("BatchHandler");
- Object oNarr = PortableRemoteObject.narrow(ref, BatchHandlerHome.class);
- BatchHandlerHome oHu = (BatchHandlerHome) oNarr;
- m_oBatchH = oHu.create();
+ //KS Object oNarr = PortableRemoteObject.narrow(ref, BatchHandlerHome.class);
+ //KS BatchHandlerHome oHu = (BatchHandlerHome) oNarr;
+ //KS m_oBatchH = oHu.create();
} //__________________________________
public long newBatch () throws Exception
- { return m_oBatchH.newBatch(); }
+ { return 0; //KS m_oBatchH.newBatch();
+ }
public int addToBatch (String p_s) throws Exception
- { return m_oBatchH.addToBatch(p_s); }
+ { return 0; //KS m_oBatchH.addToBatch(p_s);
+ }
public void finish () throws Exception
{ m_oBatchH.finish(); }
public void releaseHandler()
- { try { m_oBatchH.remove(); }
+ { try {
+ //KS m_oBatchH.remove();
+ }
catch (Exception e) {}
} //__________________________________
public void commitBatch(BatchProcess p_oBP) throws Exception
Modified: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/BatchHandler.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/BatchHandler.java 2006-08-02 19:02:57 UTC (rev 5416)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/BatchHandler.java 2006-08-02 20:29:46 UTC (rev 5417)
@@ -1,32 +1,33 @@
/*
- * Generated by XDoclet - Do not edit!
- */
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
package org.jboss.soa.esb.services.EJB;
+import org.jboss.soa.esb.util.BobjStdDTO;
+
/**
- * Remote interface for BatchHandler.
- * @xdoclet-generated at July 12 2006
- * @copyright The XDoclet Team
- * @author XDoclet
- * @version ${version}
+ * @author kstam
*/
public interface BatchHandler
- extends javax.ejb.EJBObject
{
-
- public long newBatch( )
- throws java.lang.Exception, java.rmi.RemoteException;
-
- public long getBatchNum( )
- throws java.rmi.RemoteException;
-
- public int addToBatch( java.lang.String p_s )
- throws java.lang.Exception, java.rmi.RemoteException;
-
- public void finish( )
- throws java.lang.Exception, java.rmi.RemoteException;
-
- public void commitBatch( org.jboss.soa.esb.util.BobjStdDTO p_oDto )
- throws java.lang.Exception, java.rmi.RemoteException;
-
+ public void finish() throws Exception;
+ public void commitBatch(BobjStdDTO p_oDto ) throws Exception;
}
Modified: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/BatchHandlerBean.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/BatchHandlerBean.java 2006-08-02 19:02:57 UTC (rev 5416)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/BatchHandlerBean.java 2006-08-02 20:29:46 UTC (rev 5417)
@@ -36,17 +36,12 @@
import org.jboss.soa.esb.internal.core.objectstore.*;
import org.jboss.soa.esb.common.bizclasses.*;
/**
- * @ejb.bean
- * name="BatchHandler"
- * display-name="Jboss_Esb_Batch_Handler"
- * type="Stateful"
- * view-type="both"
- * jndi-name="BatchHandler"
- * local-jndi-name="BatchHandlerLocal"
- * transaction-type="Bean"
- * @author
+ * @author Esteban
*/
-public class BatchHandlerBean implements SessionBean
+ at Remote(BatchHandler.class)
+ at Local(BatchHandler.class)
+ at TransactionManagement(TransactionManagementType.BEAN)
+public @Stateful class BatchHandlerBean implements BatchHandler
{
private static final long serialVersionUID = 1L;
SessionContext m_oSessCtx;
@@ -67,9 +62,9 @@
private int m_iSeq;
/**
- * @ejb.create-method
* @throws CreateException
*/
+ @Init
public void ejbCreate() throws CreateException
{
try
@@ -82,6 +77,7 @@
}
} //__________________________________
+ @PostActivate
public void ejbActivate()
{ try
{ getResources();
@@ -92,6 +88,7 @@
}
} //__________________________________
+ @PrePassivate
public void ejbPassivate()
{ m_oLogger.info("EJB Passivated");
releaseResources();
@@ -100,6 +97,7 @@
m_oDataConn = null;
} //__________________________________
+ @Remove
public void ejbRemove()
{ releaseResources();
m_oLogger.info("EJB Removed");
@@ -223,8 +221,6 @@
//______________________________________________________________________________
// Public local and remote interface methods
/**
- * @ejb.interface-method
- * view-type="both"
*/
public long newBatch() throws Exception
{ if (m_lBatchNum > 0) throw
@@ -241,8 +237,6 @@
} //__________________________________
/**
- * @ejb.interface-method
- * view-type="both"
* @return
*/
public long getBatchNum()
@@ -250,8 +244,6 @@
} //__________________________________
/**
- * @ejb.interface-method
- * view-type="both"
* @param p_s
* @return
* @throws Exception
@@ -278,8 +270,6 @@
finally { releaseResources(); }
} //__________________________________
/**
- * @ejb.interface-method
- * view-type="both"
* @throws Exception
*/
public void finish() throws Exception
@@ -290,10 +280,7 @@
//______________________________________________________________________________
// Public local interface methods
-
/**
- * @ejb.interface-method
- * view-type="local"
*/
public void commitBatch(BatchProcess p_oBO) throws Exception
{ try { doCommitBatch(p_oBO); m_oDataConn.commit(); }
@@ -308,8 +295,6 @@
//______________________________________________________________________________
// Public remote interface methods
/**
- * @ejb.interface-method
- * view-type="both"
*/
public void commitBatch(BobjStdDTO p_oDto) throws Exception
{ commitBatch (new BatchProcess(p_oDto));
Deleted: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/BatchHandlerHome.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/BatchHandlerHome.java 2006-08-02 19:02:57 UTC (rev 5416)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/BatchHandlerHome.java 2006-08-02 20:29:46 UTC (rev 5417)
@@ -1,22 +0,0 @@
-/*
- * Generated by XDoclet - Do not edit!
- */
-package org.jboss.soa.esb.services.EJB;
-
-/**
- * Home interface for BatchHandler.
- * @xdoclet-generated at July 12 2006
- * @copyright The XDoclet Team
- * @author XDoclet
- * @version ${version}
- */
-public interface BatchHandlerHome
- extends javax.ejb.EJBHome
-{
- public static final String COMP_NAME="java:comp/env/ejb/BatchHandler";
- public static final String JNDI_NAME="BatchHandler";
-
- public org.jboss.soa.esb.services.EJB.BatchHandler create()
- throws javax.ejb.CreateException,java.rmi.RemoteException;
-
-}
Deleted: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/BatchHandlerLocal.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/BatchHandlerLocal.java 2006-08-02 19:02:57 UTC (rev 5416)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/BatchHandlerLocal.java 2006-08-02 20:29:46 UTC (rev 5417)
@@ -1,29 +0,0 @@
-/*
- * Generated by XDoclet - Do not edit!
- */
-package org.jboss.soa.esb.services.EJB;
-
-/**
- * Local interface for BatchHandler.
- * @xdoclet-generated at July 12 2006
- * @copyright The XDoclet Team
- * @author XDoclet
- * @version ${version}
- */
-public interface BatchHandlerLocal
- extends javax.ejb.EJBLocalObject
-{
-
- public long newBatch( ) throws java.lang.Exception;
-
- public long getBatchNum( ) ;
-
- public int addToBatch( java.lang.String p_s ) throws java.lang.Exception;
-
- public void finish( ) throws java.lang.Exception;
-
- public void commitBatch( org.jboss.soa.esb.common.bizclasses.BatchProcess p_oBO ) throws java.lang.Exception;
-
- public void commitBatch( org.jboss.soa.esb.util.BobjStdDTO p_oDto ) throws java.lang.Exception;
-
-}
Deleted: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/BatchHandlerLocalHome.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/BatchHandlerLocalHome.java 2006-08-02 19:02:57 UTC (rev 5416)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/BatchHandlerLocalHome.java 2006-08-02 20:29:46 UTC (rev 5417)
@@ -1,22 +0,0 @@
-/*
- * Generated by XDoclet - Do not edit!
- */
-package org.jboss.soa.esb.services.EJB;
-
-/**
- * Local home interface for BatchHandler.
- * @xdoclet-generated at July 12 2006
- * @copyright The XDoclet Team
- * @author XDoclet
- * @version ${version}
- */
-public interface BatchHandlerLocalHome
- extends javax.ejb.EJBLocalHome
-{
- public static final String COMP_NAME="java:comp/env/ejb/BatchHandlerLocal";
- public static final String JNDI_NAME="BatchHandlerLocal";
-
- public org.jboss.soa.esb.services.EJB.BatchHandlerLocal create()
- throws javax.ejb.CreateException;
-
-}
Modified: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/NotificationHandler.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/NotificationHandler.java 2006-08-02 19:02:57 UTC (rev 5416)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/NotificationHandler.java 2006-08-02 20:29:46 UTC (rev 5417)
@@ -1,22 +1,33 @@
/*
- * Generated by XDoclet - Do not edit!
- */
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
package org.jboss.soa.esb.services.EJB;
import java.io.Serializable;
/**
- * Remote interface for NotificationHandler.
- * @xdoclet-generated at July 24 2006
- * @copyright The XDoclet Team
- * @author XDoclet
- * @version ${version}
+ * Business interface for NotificationHandler.
+ * @author kstam
*/
public interface NotificationHandler
- extends javax.ejb.EJBObject
{
-
- public void sendNotifications( java.lang.String p_sParams,Serializable p_sMsg )
- throws java.lang.Exception, java.rmi.RemoteException;
-
+ public void sendNotifications( String p_sParams, Serializable p_oMsg ) throws Exception;
}
Modified: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/NotificationHandlerBean.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/NotificationHandlerBean.java 2006-08-02 19:02:57 UTC (rev 5416)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/NotificationHandlerBean.java 2006-08-02 20:29:46 UTC (rev 5417)
@@ -25,7 +25,17 @@
package org.jboss.soa.esb.services.EJB;
import java.io.Serializable;
-import javax.ejb.*;
+
+import javax.ejb.Init;
+import javax.ejb.Local;
+import javax.ejb.Remote;
+import javax.ejb.Remove;
+import javax.ejb.SessionContext;
+import javax.ejb.Stateless;
+import javax.ejb.TransactionAttribute;
+import javax.ejb.TransactionAttributeType;
+import javax.ejb.TransactionManagement;
+import javax.ejb.TransactionManagementType;
import javax.naming.*;
import org.jboss.soa.esb.util.*;
import org.jboss.soa.esb.helpers.*;
@@ -33,32 +43,26 @@
import org.apache.log4j.*;
/**
- * @ejb.bean description="NotificationHandler"
- * display-name="Notification_Handler"
- * jndi-name="NotificationHandler"
- * local-jndi-name="NotificationHandlerLocal"
- * name="NotificationHandler"
- * type="Stateless"
- * view-type="both"
- * transaction-type="Container"
- * @ejb.transaction type="Required"
- * @author
+ * @author Esteban
*/
-public class NotificationHandlerBean implements SessionBean
+ at Remote(NotificationHandler.class)
+ at Local(NotificationHandler.class)
+ at TransactionManagement(TransactionManagementType.CONTAINER)
+ at TransactionAttribute(TransactionAttributeType.REQUIRED)
+
+public @Stateless class NotificationHandlerBean implements NotificationHandler
{
private static final long serialVersionUID = 1L;
private Logger m_oLogger;
SessionContext m_ctxSess;
- public void ejbActivate() {}
- public void ejbPassivate() {}
public void setSessionContext(SessionContext sessionContext)
{ m_ctxSess = sessionContext; }
/**
- * @ejb.create-method
* @throws CreateException
*/
- public void ejbCreate() throws CreateException
+ @Init
+ public void ejbCreate() throws Exception
{ try
{ m_oLogger = EsbUtil.getDefaultLogger(this.getClass());
// Context oCtxInit =
@@ -68,10 +72,11 @@
}
catch (Exception e)
{ m_oLogger.error("EJB Create Failed <"+e.getMessage()+">");
- throw new CreateException(e.getMessage());
+ throw new Exception(e.getMessage());
}
} //__________________________________
+ @Remove
public void ejbRemove()
{ m_oLogger.info(this.toString()+" Removed");
} //__________________________________
@@ -103,7 +108,6 @@
catch (Exception e) { e.printStackTrace(System.out); }
}
/**
- * @ejb.interface-method
* @param p_sParams
* @param p_sMsg
* @throws Exception
Deleted: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/NotificationHandlerHome.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/NotificationHandlerHome.java 2006-08-02 19:02:57 UTC (rev 5416)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/NotificationHandlerHome.java 2006-08-02 20:29:46 UTC (rev 5417)
@@ -1,22 +0,0 @@
-/*
- * Generated by XDoclet - Do not edit!
- */
-package org.jboss.soa.esb.services.EJB;
-
-/**
- * Home interface for NotificationHandler.
- * @xdoclet-generated at July 27 2006
- * @copyright The XDoclet Team
- * @author XDoclet
- * @version ${version}
- */
-public interface NotificationHandlerHome
- extends javax.ejb.EJBHome
-{
- public static final String COMP_NAME="java:comp/env/ejb/NotificationHandler";
- public static final String JNDI_NAME="NotificationHandler";
-
- public org.jboss.soa.esb.services.EJB.NotificationHandler create()
- throws javax.ejb.CreateException,java.rmi.RemoteException;
-
-}
Deleted: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/NotificationHandlerLocal.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/NotificationHandlerLocal.java 2006-08-02 19:02:57 UTC (rev 5416)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/NotificationHandlerLocal.java 2006-08-02 20:29:46 UTC (rev 5417)
@@ -1,21 +0,0 @@
-/*
- * Generated by XDoclet - Do not edit!
- */
-package org.jboss.soa.esb.services.EJB;
-
-import java.io.Serializable;
-
-/**
- * Local interface for NotificationHandler.
- * @xdoclet-generated at July 5 2006
- * @copyright The XDoclet Team
- * @author XDoclet
- * @version ${version}
- */
-public interface NotificationHandlerLocal
- extends javax.ejb.EJBLocalObject
-{
-
- public void sendNotifications( java.lang.String p_sParams,Serializable p_sMsg ) throws java.lang.Exception;
-
-}
Deleted: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/NotificationHandlerLocalHome.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/NotificationHandlerLocalHome.java 2006-08-02 19:02:57 UTC (rev 5416)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/NotificationHandlerLocalHome.java 2006-08-02 20:29:46 UTC (rev 5417)
@@ -1,22 +0,0 @@
-/*
- * Generated by XDoclet - Do not edit!
- */
-package org.jboss.soa.esb.services.EJB;
-
-/**
- * Local home interface for NotificationHandler.
- * @xdoclet-generated at July 27 2006
- * @copyright The XDoclet Team
- * @author XDoclet
- * @version ${version}
- */
-public interface NotificationHandlerLocalHome
- extends javax.ejb.EJBLocalHome
-{
- public static final String COMP_NAME="java:comp/env/ejb/NotificationHandlerLocal";
- public static final String JNDI_NAME="NotificationHandlerLocal";
-
- public org.jboss.soa.esb.services.EJB.NotificationHandlerLocal create()
- throws javax.ejb.CreateException;
-
-}
Modified: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/PersistHandler.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/PersistHandler.java 2006-08-02 19:02:57 UTC (rev 5416)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/PersistHandler.java 2006-08-02 20:29:46 UTC (rev 5417)
@@ -1,32 +1,42 @@
/*
- * Generated by XDoclet - Do not edit!
- */
+* JBoss, Home of Professional Open Source
+* Copyright 2006, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
package org.jboss.soa.esb.services.EJB;
+import org.jboss.soa.esb.util.BobjStdDTO;
+
/**
- * Remote interface for PersistHandler.
- * @xdoclet-generated at July 24 2006
- * @copyright The XDoclet Team
- * @author XDoclet
- * @version ${version}
+ * @author kstam
*/
public interface PersistHandler
- extends javax.ejb.EJBObject
{
- public long getUidChunk( int p_iQ )
- throws java.lang.Exception, java.rmi.RemoteException;
+ public long getUidChunk( int p_iQ ) throws Exception;
- public void rmvObject( java.lang.String p_sClassName,long p_lUid )
- throws java.lang.Exception, java.rmi.RemoteException;
+ public void rmvObject( String p_sClassName,long p_lUid ) throws Exception;
- public long addDTO( org.jboss.soa.esb.util.BobjStdDTO p_oDto )
- throws java.lang.Exception, java.rmi.RemoteException;
+ public long addDTO( BobjStdDTO p_oDto ) throws Exception;
- public org.jboss.soa.esb.util.BobjStdDTO getDTO( java.lang.String p_sClassName,long p_lUid )
- throws java.lang.Exception, java.rmi.RemoteException;
+ public BobjStdDTO getDTO( String p_sClassName,long p_lUid ) throws Exception;
- public void rplDTO( org.jboss.soa.esb.util.BobjStdDTO p_oDto )
- throws java.lang.Exception, java.rmi.RemoteException;
+ public void rplDTO( BobjStdDTO p_oDto ) throws Exception;
}
Modified: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/PersistHandlerBean.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/PersistHandlerBean.java 2006-08-02 19:02:57 UTC (rev 5416)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/PersistHandlerBean.java 2006-08-02 20:29:46 UTC (rev 5417)
@@ -19,12 +19,16 @@
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
-
-
-
package org.jboss.soa.esb.services.EJB;
-import javax.ejb.*;
+import javax.ejb.Init;
+import javax.ejb.Local;
+import javax.ejb.Remote;
+import javax.ejb.Remove;
+import javax.ejb.SessionContext;
+import javax.ejb.Stateless;
+import javax.ejb.TransactionManagement;
+import javax.ejb.TransactionManagementType;
import javax.naming.*;
import java.sql.*;
import javax.sql.*;
@@ -39,17 +43,12 @@
import org.apache.log4j.*;
/**
- * @ejb.bean
- * name="PersistHandler"
- * display-name="PERSIST_HANDLER"
- * type="Stateless"
- * view-type="both"
- * jndi-name="PersistHandler"
- * local-jndi-name="PersistHandlerLocal"
- * transaction-type="Bean"
* @author Esteban
*/
-public class PersistHandlerBean implements SessionBean
+ at Remote(PersistHandler.class)
+ at Local(PersistHandler.class)
+ at TransactionManagement(TransactionManagementType.BEAN)
+public @Stateless class PersistHandlerBean implements PersistHandler
{
private static final long serialVersionUID = 1L;
private Logger m_oLogger;
@@ -66,15 +65,14 @@
private DaoSnapTable m_oDaoSnap;
private DaoIndexTable[] m_oaDaoIndex;
- public void ejbActivate() {}
- public void ejbPassivate() {}
public void setSessionContext(SessionContext sessionContext)
{ m_ctxSess = sessionContext; }
/**
- * @ejb.create-method
+ * Create method. Should get called to initialize this class.
* @throws CreateException
*/
- public void ejbCreate() throws CreateException
+ @Init
+ public void create() throws Exception
{ try
{ m_oLogger = EsbUtil.getDefaultLogger(this.getClass());
Context oCtxInit = new InitialContext();
@@ -92,14 +90,86 @@
}
catch (Exception e)
{ m_oLogger.error("EJB Create Failed <"+e.getMessage()+">");
- throw new CreateException(e.getMessage());
+ throw new Exception(e.getMessage());
}
} //__________________________________
- public void ejbRemove()
+ @Remove
+ public void remove()
{ m_oLogger.info(this.toString()+" Removed");
} //__________________________________
+
+ /**
+ * @param p_sClassName - String Fully qualified name of class to be retrieved
+ * @param p_lUid
+ * @return
+ * @throws Exception
+ */
+ public BobjStdDTO getDTO (String p_sClassName, long p_lUid) throws Exception
+ { try { return doGetSnapshot(BobjStore.getStore(p_sClassName), p_lUid);}
+ catch (Exception e) { throw e; }
+ finally { releaseResources(); }
+ } //__________________________________
+ /**
+ *
+ * @param p_oDto BobjStdDTO - Serialized BaseBusinessObject that has to be replaced
+ * @throws Exception
+ */
+ public void rplDTO(BobjStdDTO p_oDto) throws Exception
+ { try
+ { doRplSnapshot(p_oDto);
+ m_oDataConn.commit();
+ }
+ catch (Exception e)
+ { try { if (null != m_oDataConn) m_oDataConn.rollback(); }
+ catch (Exception eRoll) {}
+ throw e;
+ }
+ finally { releaseResources(); }
+ } //__________________________________
+
+// ______________________________________________________________________________
+// Public local and remote interface methods
+ /**
+ */
+ public long getUidChunk (int p_iQ) throws Exception
+ { try { return getDaoUid().getUidChunk(DaoUidTable.SEQUENCE_OBJ,p_iQ); }
+ catch (Exception e) { throw e;}
+ finally { releaseResources(); }
+ } //__________________________________
+ /**
+ * @param p_sClassName
+ * @param p_lUid
+ * @throws Exception
+ */
+ public void rmvObject(String p_sClassName, long p_lUid) throws Exception
+ { try { doRmvSnapshot(BobjStore.getStore(p_sClassName), p_lUid); m_oDataConn.commit(); }
+ catch (Exception e)
+ { try { if (null != m_oDataConn) m_oDataConn.rollback(); }
+ catch (Exception eRoll) {}
+ throw e;
+ }
+ finally { releaseResources(); }
+ } //__________________________________
+
+ /**
+ */
+ public long addDTO(BobjStdDTO p_oDto) throws Exception
+ { try
+ { long lRet = doAddSnapshot(p_oDto);
+ m_oDataConn.commit();
+ return lRet;
+ }
+ catch (Exception e)
+ { try { if (null != m_oDataConn) m_oDataConn.rollback(); }
+ catch (Exception eRoll) {}
+ throw e;
+ }
+ finally { releaseResources(); }
+ } //__________________________________
+
+
// Utility Methods
private DaoUidTable getDaoUid() throws Exception
@@ -277,7 +347,7 @@
if (null != m_oUidConn) m_oUidConn.release();
} //__________________________________
- public long doAssignUid() throws Exception
+ private long doAssignUid() throws Exception
{ if (m_iChunkLeft < 1)
{ m_lUid = getDaoUid().getUidChunk(DaoUidTable.SEQUENCE_OBJ, s_iChunkSize);
m_iChunkLeft = s_iChunkSize;
@@ -286,82 +356,6 @@
return ++m_lUid;
} //__________________________________
-//______________________________________________________________________________
-// Public local and remote interface methods
- /**
- * @ejb.interface-method
- * view-type="both"
- */
- public long getUidChunk (int p_iQ) throws Exception
- { try { return getDaoUid().getUidChunk(DaoUidTable.SEQUENCE_OBJ,p_iQ); }
- catch (Exception e) { throw e;}
- finally { releaseResources(); }
- } //__________________________________
-/**
- * @ejb.interface-method
- * view-type="both"
- * @param p_sClassName
- * @param p_lUid
- * @throws Exception
- */
- public void rmvObject(String p_sClassName, long p_lUid) throws Exception
- { try { doRmvSnapshot(BobjStore.getStore(p_sClassName), p_lUid); m_oDataConn.commit(); }
- catch (Exception e)
- { try { if (null != m_oDataConn) m_oDataConn.rollback(); }
- catch (Exception eRoll) {}
- throw e;
- }
- finally { releaseResources(); }
- } //__________________________________
-/**
- * @ejb.interface-method
- * view-type="both"
- */
- public long addDTO(BobjStdDTO p_oDto) throws Exception
- { try
- { long lRet = doAddSnapshot(p_oDto);
- m_oDataConn.commit();
- return lRet;
- }
- catch (Exception e)
- { try { if (null != m_oDataConn) m_oDataConn.rollback(); }
- catch (Exception eRoll) {}
- throw e;
- }
- finally { releaseResources(); }
- } //__________________________________
-/**
- * @ejb.interface-method
- * view-type="both"
- * @param p_sClassName - String Fully qualified name of class to be retrieved
- * @param p_lUid
- * @return
- * @throws Exception
- */
- public BobjStdDTO getDTO (String p_sClassName, long p_lUid) throws Exception
- { try { return doGetSnapshot(BobjStore.getStore(p_sClassName), p_lUid);}
- catch (Exception e) { throw e; }
- finally { releaseResources(); }
- } //__________________________________
-/**
- * @ejb.interface-method
- * view-type="both"
- *
- * @param p_oDto BobjStdDTO - Serialized BaseBusinessObject that has to be replaced
- * @throws Exception
- */
- public void rplDTO(BobjStdDTO p_oDto) throws Exception
- { try
- { doRplSnapshot(p_oDto);
- m_oDataConn.commit();
- }
- catch (Exception e)
- { try { if (null != m_oDataConn) m_oDataConn.rollback(); }
- catch (Exception eRoll) {}
- throw e;
- }
- finally { releaseResources(); }
- } //__________________________________
} //____________________________________________________________________________
Deleted: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/PersistHandlerHome.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/PersistHandlerHome.java 2006-08-02 19:02:57 UTC (rev 5416)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/PersistHandlerHome.java 2006-08-02 20:29:46 UTC (rev 5417)
@@ -1,22 +0,0 @@
-/*
- * Generated by XDoclet - Do not edit!
- */
-package org.jboss.soa.esb.services.EJB;
-
-/**
- * Home interface for PersistHandler.
- * @xdoclet-generated at July 12 2006
- * @copyright The XDoclet Team
- * @author XDoclet
- * @version ${version}
- */
-public interface PersistHandlerHome
- extends javax.ejb.EJBHome
-{
- public static final String COMP_NAME="java:comp/env/ejb/PersistHandler";
- public static final String JNDI_NAME="PersistHandler";
-
- public org.jboss.soa.esb.services.EJB.PersistHandler create()
- throws javax.ejb.CreateException,java.rmi.RemoteException;
-
-}
Deleted: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/PersistHandlerLocal.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/PersistHandlerLocal.java 2006-08-02 19:02:57 UTC (rev 5416)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/PersistHandlerLocal.java 2006-08-02 20:29:46 UTC (rev 5417)
@@ -1,27 +0,0 @@
-/*
- * Generated by XDoclet - Do not edit!
- */
-package org.jboss.soa.esb.services.EJB;
-
-/**
- * Local interface for PersistHandler.
- * @xdoclet-generated at July 12 2006
- * @copyright The XDoclet Team
- * @author XDoclet
- * @version ${version}
- */
-public interface PersistHandlerLocal
- extends javax.ejb.EJBLocalObject
-{
-
- public long getUidChunk( int p_iQ ) throws java.lang.Exception;
-
- public void rmvObject( java.lang.String p_sClassName,long p_lUid ) throws java.lang.Exception;
-
- public long addDTO( org.jboss.soa.esb.util.BobjStdDTO p_oDto ) throws java.lang.Exception;
-
- public org.jboss.soa.esb.util.BobjStdDTO getDTO( java.lang.String p_sClassName,long p_lUid ) throws java.lang.Exception;
-
- public void rplDTO( org.jboss.soa.esb.util.BobjStdDTO p_oDto ) throws java.lang.Exception;
-
-}
Deleted: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/PersistHandlerLocalHome.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/PersistHandlerLocalHome.java 2006-08-02 19:02:57 UTC (rev 5416)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/EJB/PersistHandlerLocalHome.java 2006-08-02 20:29:46 UTC (rev 5417)
@@ -1,22 +0,0 @@
-/*
- * Generated by XDoclet - Do not edit!
- */
-package org.jboss.soa.esb.services.EJB;
-
-/**
- * Local home interface for PersistHandler.
- * @xdoclet-generated at July 24 2006
- * @copyright The XDoclet Team
- * @author XDoclet
- * @version ${version}
- */
-public interface PersistHandlerLocalHome
- extends javax.ejb.EJBLocalHome
-{
- public static final String COMP_NAME="java:comp/env/ejb/PersistHandlerLocal";
- public static final String JNDI_NAME="PersistHandlerLocal";
-
- public org.jboss.soa.esb.services.EJB.PersistHandlerLocal create()
- throws javax.ejb.CreateException;
-
-}
Modified: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/NotifHandlerBsDelegateLocal.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/NotifHandlerBsDelegateLocal.java 2006-08-02 19:02:57 UTC (rev 5416)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/NotifHandlerBsDelegateLocal.java 2006-08-02 20:29:46 UTC (rev 5417)
@@ -30,19 +30,19 @@
public class NotifHandlerBsDelegateLocal implements InotificationHandler
{
- private NotificationHandlerLocal m_oNotifH;
+ //KS private NotificationHandlerLocal m_oNotifH;
public NotifHandlerBsDelegateLocal(Context p_ctx) throws Exception
{
Object ref = p_ctx.lookup("NotificationHandlerLocal");
- NotificationHandlerLocalHome oHu = (NotificationHandlerLocalHome) ref;
- m_oNotifH = oHu.create();
+ //KS NotificationHandlerLocalHome oHu = (NotificationHandlerLocalHome) ref;
+ //KS m_oNotifH = oHu.create();
} //__________________________________
public void sendNotifications(DomElement p_oP, Serializable p_o) throws Exception
- { m_oNotifH.sendNotifications(p_oP.toString(),p_o);
+ { //KS m_oNotifH.sendNotifications(p_oP.toString(),p_o);
}
public void sendNotifications(Serializable p_o) throws Exception
- { m_oNotifH.sendNotifications(null,p_o);
+ { //KS m_oNotifH.sendNotifications(null,p_o);
}
} //____________________________________________________________________________
Modified: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/NotifHandlerBsDelegateRemote.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/NotifHandlerBsDelegateRemote.java 2006-08-02 19:02:57 UTC (rev 5416)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/NotifHandlerBsDelegateRemote.java 2006-08-02 20:29:46 UTC (rev 5417)
@@ -36,9 +36,9 @@
public NotifHandlerBsDelegateRemote(Context p_ctx) throws Exception
{
Object ref = p_ctx.lookup("NotificationHandler");
- Object oNarr = PortableRemoteObject.narrow(ref, NotificationHandlerHome.class);
- NotificationHandlerHome oHu = (NotificationHandlerHome) oNarr;
- m_oNotifH = oHu.create();
+ //KS Object oNarr = PortableRemoteObject.narrow(ref, NotificationHandlerHome.class);
+ //KS NotificationHandlerHome oHu = (NotificationHandlerHome) oNarr;
+ //KS m_oNotifH = oHu.create();
} //__________________________________
public void sendNotifications(DomElement p_oP, Serializable p_o) throws Exception
Modified: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerBsDelegateLocal.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerBsDelegateLocal.java 2006-08-02 19:02:57 UTC (rev 5416)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerBsDelegateLocal.java 2006-08-02 20:29:46 UTC (rev 5417)
@@ -32,37 +32,39 @@
public class PersistHandlerBsDelegateLocal implements IpersistHandler
{
- private PersistHandlerLocal m_oSnapH;
+ //private PersistHandlerLocal m_oSnapH;
public PersistHandlerBsDelegateLocal(Context p_ctx) throws Exception
{
Object ref = p_ctx.lookup("PersistHandlerLocal");
- PersistHandlerLocalHome oHu = (PersistHandlerLocalHome) ref;
- m_oSnapH = oHu.create();
+// PersistHandlerLocalHome oHu = (PersistHandlerLocalHome) ref;
+// m_oSnapH = oHu.create();
} //__________________________________
- public void remove() throws Exception {m_oSnapH.remove(); }
+ public void remove() throws Exception {
+ //KS m_oSnapH.remove();
+ }
public long getUidChunk(int p_iQ) throws Exception
- { return m_oSnapH.getUidChunk(p_iQ);
+ { return 0; //KS m_oSnapH.getUidChunk(p_iQ);
} //__________________________________
public long addObject (BobjStdDTO p_oDto) throws Exception
- { return m_oSnapH.addDTO(p_oDto);
+ { return 0; //KS m_oSnapH.addDTO(p_oDto);
} //__________________________________
public long addObject (BaseBusinessObject p_oBo) throws Exception
{ p_oBo.setPackage();
- return m_oSnapH.addDTO(p_oBo.toDTO());
+ return 0; //KS m_oSnapH.addDTO(p_oBo.toDTO());
} //__________________________________
public BaseBusinessObject getObject (Class p_oCls, long p_lUid) throws Exception
- { BobjStdDTO oDto = m_oSnapH.getDTO(p_oCls.getName(), p_lUid);
- return (null==oDto)?null:BaseBusinessObject.getFromDTO(oDto);
+ { //KS BobjStdDTO oDto = m_oSnapH.getDTO(p_oCls.getName(), p_lUid);
+ return null; //KS (null==oDto)?null:BaseBusinessObject.getFromDTO(oDto);
} //__________________________________
public void rmvObject (Class p_oCls, long p_lUid) throws Exception
- { m_oSnapH.rmvObject(p_oCls.getName(), p_lUid);
+ { //KS m_oSnapH.rmvObject(p_oCls.getName(), p_lUid);
} //__________________________________
public void rplObject (BaseBusinessObject p_o) throws Exception
{ p_o.setPackage();
- m_oSnapH.rplDTO(p_o.toDTO());
+ //KS m_oSnapH.rplDTO(p_o.toDTO());
} //__________________________________
public ObjLocator[] getLocatorList(Class p_oCls, Properties p_oProp)
{
Modified: labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerBsDelegateRemote.java
===================================================================
--- labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerBsDelegateRemote.java 2006-08-02 19:02:57 UTC (rev 5416)
+++ labs/jbossesb/branches/ejb3/product/core/services/src/org/jboss/soa/esb/services/PersistHandlerBsDelegateRemote.java 2006-08-02 20:29:46 UTC (rev 5417)
@@ -38,9 +38,9 @@
public PersistHandlerBsDelegateRemote(Context p_ctx) throws Exception
{
Object ref = p_ctx.lookup("PersistHandler");
- Object oNarr = PortableRemoteObject.narrow(ref, PersistHandlerHome.class);
- PersistHandlerHome oHu = (PersistHandlerHome) oNarr;
- m_oSnapH = oHu.create();
+ //KS Object oNarr = PortableRemoteObject.narrow(ref, PersistHandlerHome.class);
+ //KS PersistHandlerHome oHu = (PersistHandlerHome) oNarr;
+ //KS m_oSnapH = oHu.create();
} //__________________________________
public void remove() throws Exception {}
Added: labs/jbossesb/branches/ejb3/product/lib/ext/jboss-ejb3x.jar
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/branches/ejb3/product/lib/ext/jboss-ejb3x.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
More information about the jboss-svn-commits
mailing list