[jboss-svn-commits] JBL Code SVN: r21466 - in labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso: ejb and 11 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Aug 12 08:46:56 EDT 2008
Author: beve
Date: 2008-08-12 08:46:56 -0400 (Tue, 12 Aug 2008)
New Revision: 21466
Added:
labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/
labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/build.xml
labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/lib/
labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/lib/j2ee.jar
labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/lib/jboss-annotations-ejb3.jar
labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/lib/jboss-ejb3x.jar
labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/src/
labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/src/org/
labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/src/org/jboss/
labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/src/org/jboss/soa/
labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/src/org/jboss/soa/esb/
labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/src/org/jboss/soa/esb/samples/
labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/src/org/jboss/soa/esb/samples/quickstart/
labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/src/org/jboss/soa/esb/samples/quickstart/ejb/
labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/src/org/jboss/soa/esb/samples/quickstart/ejb/Simple.java
labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/src/org/jboss/soa/esb/samples/quickstart/ejb/SimpleRemote.java
labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/src/org/jboss/soa/esb/samples/quickstart/ejb/SimpleSLSB.java
Removed:
labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/lib/j2ee.jar
labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/lib/jboss-annotations-ejb3.jar
labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/lib/jboss-ejb3x.jar
labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/src/org/jboss/soa/esb/samples/quickstart/opensso/Simple.java
labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/src/org/jboss/soa/esb/samples/quickstart/opensso/SimpleRemote.java
labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/src/org/jboss/soa/esb/samples/quickstart/opensso/SimpleSLSB.java
Modified:
labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/build.xml
labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/src/org/jboss/soa/esb/samples/quickstart/opensso/EjbClientAction.java
Log:
Moved the ejb to the subdirectory ejb.
Modified: labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/build.xml
===================================================================
--- labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/build.xml 2008-08-12 12:33:21 UTC (rev 21465)
+++ labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/build.xml 2008-08-12 12:46:56 UTC (rev 21466)
@@ -8,8 +8,6 @@
<property name="opensso.username" value="amAdmin" />
<property name="opensso.password" value="adminpass" />
- <!--property name="deploy.exploded.requested" value="true" /-->
-
<target name="quickstart-specific-dependencies">
<path id="quickstart-lib-classpath">
<fileset dir="${basedir}/lib">
@@ -18,12 +16,23 @@
<fileset dir="${basedir}/jboss-opensso/build">
<include name="jboss-opensso.jar"/>
</fileset>
+ <fileset dir="${basedir}/ejb/build">
+ <include name="SimpleSLSBInterfaces.jar"/>
+ </fileset>
</path>
+ <antcall target="build-ejb-jar"/>
+ <copy todir="${basedir}/lib" overwrite="true" file="${basedir}/ejb/build/SimpleSLSBInterfaces.jar"/>
</target>
+ <path id="quickstart-dependencies-classpath" >
+ <fileset dir="${basedir}/ejb/build">
+ <include name="SimpleSLSB.jar"/>
+ </fileset>
+ </path>
+
<!-- Import the base Ant build script... -->
<import file="../conf/base-build.xml"/>
-
+
<target name="runtest" depends="compile"
description="sends a JMS message to queue/quickstart_opensso_Request_gw">
<echo>Http Client</echo>
@@ -51,12 +60,12 @@
<copy todir="${org.jboss.esb.server.deploy.dir}/jbossesb.sar/" overwrite="true" file="${basedir}/jboss-opensso/build/jboss-opensso.jar"/>
</target>
- <target name="build-ejb-jar" depends="compile" description="Packages the EJB files into a EJB JAR file">
- <jar destfile="${build.dir}/SimpleSLSB.jar" basedir="${classes}" includes="org/jboss/soa/esb/samples/quickstart/opensso/Simple*.class"/>
+ <target name="build-ejb-jar" description="Packages the EJB files into a EJB JAR file">
+ <ant dir="${basedir}/ejb" target="jar"/>
</target>
<target name="deploy-ejb" depends="dependencies,assert-ejb3-available,build-ejb-jar" description="deploy ejb">
- <copy file="${build.dir}/SimpleSLSB.jar" todir="${org.jboss.esb.server.deploy.dir}" overwrite="true"/>
+ <copy todir="${org.jboss.esb.server.deploy.dir}/" overwrite="true" file="${basedir}/ejb/build/SimpleSLSB.jar"/>
</target>
</project>
Added: labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/build.xml
===================================================================
--- labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/build.xml (rev 0)
+++ labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/build.xml 2008-08-12 12:46:56 UTC (rev 21466)
@@ -0,0 +1,32 @@
+<project name="SimpleEJB" default="jar" basedir=".">
+
+ <dirname property="pwd.dir" file="${ant.file.SimpleEJB}"/>
+ <echo message="${pwd.dir}"/>
+
+ <property name="this.build.dir" value="${pwd.dir}/build"/>
+
+ <property name="src.dir" value="${pwd.dir}/src"/>
+ <property name="classes.dir" value="${this.build.dir}/classes"/>
+ <property name="lib.dir" value="${pwd.dir}/lib"/>
+
+ <path id="classpath">
+ <fileset dir="${lib.dir}" includes="*.jar"/>
+ </path>
+
+ <target name="compile" description="Compiles java sources">
+ <mkdir dir="${classes.dir}"/>
+ <javac srcdir="${src.dir}" destdir="${classes.dir}" debug="true" deprecation="true">
+ <classpath refid="classpath" />
+ </javac>
+ </target>
+
+ <target name="jar" depends="compile" description="builds jar">
+ <jar destfile="${this.build.dir}/SimpleSLSB.jar" basedir="${classes.dir}" includes="**/*.class"/>
+ <jar destfile="${this.build.dir}/SimpleSLSBInterfaces.jar" basedir="${classes.dir}" excludes="**/SimpleSLSB.class"/>
+ </target>
+
+ <target name="clean">
+ <delete dir="${this.build.dir}"/>
+ </target>
+
+</project>
Added: labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/lib/j2ee.jar
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/lib/j2ee.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/lib/jboss-annotations-ejb3.jar
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/lib/jboss-annotations-ejb3.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/lib/jboss-ejb3x.jar
===================================================================
(Binary files differ)
Property changes on: labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/lib/jboss-ejb3x.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/src/org/jboss/soa/esb/samples/quickstart/ejb/Simple.java
===================================================================
--- labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/src/org/jboss/soa/esb/samples/quickstart/ejb/Simple.java (rev 0)
+++ labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/src/org/jboss/soa/esb/samples/quickstart/ejb/Simple.java 2008-08-12 12:46:56 UTC (rev 21466)
@@ -0,0 +1,30 @@
+/*
+ * JBoss, Home of Professional Open Source Copyright 2008, Red Hat Middleware
+ * LLC, and individual contributors 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.samples.quickstart.ejb;
+
+import javax.ejb.Local;
+
+ at Local
+public interface Simple
+{
+ void printMessage(final String message);
+}
+
Added: labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/src/org/jboss/soa/esb/samples/quickstart/ejb/SimpleRemote.java
===================================================================
--- labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/src/org/jboss/soa/esb/samples/quickstart/ejb/SimpleRemote.java (rev 0)
+++ labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/src/org/jboss/soa/esb/samples/quickstart/ejb/SimpleRemote.java 2008-08-12 12:46:56 UTC (rev 21466)
@@ -0,0 +1,30 @@
+/*
+ * JBoss, Home of Professional Open Source Copyright 2008, Red Hat Middleware
+ * LLC, and individual contributors 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.samples.quickstart.ejb;
+
+import javax.ejb.Remote;
+
+ at Remote
+public interface SimpleRemote
+{
+ void printMessage(final String message);
+}
+
Added: labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/src/org/jboss/soa/esb/samples/quickstart/ejb/SimpleSLSB.java
===================================================================
--- labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/src/org/jboss/soa/esb/samples/quickstart/ejb/SimpleSLSB.java (rev 0)
+++ labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/ejb/src/org/jboss/soa/esb/samples/quickstart/ejb/SimpleSLSB.java 2008-08-12 12:46:56 UTC (rev 21466)
@@ -0,0 +1,48 @@
+/*
+ * JBoss, Home of Professional Open Source Copyright 2008, Red Hat Middleware
+ * LLC, and individual contributors 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.samples.quickstart.ejb;
+
+import java.security.Principal;
+
+import javax.ejb.*;
+import javax.annotation.*;
+import javax.annotation.security.*;
+import org.jboss.annotation.security.SecurityDomain;
+
+
+ at Stateless
+ at SecurityDomain("OpenSSOLogin")
+ at DeclareRoles("adminRole")
+public class SimpleSLSB implements SimpleRemote
+{
+ @Resource SessionContext ctx;
+
+ public static final String RemoteJNDIName = SimpleSLSB.class.getSimpleName() + "/remote";
+
+ @RolesAllowed("adminRole")
+ public void printMessage(final String message)
+ {
+ System.out.println("SimpleSLSB printMessage : " + message);
+ System.out.println("SimpleSLSB Caller principal: " +ctx.getCallerPrincipal());
+ System.out.println("isCallerInRole('adminRole') : " + ctx.isCallerInRole("adminRole"));
+ }
+}
+
Deleted: labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/lib/j2ee.jar
===================================================================
(Binary files differ)
Deleted: labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/lib/jboss-annotations-ejb3.jar
===================================================================
(Binary files differ)
Deleted: labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/lib/jboss-ejb3x.jar
===================================================================
(Binary files differ)
Modified: labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/src/org/jboss/soa/esb/samples/quickstart/opensso/EjbClientAction.java
===================================================================
--- labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/src/org/jboss/soa/esb/samples/quickstart/opensso/EjbClientAction.java 2008-08-12 12:33:21 UTC (rev 21465)
+++ labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/src/org/jboss/soa/esb/samples/quickstart/opensso/EjbClientAction.java 2008-08-12 12:46:56 UTC (rev 21466)
@@ -40,6 +40,7 @@
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
+import org.jboss.soa.esb.samples.quickstart.ejb.*;
public class EjbClientAction extends AbstractActionLifecycle
{
@@ -53,12 +54,12 @@
try
{
Context context = new InitialContext();
- SimpleRemote simpleRemote = (SimpleRemote) context.lookup(SimpleSLSB.RemoteJNDIName);
+ SimpleRemote simpleRemote = (SimpleRemote) context.lookup("SimpleSLSB/remote");
simpleRemote.printMessage("from ESB");
}
catch (final NamingException e)
{
- System.out.println("Could not lookup " + SimpleSLSB.RemoteJNDIName + ". Please make sure that the target server supports EJBs");
+ System.out.println("Could not lookup 'SimpleSLSB/remote'.Please make sure that the target server supports EJBs");
}
return message;
}
Deleted: labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/src/org/jboss/soa/esb/samples/quickstart/opensso/Simple.java
===================================================================
--- labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/src/org/jboss/soa/esb/samples/quickstart/opensso/Simple.java 2008-08-12 12:33:21 UTC (rev 21465)
+++ labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/src/org/jboss/soa/esb/samples/quickstart/opensso/Simple.java 2008-08-12 12:46:56 UTC (rev 21466)
@@ -1,30 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source Copyright 2008, Red Hat Middleware
- * LLC, and individual contributors 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.samples.quickstart.opensso;
-
-import javax.ejb.Local;
-
- at Local
-public interface Simple
-{
- void printMessage(final String message);
-}
-
Deleted: labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/src/org/jboss/soa/esb/samples/quickstart/opensso/SimpleRemote.java
===================================================================
--- labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/src/org/jboss/soa/esb/samples/quickstart/opensso/SimpleRemote.java 2008-08-12 12:33:21 UTC (rev 21465)
+++ labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/src/org/jboss/soa/esb/samples/quickstart/opensso/SimpleRemote.java 2008-08-12 12:46:56 UTC (rev 21466)
@@ -1,30 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source Copyright 2008, Red Hat Middleware
- * LLC, and individual contributors 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.samples.quickstart.opensso;
-
-import javax.ejb.Remote;
-
- at Remote
-public interface SimpleRemote
-{
- void printMessage(final String message);
-}
-
Deleted: labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/src/org/jboss/soa/esb/samples/quickstart/opensso/SimpleSLSB.java
===================================================================
--- labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/src/org/jboss/soa/esb/samples/quickstart/opensso/SimpleSLSB.java 2008-08-12 12:33:21 UTC (rev 21465)
+++ labs/jbossesb/workspace/dbevenius/security/product/samples/quickstarts/opensso/src/org/jboss/soa/esb/samples/quickstart/opensso/SimpleSLSB.java 2008-08-12 12:46:56 UTC (rev 21466)
@@ -1,47 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source Copyright 2008, Red Hat Middleware
- * LLC, and individual contributors 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.samples.quickstart.opensso;
-
-import java.security.Principal;
-
-import javax.ejb.*;
-import javax.annotation.*;
-import javax.annotation.security.*;
-import org.jboss.annotation.security.SecurityDomain;
-
-
- at Stateless
- at SecurityDomain("OpenSSOLogin")
- at DeclareRoles("adminRole")
-public class SimpleSLSB implements SimpleRemote
-{
- @Resource SessionContext ctx;
-
- public static final String RemoteJNDIName = SimpleSLSB.class.getSimpleName() + "/remote";
-
- public void printMessage(final String message)
- {
- System.out.println("SimpleSLSB printMessage : " + message);
- System.out.println("SimpleSLSB Caller principal: " +ctx.getCallerPrincipal());
- System.out.println("isCallerInRole('adminRole') : " + ctx.isCallerInRole("adminRole"));
- }
-}
-
More information about the jboss-svn-commits
mailing list