You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by jg...@apache.org on 2009/02/17 15:43:33 UTC
svn commit: r745106 - in
/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins: echo.stateless.bean/
echo.stateless.bean/META-INF/ echo.stateless.bean/src/
echo.stateless.bean/src/echo/ echo.stateless.bean/src/echo/stateless/
echo.stateless.bean/src/ec...
Author: jgallimore
Date: Tue Feb 17 14:43:32 2009
New Revision: 745106
URL: http://svn.apache.org/viewvc?rev=745106&view=rev
Log:
OEP-24 added Eclipse RCP integration plugins. Thanks to Deryck Brown for the patch.
Added:
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/META-INF/
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/META-INF/MANIFEST.MF
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/META-INF/ejb-jar.xml
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/build.properties
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/src/
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/src/echo/
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/src/echo/stateless/
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/src/echo/stateless/bean/
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/src/echo/stateless/bean/EchoServer.java
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/src/echo/stateless/bean/EchoServerBean.java
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/src/echo/stateless/bean/EchoStatelessPlugin.java
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/META-INF/
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/META-INF/MANIFEST.MF
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/build.properties
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/alt_about.gif (with props)
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/alt_launcher.icns (with props)
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/alt_launcher.ico (with props)
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/alt_launcher.xpm
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/alt_window_16.gif (with props)
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/alt_window_32.gif (with props)
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/plugin.xml
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/Activator.java
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/Application.java
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/ApplicationActionBarAdvisor.java
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/ApplicationWorkbenchAdvisor.java
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/ApplicationWorkbenchWindowAdvisor.java
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/EchoClient.java
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/Perspective.java
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/META-INF/
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/META-INF/MANIFEST.MF
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/META-INF/openejb.xml
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/build.properties
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/src/
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/src/org/
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/src/org/apache/
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/src/org/apache/openejb/
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/src/org/apache/openejb/eclipse/
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/src/org/apache/openejb/eclipse/OpenEjbApplication.java
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/src/org/apache/openejb/eclipse/OpenEjbDeploymentService.java
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/src/org/apache/openejb/eclipse/OpenEjbPlugin.java
openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/src/org/apache/openejb/eclipse/OpenEjbServer.java
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/META-INF/MANIFEST.MF?rev=745106&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/META-INF/MANIFEST.MF (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/META-INF/MANIFEST.MF Tue Feb 17 14:43:32 2009
@@ -0,0 +1,13 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Bean Plug-in
+Bundle-SymbolicName: echo.stateless.bean;singleton:=true
+Bundle-Version: 1.0.0
+Bundle-Activator: echo.stateless.bean.EchoStatelessPlugin
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ openejb.server;bundle-version="1.0.0"
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Eclipse-RegisterBuddy: openejb.server
+Export-Package: echo.stateless.bean
+Bundle-ActivationPolicy: lazy
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/META-INF/ejb-jar.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/META-INF/ejb-jar.xml?rev=745106&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/META-INF/ejb-jar.xml (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/META-INF/ejb-jar.xml Tue Feb 17 14:43:32 2009
@@ -0,0 +1 @@
+<ejb-jar/>
\ No newline at end of file
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/build.properties
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/build.properties?rev=745106&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/build.properties (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/build.properties Tue Feb 17 14:43:32 2009
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/src/echo/stateless/bean/EchoServer.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/src/echo/stateless/bean/EchoServer.java?rev=745106&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/src/echo/stateless/bean/EchoServer.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/src/echo/stateless/bean/EchoServer.java Tue Feb 17 14:43:32 2009
@@ -0,0 +1,10 @@
+package echo.stateless.bean;
+
+import javax.ejb.Remote;
+
+@Remote
+public interface EchoServer {
+
+ public abstract String echo(String message);
+
+}
\ No newline at end of file
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/src/echo/stateless/bean/EchoServerBean.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/src/echo/stateless/bean/EchoServerBean.java?rev=745106&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/src/echo/stateless/bean/EchoServerBean.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/src/echo/stateless/bean/EchoServerBean.java Tue Feb 17 14:43:32 2009
@@ -0,0 +1,12 @@
+package echo.stateless.bean;
+
+import javax.ejb.Stateless;
+
+@Stateless
+public class EchoServerBean implements EchoServer {
+
+ public String echo(String message) {
+ System.out.println("Client sent: " + message);
+ return "Server: " + message;
+ }
+}
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/src/echo/stateless/bean/EchoStatelessPlugin.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/src/echo/stateless/bean/EchoStatelessPlugin.java?rev=745106&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/src/echo/stateless/bean/EchoStatelessPlugin.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.bean/src/echo/stateless/bean/EchoStatelessPlugin.java Tue Feb 17 14:43:32 2009
@@ -0,0 +1,62 @@
+package echo.stateless.bean;
+
+import org.apache.openejb.eclipse.OpenEjbApplication;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class EchoStatelessPlugin extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "echo.stateless.bean";
+
+ // The shared instance
+ private static EchoStatelessPlugin plugin;
+
+ /**
+ * The constructor
+ */
+ public EchoStatelessPlugin() {
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext
+ * )
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ Bundle bundle = context.getBundle();
+ OpenEjbApplication application = new OpenEjbApplication(bundle);
+ context.registerService(OpenEjbApplication.class.getName(),
+ application, null);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext
+ * )
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static EchoStatelessPlugin getDefault() {
+ return plugin;
+ }
+
+}
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/META-INF/MANIFEST.MF?rev=745106&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/META-INF/MANIFEST.MF (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/META-INF/MANIFEST.MF Tue Feb 17 14:43:32 2009
@@ -0,0 +1,12 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Client Plug-in
+Bundle-SymbolicName: echo.stateless.client; singleton:=true
+Bundle-Version: 1.0.0
+Bundle-Activator: echo.stateless.client.Activator
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ echo.stateless.bean;bundle-version="1.0.0",
+ openejb.server;bundle-version="1.0.0"
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/build.properties
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/build.properties?rev=745106&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/build.properties (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/build.properties Tue Feb 17 14:43:32 2009
@@ -0,0 +1,5 @@
+source.. = src/
+output.. = bin/
+bin.includes = plugin.xml,\
+ META-INF/,\
+ .
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/alt_about.gif
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/alt_about.gif?rev=745106&view=auto
==============================================================================
Binary file - no diff available.
Propchange: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/alt_about.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/alt_launcher.icns
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/alt_launcher.icns?rev=745106&view=auto
==============================================================================
Binary file - no diff available.
Propchange: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/alt_launcher.icns
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/alt_launcher.ico
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/alt_launcher.ico?rev=745106&view=auto
==============================================================================
Binary file - no diff available.
Propchange: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/alt_launcher.ico
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/alt_launcher.xpm
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/alt_launcher.xpm?rev=745106&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/alt_launcher.xpm (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/alt_launcher.xpm Tue Feb 17 14:43:32 2009
@@ -0,0 +1,307 @@
+/* XPM */
+static char * icon48_xpm[] = {
+"48 48 256 2",
+" c #4B4B3B3B9090",
+". c #0D0D0E0E5454",
+"X c #11110E0E5B5B",
+"o c #17170F0F6363",
+"O c #1D1D13136969",
+"+ c #212114146C6C",
+"@ c #252514147171",
+"# c #282811116C6C",
+"$ c #26260D0D6363",
+"% c #22220B0B5E5E",
+"& c #1C1C0B0B5A5A",
+"* c #1C1C0B0B5252",
+"= c #1B1B05055353",
+"- c #161606064D4D",
+"; c #161605054949",
+": c #111104044848",
+"> c #131304044545",
+", c #131305054242",
+"< c #141410105E5E",
+"1 c #2C2C15157373",
+"2 c #2B2B1B1B7575",
+"3 c #343416167272",
+"4 c #313113136E6E",
+"5 c #222209095757",
+"6 c #1B1B06064D4D",
+"7 c #15150B0B4242",
+"8 c #13130C0C5555",
+"9 c #2E2E1B1B7878",
+"0 c #33331F1F7C7C",
+"q c #343418187878",
+"w c #3B3B1C1C7575",
+"e c #2E2E10106767",
+"r c #1B1B07074747",
+"t c #18180B0B4646",
+"y c #151513136262",
+"u c #1A1A15156464",
+"i c #34341F1F7777",
+"p c #40401E1E8080",
+"a c #42421B1B7A7A",
+"s c #3B3B15157474",
+"d c #2B2B0B0B5B5B",
+"f c #222207075252",
+"g c #373727277A7A",
+"h c #474724248484",
+"j c #393915156E6E",
+"k c #373711116A6A",
+"l c #343413136363",
+"z c #232319196E6E",
+"x c #292919197070",
+"c c #3C3C2C2C8282",
+"v c #444431318585",
+"b c #494934348A8A",
+"n c #505026268A8A",
+"m c #3D3D1B1B6E6E",
+"M c #31310E0E5C5C",
+"N c #2B2B0D0D5353",
+"B c #222207074A4A",
+"V c #52523C3C9292",
+"C c #58583C3C9494",
+"Z c #5D5D44449797",
+"A c #5C5C2E2E9292",
+"S c #676733339595",
+"D c #424228287575",
+"F c #29290A0A4F4F",
+"G c #6C6C4A4A9E9E",
+"H c #72725454A7A7",
+"J c #8C8C6D6DB2B2",
+"K c #343424246E6E",
+"L c #3A3A23236A6A",
+"P c #3A3A1C1C6767",
+"I c #24240A0A4B4B",
+"U c #151518186161",
+"Y c #76766F6FA5A5",
+"T c #ADAD9191CCCC",
+"R c #98988989D3D3",
+"E c #45453B3B8686",
+"W c #3C3C35357979",
+"Q c #363631317575",
+"! c #32322D2D6B6B",
+"~ c #323229296363",
+"^ c #30301F1F6262",
+"/ c #323218185E5E",
+"( c #272707074B4B",
+") c #202028286C6C",
+"_ c #1E1E1D1D6868",
+"` c #9A9A8282BBBB",
+"' c #C8C8B3B3D3D3",
+"] c #B3B3AFAFE7E7",
+"[ c #84847272C6C6",
+"{ c #58585757A3A3",
+"} c #3F3F3C3C8A8A",
+"| c #3B3B3A3A8484",
+" . c #414139397D7D",
+".. c #3D3D39397A7A",
+"X. c #37372E2E6E6E",
+"o. c #2C2C21215A5A",
+"O. c #2E2E1B1B5B5B",
+"+. c #F5F5EFEFF5F5",
+"@. c #656566669A9A",
+"#. c #47474B4B8E8E",
+"$. c #3C3C44447B7B",
+"%. c #444442428080",
+"&. c #45453E3E8181",
+"*. c #40403C3C8181",
+"=. c #3D3D33337474",
+"-. c #3B3B30306E6E",
+";. c #38382D2D6969",
+":. c #303026265D5D",
+">. c #2C2C15155A5A",
+",. c #1F1F1C1C7070",
+"<. c #25251E1E7171",
+"1. c #59595C5C9191",
+"2. c #4D4D53538989",
+"3. c #4C4C49498484",
+"4. c #484845458585",
+"5. c #494941418585",
+"6. c #494940408181",
+"7. c #2F2F1C1C5353",
+"8. c #2B2B28287676",
+"9. c #323231317F7F",
+"0. c #545452528B8B",
+"q. c #51514E4E8989",
+"w. c #4E4E4B4B8C8C",
+"e. c #4C4C47478686",
+"r. c #46463D3D7E7E",
+"t. c #434336367A7A",
+"y. c #2B2B13135555",
+"u. c #47473D3D8D8D",
+"i. c #575757578E8E",
+"p. c #48483E3E7F7F",
+"a. c #46463A3A7D7D",
+"s. c #424235357575",
+"d. c #404034347171",
+"f. c #BFBFCBCBFAFA",
+"g. c #B8B8A8A8DDDD",
+"h. c #5E5E60609292",
+"j. c #565655558C8C",
+"k. c #4B4B44448282",
+"l. c #454539397B7B",
+"z. c #434338387878",
+"x. c #3F3F32326D6D",
+"c. c #3D3D30306969",
+"v. c #3A3A2E2E6363",
+"b. c #36362A2A5C5C",
+"n. c #343424245555",
+"m. c #30301E1E4D4D",
+"M. c #49493C3C8282",
+"N. c #5E5E4F4F8C8C",
+"B. c #56563B3B8B8B",
+"V. c #545407078585",
+"C. c #424234347272",
+"Z. c #9797A4A4F7F7",
+"A. c #444436367676",
+"S. c #7D7D7979D5D5",
+"D. c #464640408A8A",
+"F. c #44444B4B8282",
+"G. c #414107077777",
+"H. c #71716161C1C1",
+"J. c #303039397979",
+"K. c #8E8E8E8EE6E6",
+"L. c #404033338B8B",
+"P. c #4A4A45458C8C",
+"I. c #46463A3A8080",
+"U. c #363629295454",
+"Y. c #303022224848",
+"T. c #424237377575",
+"R. c #2E2E1D1D6363",
+"E. c #79798383EAEA",
+"W. c #74747B7BE4E4",
+"Q. c #6D6D7676D6D6",
+"!. c #6A6A7171CECE",
+"~. c #66666969C6C6",
+"^. c #62626565BCBC",
+"/. c #5F5F6060B5B5",
+"(. c #5B5B5B5BACAC",
+"). c #535353539898",
+"_. c #4F4F4F4FA4A4",
+"`. c #54544D4DA4A4",
+"'. c #323204046B6B",
+"]. c #303035357979",
+"[. c #313122224343",
+"{. c #5A5A5B5BB7B7",
+"}. c #484846468080",
+"|. c #454541417575",
+" X c #4B4B31318282",
+".X c #47473C3C8484",
+"XX c #3E3E35356E6E",
+"oX c #2F2F26264040",
+"OX c #2B2B23233A3A",
+"+X c #262619195C5C",
+"@X c #252515155A5A",
+"#X c #55555151B3B3",
+"$X c #3C3C2D2D5D5D",
+"%X c #39392F2F5656",
+"&X c #37372D2D5050",
+"*X c #25251F1F3030",
+"=X c #24241D1D4343",
+"-X c #202013135656",
+";X c #41413B3B6C6C",
+":X c #444442429696",
+">X c #212100005E5E",
+",X c #444436367272",
+"<X c #444436366F6F",
+"1X c #424236366868",
+"2X c #3F3F34346161",
+"3X c #3C3C32325A5A",
+"4X c #34342A2A4A4A",
+"5X c #21211B1B2121",
+"6X c #22221C1C6363",
+"7X c #2D2D01015E5E",
+"8X c #20201B1B2525",
+"9X c #49492F2F7B7B",
+"0X c #434334346C6C",
+"qX c #323229294545",
+"wX c #1C1C10104F4F",
+"eX c #222217176363",
+"rX c #37371E1E6B6B",
+"tX c #424232326E6E",
+"yX c #444433336969",
+"uX c #424233336565",
+"iX c #1E1E1A1A1E1E",
+"pX c #161601014C4C",
+"aX c #1C1C11115454",
+"sX c #252503035B5B",
+"dX c #414131316A6A",
+"fX c #22221F1F7878",
+"gX c #272724246767",
+"hX c #1D1D16165E5E",
+"jX c #131305055151",
+"kX c #40402F2F6464",
+"lX c #111107074E4E",
+"zX c #0C0C05054B4B",
+"xX c #22221E1E5757",
+"cX c #1A1A0D0D4D4D",
+"vX c #16160B0B4D4D",
+"bX c #060604044747",
+"nX c #040403034343",
+"mX c #3B3B27276565",
+"MX c #0E0E03034141",
+"NX c #111106064A4A",
+"BX c #0E0E04044646",
+"VX c #111105053B3B",
+"CX c #0D0D01013A3A",
+"ZX c #030305053F3F",
+"AX c #0F0F0F0F4C4C",
+"SX c #020207073B3B",
+"DX c #0D0D03034646",
+"FX c #0B0B02023F3F",
+"GX c #0D0D02023434",
+"HX c #0A0A0E0E4444",
+"JX c #161614145252",
+"KX c #0B0B04044646",
+"LX c #0A0A03034444",
+"PX c #1D1D21215757",
+"IX c #090910104040",
+"UX c #18181E1E5353",
+" ",
+" . . . . X X o o o o O + + @ @ @ @ @ @ @ # # # # # # $ $ % % & & & & * = - - - ; : > > , , , ",
+" . . X X < < o o O O + @ 1 2 2 1 1 1 1 1 1 1 1 3 4 # # $ $ $ % % % 5 = = 6 6 - ; ; > > , , 7 ",
+" . 8 < < < o O O + @ @ 2 9 9 0 0 q q q q q q q w 3 4 4 e e $ $ $ $ % 5 = = 6 6 6 ; ; > > r t ",
+" . X < y u O O + @ 1 2 i 0 0 p p p p p p p a a p a s 3 4 4 e e e e d 5 5 f f 6 6 6 ; ; r r t ",
+" X < y u O + + @ 2 9 0 g p p h h h h h h h p h h a a s s j k k j l d d 5 5 f f 6 6 r r r r r ",
+" X < y O z x x 9 0 g c v b n n n n n n n n n n n h a a s s j j m l M d d N f f B B B B r r r ",
+" < y u + z 2 0 c c b V C Z C C A A A A A S S S n h D w w m m m m k l M d d N f F F F B r r r ",
+" < y O z z 9 c b V Z G H H H G S G G J J H V v c g g K K K K L P l l l M M N N N N I B B r r ",
+" U u + z x i v C H Y J J J J H J T R H V E W W Q Q Q Q ! ! ! ~ ^ ^ / / M M M M M N ( B B r r ",
+" ) _ z x 9 g b Z Y ` ' ' ' T T ] [ { } | .........W W Q Q X.! ~ ~ o.O./ / / / N F ( B B B r ",
+" ) ) z x i c V G J ' +.+.+.+.] [ @.#.$.%.%.%.&.*. . .....W =.-.X.;.~ :.o.O.^ >.N F ( B B B B ",
+" ) ,.<.2 g v C H J ' +.+.+.+.T Y 1.2.3.4.4.4.5.6.&.&. . ...W =.=.-.;.~ :.o.7.>.N F F ( B I I ",
+" ) ,.<.8.9.b C H J T +.+.+.' J @.1.0.q.q.w.e.4.5.6.&.r. . .t.W =.=.-.;.~ :.o.7.y.N F ( ( I I ",
+" 8.8.8.9.| u.C G J T +.+.' ` Y @.1.i.0.q.q.e.e.5.6.p.r.a. .t.t.s.d.d.-.;.~ :.7.7.y.F F ( I I ",
+" 9.c c c v b A S H ' f.g.` Y @.h.1.i.j.0.q.q.e.k.6.p.r.a.l.t.z.s.s.d.x.c.v.b.n.m.7.N F F F I ",
+" <.g M.N.B.B.n V.J f.R J @.h.h.1.i.i.j.j.0.q.3.k.6.p.r.a.l.l.z.s.C.d.x.x.c.v.b.n.m.y.N F F F ",
+" + x i v B.Z Z G g.Z.[ @.2.i.i.j.j.j.j.j.0.q.3.k.6.p.p.a.l.l.A.s.C.C.d.x.c.v.b.n.m.7.y.N N y. ",
+" O # 3 w p n Z ` f.S.H D.F.q.0.0.0.0.j.0.q.q.3.k.6.p.r.a.a.l.A.s.s.C.d.x.x.c.v.b.n.m.y.y.y.y. ",
+" O # 4 s a G.V.T Z.H.V J.%.e.w.q.0.0.0.0.q.q.e.k.6.p.r.a.a.l.z.A.s.C.d.d.x.c.v.b.n.m.7.>.y.y. ",
+" O # 4 s w G.A f.K.H L...4.P.w.w.w.q.q.q.q.e.e.5.6.M.I.I.a.a.l.z.A.s.d.d.x.c.v.v.U.Y.7.O.>.y. ",
+" $ # 4 3 s G.G f.S.Z 9.*.D.P.P.w.w.w.w.w.e.e.5.5.M.M.I.I.a.a.l.z.T.s.d.d.x.x.c.v.U.Y.m.R.>.>. ",
+" E.E.W.W.W.W.E.Z.E.W.Q.Q.Q.Q.Q.Q.Q.Q.Q.Q.!.!.!.!.!.~.~.~.~.~.~.^.^.^.^.^./././.(.{ { )._.`._. ",
+" + # 3 w s '.` f.H.V ].*.D.P.P.P.P.P.P.P.5.5.5.M.M.M.I.I.a.l.z.z.T.T.s.d.d.x.c.v.U.Y.[.^ O.>. ",
+" ~.~.~.~.~.~.K.Z.S.~.{.^.^.^.^.^.^.^.^././././././.(.(.(.(.(.(.{ { { { { ).).).w.w.}.|.P.u.} ",
+" .I.6. X X XT f.H.b ].*.E D.D.D.D.5.5..X.XM.M.I.I.a.a.l.l.z.z.T.T.T.d.XXx.c.v.b.U.oXOXR.+X@X ",
+" E.E.E.W.W.W.K.Z.E.W.Q.Q.Q.Q.Q.Q.Q.Q.!.!.!.!.!.!.~.~.~.~.~.~.^.^.^.^.^./././.(.{ { ).).#X_._. ",
+" & % $ e '.= H f.H.b 8.W *.E E E .X.X.XI.I.I.I.a.a.l.l.z.z.T.T.T.C.XXXXc.v.$X%X&XY.*X=X2 @X-X ",
+" {.{.{.{.{.#X~.Z.W.~.{.{./././././././././.(.(.(.(.(.(.(.{ { { { { { ).).).w.w.3.}.;X%.:X} } ",
+" & & % $ e >XV.f.S.C K X.W t. . .l.l.t.t.t.t.A.A.A.,X,X,X,X,X<X;X1X1X2X3X%X&X4XoX*X5Xo.6X-X-X ",
+" & & % $ $ >X7X` Z.Z D ! =.=.s.t.t.t.A.A.s.A.,X,X,X,X<X<X<X<X;X1X2X2X3X%X&X4XoXOX8X5X<.@X-X-X ",
+" 8 & & $ e K 9XJ f.^. XK X.=.=.s.s.s.s.s.C.C.C.C.<X0X0X0X1X1X1X2X2X3X%X&X4XqXOX*X8X=X<.-X-XwX ",
+" 8 & eXK k.@.M. Xg.E.B.rX~ -.d.d.C.C.C.C.C.tX0X0X0XyXyX1X1XuX2X2X3X%X&X4XqXoXOX8XiX6XeX-X-XwX ",
+" 6XQ h.Y N.K e pXB.f./.9Xo.;.-.x.d.tXtXtXtXtX0X0XyXyXyXuXuX2X2X3X%X&X4XqXoXOX*XiX=X_ aX-XaXwX ",
+" Y Y .R.@X% sX= 7XT Z.V P :.;.c.x.x.x.tXdXdXdXyXyXuXuX2X2X3X3X%X&X4XqXoXOX*X8X*XfXaXaXaXwXwX ",
+" gXhX& * & 5 5 sXjXa ] S.9X/ ~ v.c.dXdXdXdXdXuXuXuXkX2X2X3X%X%X&X4XqXoXOX*X8XiX<.hXwXwXaXwXwX ",
+" 8 lXlXjX= * 5 5 = zX9X] H.D 7.b.v.v.kXc.kXkXkXkXkX2X$X3X%X&X&X4XqXoXOX*X8XiXxXhXwXcXcXwXwXwX ",
+" zXzXlXlXjX= = f f sXD Y ] ~.D 7.n.b.v.v.kXkXkXkX$X$X%X%X&X4XqXoXoXOX*X8X5XgXu cXvXvXcXcXwXwX ",
+" bXbXzXlXlX- = * @XX.h.e D T S.D n.m.b.$X$X$X$X$X%X%X&X&X4XqXoXOX*X8X8X*X<.hXvX; ; vXvXvXcXwX ",
+" nXbXzXzXlXlX- -XX.Y R.pXpXP J K.Z mXm.n.U.U.U.U.U.4X4XY.oXOX*X8X8X8X=X,.aXvX; > > > t t t cX ",
+" nXbXbXzXzXlXaXXXY +Xf = f = 7XtXR R mXn.Y.[.[.[.[.OX*X*X8X5X*X=X,.u vXvX; > > MXMX, 7 t t ",
+" nXnXnXbXzXvX-.Y +XcX6 6 = = = d L B.G H `.X.:.7.m.=X=X=X=X=X6X,.u cXvXNX: BX> MXVXCXVX7 7 7 ",
+" ZXZXnXbXAXgX@.+XvX; - - - - * @XR.>.sX>.R.i 0 x eXeXeXeXO hXaXcXvXNX: BXMXMXMXVXCXCXCXVX7 7 ",
+" SXZXZXAXgXN.aXNX: : NXNXNX- * +X+X* 6 6 6 * * * * * * * vXvX- NX: DXBXMXMXFXCXCXCXCXGXVXVX7 ",
+" SXSXHXgX0.JXKXLXKXKXDX: : NX* @X-X- - - - - - - - - - - NX: DXDXDXMXMXFXFXCXCXCXCXGXGXGXVXVX ",
+" SXHXPX3.JXnXnXnXnXbXLXKXKXNXaX-XvX: : NX: : : : : : : BXDXDXLXMXMXFXFXCXCXCXCXGXGXGXGXGXGXGX ",
+" IXUX$.AXZXZXZXZXnXnXnXLXLXNXJXvXBXDXBXBXBXBXDXDXDXDXLXDXLXLXFXFXFXFXCXCXCXCXGXGXGXGXGXGXGXGX ",
+" "};
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/alt_window_16.gif
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/alt_window_16.gif?rev=745106&view=auto
==============================================================================
Binary file - no diff available.
Propchange: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/alt_window_16.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/alt_window_32.gif
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/alt_window_32.gif?rev=745106&view=auto
==============================================================================
Binary file - no diff available.
Propchange: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/icons/alt_window_32.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/plugin.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/plugin.xml?rev=745106&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/plugin.xml (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/plugin.xml Tue Feb 17 14:43:32 2009
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.2"?>
+<plugin>
+
+ <extension
+ id="application"
+ point="org.eclipse.core.runtime.applications">
+ <application>
+ <run
+ class="echo.stateless.client.Application">
+ </run>
+ </application>
+ </extension>
+ <extension
+ point="org.eclipse.ui.perspectives">
+ <perspective
+ name="RCP Perspective"
+ class="echo.stateless.client.Perspective"
+ id="echo.stateless.client.perspective">
+ </perspective>
+ </extension>
+
+</plugin>
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/Activator.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/Activator.java?rev=745106&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/Activator.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/Activator.java Tue Feb 17 14:43:32 2009
@@ -0,0 +1,72 @@
+package echo.stateless.client;
+
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "echo.stateless.client";
+
+ // The shared instance
+ private static Activator plugin;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext
+ * )
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ Bundle app = Platform.getBundle("echo.stateless.bean");
+ app.start();
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext
+ * )
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static Activator getDefault() {
+ return plugin;
+ }
+
+ /**
+ * Returns an image descriptor for the image file at the given plug-in
+ * relative path
+ *
+ * @param path
+ * the path
+ * @return the image descriptor
+ */
+ public static ImageDescriptor getImageDescriptor(String path) {
+ return imageDescriptorFromPlugin(PLUGIN_ID, path);
+ }
+}
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/Application.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/Application.java?rev=745106&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/Application.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/Application.java Tue Feb 17 14:43:32 2009
@@ -0,0 +1,54 @@
+package echo.stateless.client;
+
+import org.eclipse.equinox.app.IApplication;
+import org.eclipse.equinox.app.IApplicationContext;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.PlatformUI;
+
+/**
+ * This class controls all aspects of the application's execution
+ */
+public class Application implements IApplication {
+
+ /*
+ * (non-Javadoc)
+ *
+ * @seeorg.eclipse.equinox.app.IApplication#start(org.eclipse.equinox.app.
+ * IApplicationContext)
+ */
+ public Object start(IApplicationContext context) throws Exception {
+ EchoClient client = new EchoClient();
+ System.out.println(client.echo("Hello World"));
+ Display display = PlatformUI.createDisplay();
+ try {
+ int returnCode = PlatformUI.createAndRunWorkbench(display,
+ new ApplicationWorkbenchAdvisor());
+ if (returnCode == PlatformUI.RETURN_RESTART)
+ return IApplication.EXIT_RESTART;
+ else
+ return IApplication.EXIT_OK;
+ } finally {
+ display.dispose();
+ }
+
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.equinox.app.IApplication#stop()
+ */
+ public void stop() {
+ final IWorkbench workbench = PlatformUI.getWorkbench();
+ if (workbench == null)
+ return;
+ final Display display = workbench.getDisplay();
+ display.syncExec(new Runnable() {
+ public void run() {
+ if (!display.isDisposed())
+ workbench.close();
+ }
+ });
+ }
+}
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/ApplicationActionBarAdvisor.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/ApplicationActionBarAdvisor.java?rev=745106&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/ApplicationActionBarAdvisor.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/ApplicationActionBarAdvisor.java Tue Feb 17 14:43:32 2009
@@ -0,0 +1,20 @@
+package echo.stateless.client;
+
+import org.eclipse.jface.action.IMenuManager;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.application.ActionBarAdvisor;
+import org.eclipse.ui.application.IActionBarConfigurer;
+
+public class ApplicationActionBarAdvisor extends ActionBarAdvisor {
+
+ public ApplicationActionBarAdvisor(IActionBarConfigurer configurer) {
+ super(configurer);
+ }
+
+ protected void makeActions(IWorkbenchWindow window) {
+ }
+
+ protected void fillMenuBar(IMenuManager menuBar) {
+ }
+
+}
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/ApplicationWorkbenchAdvisor.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/ApplicationWorkbenchAdvisor.java?rev=745106&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/ApplicationWorkbenchAdvisor.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/ApplicationWorkbenchAdvisor.java Tue Feb 17 14:43:32 2009
@@ -0,0 +1,19 @@
+package echo.stateless.client;
+
+import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
+import org.eclipse.ui.application.WorkbenchAdvisor;
+import org.eclipse.ui.application.WorkbenchWindowAdvisor;
+
+public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor {
+
+ private static final String PERSPECTIVE_ID = "echo.stateless.client.perspective";
+
+ public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor(
+ IWorkbenchWindowConfigurer configurer) {
+ return new ApplicationWorkbenchWindowAdvisor(configurer);
+ }
+
+ public String getInitialWindowPerspectiveId() {
+ return PERSPECTIVE_ID;
+ }
+}
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/ApplicationWorkbenchWindowAdvisor.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/ApplicationWorkbenchWindowAdvisor.java?rev=745106&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/ApplicationWorkbenchWindowAdvisor.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/ApplicationWorkbenchWindowAdvisor.java Tue Feb 17 14:43:32 2009
@@ -0,0 +1,28 @@
+package echo.stateless.client;
+
+import org.eclipse.swt.graphics.Point;
+import org.eclipse.ui.application.ActionBarAdvisor;
+import org.eclipse.ui.application.IActionBarConfigurer;
+import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
+import org.eclipse.ui.application.WorkbenchWindowAdvisor;
+
+public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor {
+
+ public ApplicationWorkbenchWindowAdvisor(
+ IWorkbenchWindowConfigurer configurer) {
+ super(configurer);
+ }
+
+ public ActionBarAdvisor createActionBarAdvisor(
+ IActionBarConfigurer configurer) {
+ return new ApplicationActionBarAdvisor(configurer);
+ }
+
+ public void preWindowOpen() {
+ IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
+ configurer.setInitialSize(new Point(400, 300));
+ configurer.setShowCoolBar(false);
+ configurer.setShowStatusLine(false);
+ configurer.setTitle("Echo Stateless Application");
+ }
+}
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/EchoClient.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/EchoClient.java?rev=745106&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/EchoClient.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/EchoClient.java Tue Feb 17 14:43:32 2009
@@ -0,0 +1,30 @@
+package echo.stateless.client;
+
+import java.util.Properties;
+
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+
+import echo.stateless.bean.EchoServer;
+
+public class EchoClient {
+
+ private EchoServer server;
+
+ public EchoClient() {
+ try {
+ Properties p = new Properties();
+ p.put(Context.INITIAL_CONTEXT_FACTORY,
+ "org.apache.openejb.client.LocalInitialContextFactory");
+ InitialContext initialContext = new InitialContext(p);
+ server = (EchoServer) initialContext.lookup("EchoServerBeanRemote");
+ } catch (NamingException e) {
+ server = null;
+ }
+ }
+
+ public String echo(String message) {
+ return server.echo(message);
+ }
+}
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/Perspective.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/Perspective.java?rev=745106&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/Perspective.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/echo.stateless.client/src/echo/stateless/client/Perspective.java Tue Feb 17 14:43:32 2009
@@ -0,0 +1,10 @@
+package echo.stateless.client;
+
+import org.eclipse.ui.IPageLayout;
+import org.eclipse.ui.IPerspectiveFactory;
+
+public class Perspective implements IPerspectiveFactory {
+
+ public void createInitialLayout(IPageLayout layout) {
+ }
+}
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/META-INF/MANIFEST.MF?rev=745106&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/META-INF/MANIFEST.MF (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/META-INF/MANIFEST.MF Tue Feb 17 14:43:32 2009
@@ -0,0 +1,705 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: OpenEJB Server Bundle
+Bundle-SymbolicName: openejb.server;singleton:=true
+Bundle-Version: 1.0.0
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Eclipse-BuddyPolicy: registered
+Export-Package: com.ctc.wstx.api,
+ com.ctc.wstx.cfg,
+ com.ctc.wstx.compat,
+ com.ctc.wstx.dom,
+ com.ctc.wstx.dtd,
+ com.ctc.wstx.ent,
+ com.ctc.wstx.evt,
+ com.ctc.wstx.exc,
+ com.ctc.wstx.io,
+ com.ctc.wstx.msv,
+ com.ctc.wstx.sax,
+ com.ctc.wstx.sr,
+ com.ctc.wstx.stax,
+ com.ctc.wstx.sw,
+ com.ctc.wstx.util,
+ com.ibm.wsdl,
+ com.ibm.wsdl.extensions,
+ com.ibm.wsdl.extensions.http,
+ com.ibm.wsdl.extensions.mime,
+ com.ibm.wsdl.extensions.schema,
+ com.ibm.wsdl.extensions.soap,
+ com.ibm.wsdl.extensions.soap12,
+ com.ibm.wsdl.factory,
+ com.ibm.wsdl.util,
+ com.ibm.wsdl.util.xml,
+ com.ibm.wsdl.xml,
+ com.sun.istack,
+ com.sun.xml.bind,
+ com.sun.xml.bind.annotation,
+ com.sun.xml.bind.api,
+ com.sun.xml.bind.api.impl,
+ com.sun.xml.bind.marshaller,
+ com.sun.xml.bind.unmarshaller,
+ com.sun.xml.bind.util,
+ com.sun.xml.bind.v2,
+ com.sun.xml.bind.v2.bytecode,
+ com.sun.xml.bind.v2.model.annotation,
+ com.sun.xml.bind.v2.model.core,
+ com.sun.xml.bind.v2.model.impl,
+ com.sun.xml.bind.v2.model.nav,
+ com.sun.xml.bind.v2.model.runtime,
+ com.sun.xml.bind.v2.runtime,
+ com.sun.xml.bind.v2.runtime.output,
+ com.sun.xml.bind.v2.runtime.property,
+ com.sun.xml.bind.v2.runtime.reflect,
+ com.sun.xml.bind.v2.runtime.reflect.opt,
+ com.sun.xml.bind.v2.runtime.unmarshaller,
+ com.sun.xml.bind.v2.schemagen,
+ com.sun.xml.bind.v2.schemagen.xmlschema,
+ com.sun.xml.bind.v2.util,
+ com.sun.xml.messaging.saaj,
+ com.sun.xml.messaging.saaj.client.p2p,
+ com.sun.xml.messaging.saaj.packaging.mime,
+ com.sun.xml.messaging.saaj.packaging.mime.internet,
+ com.sun.xml.messaging.saaj.packaging.mime.util,
+ com.sun.xml.messaging.saaj.soap,
+ com.sun.xml.messaging.saaj.soap.dynamic,
+ com.sun.xml.messaging.saaj.soap.impl,
+ com.sun.xml.messaging.saaj.soap.name,
+ com.sun.xml.messaging.saaj.soap.ver1_1,
+ com.sun.xml.messaging.saaj.soap.ver1_2,
+ com.sun.xml.messaging.saaj.util,
+ com.sun.xml.messaging.saaj.util.transform,
+ com.sun.xml.txw2,
+ com.sun.xml.txw2.annotation,
+ com.sun.xml.txw2.output,
+ edu.emory.mathcs.backport.java.util,
+ edu.emory.mathcs.backport.java.util.concurrent,
+ edu.emory.mathcs.backport.java.util.concurrent.atomic,
+ edu.emory.mathcs.backport.java.util.concurrent.helpers,
+ edu.emory.mathcs.backport.java.util.concurrent.locks,
+ javax.activation,
+ javax.annotation,
+ javax.annotation.security,
+ javax.ejb,
+ javax.ejb.spi,
+ javax.enterprise.deploy.model,
+ javax.enterprise.deploy.model.exceptions,
+ javax.enterprise.deploy.shared,
+ javax.enterprise.deploy.shared.factories,
+ javax.enterprise.deploy.spi,
+ javax.enterprise.deploy.spi.exceptions,
+ javax.enterprise.deploy.spi.factories,
+ javax.enterprise.deploy.spi.status,
+ javax.interceptor,
+ javax.jms,
+ javax.jws,
+ javax.jws.soap,
+ javax.mail,
+ javax.mail.event,
+ javax.mail.internet,
+ javax.mail.search,
+ javax.mail.util,
+ javax.management.j2ee,
+ javax.management.j2ee.statistics,
+ javax.persistence,
+ javax.persistence.spi,
+ javax.resource,
+ javax.resource.cci,
+ javax.resource.spi,
+ javax.resource.spi.endpoint,
+ javax.resource.spi.security,
+ javax.resource.spi.work,
+ javax.security.jacc,
+ javax.servlet,
+ javax.servlet.http,
+ javax.transaction,
+ javax.transaction.xa,
+ javax.wsdl,
+ javax.wsdl.extensions,
+ javax.wsdl.extensions.http,
+ javax.wsdl.extensions.mime,
+ javax.wsdl.extensions.schema,
+ javax.wsdl.extensions.soap,
+ javax.wsdl.extensions.soap12,
+ javax.wsdl.factory,
+ javax.wsdl.xml,
+ javax.xml,
+ javax.xml.bind,
+ javax.xml.bind.annotation,
+ javax.xml.bind.annotation.adapters,
+ javax.xml.bind.attachment,
+ javax.xml.bind.helpers,
+ javax.xml.bind.util,
+ javax.xml.namespace,
+ javax.xml.registry,
+ javax.xml.registry.infomodel,
+ javax.xml.rpc,
+ javax.xml.rpc.encoding,
+ javax.xml.rpc.handler,
+ javax.xml.rpc.handler.soap,
+ javax.xml.rpc.holders,
+ javax.xml.rpc.server,
+ javax.xml.rpc.soap,
+ javax.xml.soap,
+ javax.xml.stream,
+ javax.xml.stream.events,
+ javax.xml.stream.util,
+ javax.xml.ws,
+ javax.xml.ws.handler,
+ javax.xml.ws.handler.soap,
+ javax.xml.ws.http,
+ javax.xml.ws.soap,
+ javax.xml.ws.spi,
+ javax.xml.ws.wsaddressing,
+ org.apache.activeio.adapter,
+ org.apache.activeio.journal,
+ org.apache.activeio.journal.active,
+ org.apache.activeio.journal.howl,
+ org.apache.activeio.oneport,
+ org.apache.activeio.packet,
+ org.apache.activeio.xnet,
+ org.apache.activeio.xnet.hba,
+ org.apache.activemq,
+ org.apache.activemq.advisory,
+ org.apache.activemq.broker,
+ org.apache.activemq.broker.ft,
+ org.apache.activemq.broker.jmx,
+ org.apache.activemq.broker.region,
+ org.apache.activemq.broker.region.cursors,
+ org.apache.activemq.broker.region.group,
+ org.apache.activemq.broker.region.policy,
+ org.apache.activemq.broker.region.virtual,
+ org.apache.activemq.broker.util,
+ org.apache.activemq.broker.view,
+ org.apache.activemq.command,
+ org.apache.activemq.filter,
+ org.apache.activemq.jndi,
+ org.apache.activemq.kaha,
+ org.apache.activemq.kaha.impl,
+ org.apache.activemq.kaha.impl.container,
+ org.apache.activemq.kaha.impl.data,
+ org.apache.activemq.kaha.impl.index,
+ org.apache.activemq.management,
+ org.apache.activemq.memory,
+ org.apache.activemq.memory.buffer,
+ org.apache.activemq.memory.list,
+ org.apache.activemq.network,
+ org.apache.activemq.network.jms,
+ org.apache.activemq.openwire,
+ org.apache.activemq.openwire.v1,
+ org.apache.activemq.openwire.v2,
+ org.apache.activemq.pool,
+ org.apache.activemq.proxy,
+ org.apache.activemq.ra,
+ org.apache.activemq.security,
+ org.apache.activemq.selector,
+ org.apache.activemq.spring,
+ org.apache.activemq.state,
+ org.apache.activemq.store,
+ org.apache.activemq.store.jdbc,
+ org.apache.activemq.store.jdbc.adapter,
+ org.apache.activemq.store.journal,
+ org.apache.activemq.store.kahadaptor,
+ org.apache.activemq.store.memory,
+ org.apache.activemq.store.rapid,
+ org.apache.activemq.thread,
+ org.apache.activemq.transaction,
+ org.apache.activemq.transport,
+ org.apache.activemq.transport.discovery,
+ org.apache.activemq.transport.discovery.multicast,
+ org.apache.activemq.transport.discovery.rendezvous,
+ org.apache.activemq.transport.discovery.simple,
+ org.apache.activemq.transport.failover,
+ org.apache.activemq.transport.fanout,
+ org.apache.activemq.transport.mock,
+ org.apache.activemq.transport.multicast,
+ org.apache.activemq.transport.peer,
+ org.apache.activemq.transport.reliable,
+ org.apache.activemq.transport.stomp,
+ org.apache.activemq.transport.tcp,
+ org.apache.activemq.transport.udp,
+ org.apache.activemq.transport.vm,
+ org.apache.activemq.util,
+ org.apache.activemq.wireformat,
+ org.apache.activemq.xbean,
+ org.apache.commons.cli,
+ org.apache.commons.collections,
+ org.apache.commons.collections.bag,
+ org.apache.commons.collections.bidimap,
+ org.apache.commons.collections.buffer,
+ org.apache.commons.collections.collection,
+ org.apache.commons.collections.comparators,
+ org.apache.commons.collections.functors,
+ org.apache.commons.collections.iterators,
+ org.apache.commons.collections.keyvalue,
+ org.apache.commons.collections.list,
+ org.apache.commons.collections.map,
+ org.apache.commons.collections.set,
+ org.apache.commons.dbcp,
+ org.apache.commons.dbcp.cpdsadapter,
+ org.apache.commons.dbcp.datasources,
+ org.apache.commons.dbcp.managed,
+ org.apache.commons.jocl,
+ org.apache.commons.lang,
+ org.apache.commons.lang.builder,
+ org.apache.commons.lang.enums,
+ org.apache.commons.lang.exception,
+ org.apache.commons.lang.math,
+ org.apache.commons.lang.mutable,
+ org.apache.commons.lang.time,
+ org.apache.commons.logging,
+ org.apache.commons.logging.impl,
+ org.apache.commons.pool,
+ org.apache.commons.pool.impl,
+ org.apache.cxf,
+ org.apache.cxf.aegis,
+ org.apache.cxf.aegis.databinding,
+ org.apache.cxf.aegis.type,
+ org.apache.cxf.aegis.type.basic,
+ org.apache.cxf.aegis.type.collection,
+ org.apache.cxf.aegis.type.java5,
+ org.apache.cxf.aegis.type.mtom,
+ org.apache.cxf.aegis.type.xml,
+ org.apache.cxf.aegis.util,
+ org.apache.cxf.aegis.util.date,
+ org.apache.cxf.aegis.util.jdom,
+ org.apache.cxf.aegis.util.stax,
+ org.apache.cxf.aegis.xml,
+ org.apache.cxf.aegis.xml.jdom,
+ org.apache.cxf.aegis.xml.stax,
+ org.apache.cxf.attachment,
+ org.apache.cxf.binding,
+ org.apache.cxf.binding.coloc,
+ org.apache.cxf.binding.coloc.feature,
+ org.apache.cxf.binding.coloc.spring,
+ org.apache.cxf.binding.http,
+ org.apache.cxf.binding.http.interceptor,
+ org.apache.cxf.binding.http.strategy,
+ org.apache.cxf.binding.object,
+ org.apache.cxf.binding.object.spring,
+ org.apache.cxf.binding.soap,
+ org.apache.cxf.binding.soap.interceptor,
+ org.apache.cxf.binding.soap.model,
+ org.apache.cxf.binding.soap.saaj,
+ org.apache.cxf.binding.soap.spring,
+ org.apache.cxf.binding.soap.wsdl11,
+ org.apache.cxf.binding.xml,
+ org.apache.cxf.binding.xml.interceptor,
+ org.apache.cxf.binding.xml.wsdl11,
+ org.apache.cxf.bindings.xformat,
+ org.apache.cxf.bus,
+ org.apache.cxf.bus.extension,
+ org.apache.cxf.bus.resource,
+ org.apache.cxf.bus.spring,
+ org.apache.cxf.buslifecycle,
+ org.apache.cxf.catalog,
+ org.apache.cxf.clustering,
+ org.apache.cxf.clustering.spring,
+ org.apache.cxf.common.annotation,
+ org.apache.cxf.common.classloader,
+ org.apache.cxf.common.commands,
+ org.apache.cxf.common.i18n,
+ org.apache.cxf.common.injection,
+ org.apache.cxf.common.logging,
+ org.apache.cxf.common.util,
+ org.apache.cxf.common.util.factory,
+ org.apache.cxf.common.xmlschema,
+ org.apache.cxf.configuration,
+ org.apache.cxf.configuration.jsse,
+ org.apache.cxf.configuration.jsse.spring,
+ org.apache.cxf.configuration.security,
+ org.apache.cxf.configuration.spring,
+ org.apache.cxf.databinding,
+ org.apache.cxf.databinding.source,
+ org.apache.cxf.databinding.stax,
+ org.apache.cxf.endpoint,
+ org.apache.cxf.endpoint.dynamic,
+ org.apache.cxf.event,
+ org.apache.cxf.extension,
+ org.apache.cxf.feature,
+ org.apache.cxf.frontend,
+ org.apache.cxf.frontend.spring,
+ org.apache.cxf.headers,
+ org.apache.cxf.helpers,
+ org.apache.cxf.interceptor,
+ org.apache.cxf.io,
+ org.apache.cxf.jaxb,
+ org.apache.cxf.jaxb.attachment,
+ org.apache.cxf.jaxb.io,
+ org.apache.cxf.jaxws,
+ org.apache.cxf.jaxws.binding,
+ org.apache.cxf.jaxws.binding.http,
+ org.apache.cxf.jaxws.binding.soap,
+ org.apache.cxf.jaxws.context,
+ org.apache.cxf.jaxws.handler,
+ org.apache.cxf.jaxws.handler.logical,
+ org.apache.cxf.jaxws.handler.soap,
+ org.apache.cxf.jaxws.interceptors,
+ org.apache.cxf.jaxws.javaee,
+ org.apache.cxf.jaxws.spi,
+ org.apache.cxf.jaxws.spring,
+ org.apache.cxf.jaxws.support,
+ org.apache.cxf.js.rhino,
+ org.apache.cxf.management,
+ org.apache.cxf.management.annotation,
+ org.apache.cxf.management.counters,
+ org.apache.cxf.management.interceptor,
+ org.apache.cxf.management.jmx,
+ org.apache.cxf.management.jmx.export.runtime,
+ org.apache.cxf.management.utils,
+ org.apache.cxf.message,
+ org.apache.cxf.phase,
+ org.apache.cxf.resource,
+ org.apache.cxf.security,
+ org.apache.cxf.security.transport,
+ org.apache.cxf.service,
+ org.apache.cxf.service.factory,
+ org.apache.cxf.service.invoker,
+ org.apache.cxf.service.model,
+ org.apache.cxf.simple,
+ org.apache.cxf.staxutils,
+ org.apache.cxf.test,
+ org.apache.cxf.tools.common,
+ org.apache.cxf.tools.common.dom,
+ org.apache.cxf.tools.common.extensions.soap,
+ org.apache.cxf.tools.common.model,
+ org.apache.cxf.tools.common.toolspec,
+ org.apache.cxf.tools.common.toolspec.parser,
+ org.apache.cxf.tools.java2wsdl,
+ org.apache.cxf.tools.java2wsdl.generator,
+ org.apache.cxf.tools.java2wsdl.generator.wsdl11,
+ org.apache.cxf.tools.java2wsdl.generator.wsdl11.annotator,
+ org.apache.cxf.tools.java2wsdl.generator.wsdl11.model,
+ org.apache.cxf.tools.java2wsdl.processor,
+ org.apache.cxf.tools.java2wsdl.processor.internal,
+ org.apache.cxf.tools.java2wsdl.processor.internal.jaxws,
+ org.apache.cxf.tools.misc,
+ org.apache.cxf.tools.misc.processor,
+ org.apache.cxf.tools.misc.processor.address,
+ org.apache.cxf.tools.plugin,
+ org.apache.cxf.tools.util,
+ org.apache.cxf.tools.validator,
+ org.apache.cxf.tools.validator.internal,
+ org.apache.cxf.tools.validator.internal.model,
+ org.apache.cxf.tools.wsdlto,
+ org.apache.cxf.tools.wsdlto.core,
+ org.apache.cxf.tools.wsdlto.databinding.jaxb,
+ org.apache.cxf.tools.wsdlto.frontend.jaxws,
+ org.apache.cxf.tools.wsdlto.frontend.jaxws.customization,
+ org.apache.cxf.tools.wsdlto.frontend.jaxws.generators,
+ org.apache.cxf.tools.wsdlto.frontend.jaxws.processor,
+ org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal,
+ org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.annotator,
+ org.apache.cxf.tools.wsdlto.frontend.jaxws.processor.internal.mapper,
+ org.apache.cxf.tools.wsdlto.frontend.jaxws.validator,
+ org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11,
+ org.apache.cxf.transport,
+ org.apache.cxf.transport.http,
+ org.apache.cxf.transport.http.policy,
+ org.apache.cxf.transport.http.spring,
+ org.apache.cxf.transport.http_jetty,
+ org.apache.cxf.transport.http_jetty.spring,
+ org.apache.cxf.transport.https,
+ org.apache.cxf.transport.https_jetty,
+ org.apache.cxf.transport.jms,
+ org.apache.cxf.transport.jms.spring,
+ org.apache.cxf.transport.jms.wsdl11,
+ org.apache.cxf.transport.local,
+ org.apache.cxf.transport.servlet,
+ org.apache.cxf.transports.http,
+ org.apache.cxf.transports.http.configuration,
+ org.apache.cxf.transports.http_jetty.configuration,
+ org.apache.cxf.version,
+ org.apache.cxf.workqueue,
+ org.apache.cxf.ws.addressing,
+ org.apache.cxf.ws.addressing.policy,
+ org.apache.cxf.ws.addressing.soap,
+ org.apache.cxf.ws.addressing.spring,
+ org.apache.cxf.ws.addressing.v200408,
+ org.apache.cxf.ws.addressing.wsdl,
+ org.apache.cxf.ws.policy,
+ org.apache.cxf.ws.policy.attachment,
+ org.apache.cxf.ws.policy.attachment.external,
+ org.apache.cxf.ws.policy.attachment.reference,
+ org.apache.cxf.ws.policy.attachment.wsdl11,
+ org.apache.cxf.ws.policy.builder.jaxb,
+ org.apache.cxf.ws.policy.builder.primitive,
+ org.apache.cxf.ws.policy.builder.xml,
+ org.apache.cxf.ws.policy.mtom,
+ org.apache.cxf.ws.policy.selector,
+ org.apache.cxf.ws.policy.spring,
+ org.apache.cxf.ws.policy.util,
+ org.apache.cxf.ws.policy.v200409,
+ org.apache.cxf.ws.policy.v200607,
+ org.apache.cxf.ws.rm,
+ org.apache.cxf.ws.rm.feature,
+ org.apache.cxf.ws.rm.manager,
+ org.apache.cxf.ws.rm.persistence,
+ org.apache.cxf.ws.rm.persistence.jdbc,
+ org.apache.cxf.ws.rm.policy,
+ org.apache.cxf.ws.rm.soap,
+ org.apache.cxf.ws.rm.spring,
+ org.apache.cxf.ws.security.wss4j,
+ org.apache.cxf.wsdl,
+ org.apache.cxf.wsdl11,
+ org.apache.cxf.xjc.dv,
+ org.apache.cxf.xjc.ts,
+ org.apache.geronimo.connector,
+ org.apache.geronimo.connector.outbound,
+ org.apache.geronimo.connector.outbound.connectionmanagerconfig,
+ org.apache.geronimo.connector.outbound.connectiontracking,
+ org.apache.geronimo.connector.outbound.security,
+ org.apache.geronimo.connector.outbound.transactionlog,
+ org.apache.geronimo.connector.work,
+ org.apache.geronimo.connector.work.pool,
+ org.apache.geronimo.javamail.authentication,
+ org.apache.geronimo.javamail.store.nntp,
+ org.apache.geronimo.javamail.store.nntp.newsrc,
+ org.apache.geronimo.javamail.store.pop3,
+ org.apache.geronimo.javamail.store.pop3.message,
+ org.apache.geronimo.javamail.store.pop3.response,
+ org.apache.geronimo.javamail.transport.nntp,
+ org.apache.geronimo.javamail.transport.smtp,
+ org.apache.geronimo.javamail.util,
+ org.apache.geronimo.mail.handlers,
+ org.apache.geronimo.mail.util,
+ org.apache.geronimo.transaction,
+ org.apache.geronimo.transaction.log,
+ org.apache.geronimo.transaction.manager,
+ org.apache.log4j,
+ org.apache.log4j.chainsaw,
+ org.apache.log4j.config,
+ org.apache.log4j.helpers,
+ org.apache.log4j.jdbc,
+ org.apache.log4j.jmx,
+ org.apache.log4j.lf5,
+ org.apache.log4j.lf5.util,
+ org.apache.log4j.lf5.viewer,
+ org.apache.log4j.lf5.viewer.categoryexplorer,
+ org.apache.log4j.lf5.viewer.configure,
+ org.apache.log4j.net,
+ org.apache.log4j.nt,
+ org.apache.log4j.or,
+ org.apache.log4j.or.jms,
+ org.apache.log4j.or.sax,
+ org.apache.log4j.spi,
+ org.apache.log4j.varia,
+ org.apache.log4j.xml,
+ org.apache.neethi,
+ org.apache.neethi.builders,
+ org.apache.neethi.builders.xml,
+ org.apache.neethi.util,
+ org.apache.openejb,
+ org.apache.openejb.asm,
+ org.apache.openejb.asm.commons,
+ org.apache.openejb.asm.signature,
+ org.apache.openejb.asm.tree,
+ org.apache.openejb.assembler,
+ org.apache.openejb.assembler.classic,
+ org.apache.openejb.assembler.classic.cmd,
+ org.apache.openejb.assembler.dynamic,
+ org.apache.openejb.cli,
+ org.apache.openejb.client,
+ org.apache.openejb.client.java,
+ org.apache.openejb.client.proxy,
+ org.apache.openejb.config,
+ org.apache.openejb.config.rules,
+ org.apache.openejb.config.sys,
+ org.apache.openejb.core,
+ org.apache.openejb.core.cmp,
+ org.apache.openejb.core.cmp.cmp2,
+ org.apache.openejb.core.cmp.jpa,
+ org.apache.openejb.core.entity,
+ org.apache.openejb.core.interceptor,
+ org.apache.openejb.core.ivm,
+ org.apache.openejb.core.ivm.naming,
+ org.apache.openejb.core.ivm.naming.java,
+ org.apache.openejb.core.mdb,
+ org.apache.openejb.core.security,
+ org.apache.openejb.core.security.jaas,
+ org.apache.openejb.core.security.jacc,
+ org.apache.openejb.core.singleton,
+ org.apache.openejb.core.stateful,
+ org.apache.openejb.core.stateless,
+ org.apache.openejb.core.timer,
+ org.apache.openejb.core.transaction,
+ org.apache.openejb.core.webservices,
+ org.apache.openejb.eclipse,
+ org.apache.openejb.eclipselink,
+ org.apache.openejb.finder,
+ org.apache.openejb.hibernate,
+ org.apache.openejb.javaagent,
+ org.apache.openejb.jee,
+ org.apache.openejb.jee.jba,
+ org.apache.openejb.jee.jba.cmp,
+ org.apache.openejb.jee.jpa,
+ org.apache.openejb.jee.jpa.unit,
+ org.apache.openejb.jee.oejb2,
+ org.apache.openejb.jee.oejb3,
+ org.apache.openejb.jee.sun,
+ org.apache.openejb.jee.wls,
+ org.apache.openejb.loader,
+ org.apache.openejb.mgmt,
+ org.apache.openejb.persistence,
+ org.apache.openejb.resource,
+ org.apache.openejb.resource.activemq,
+ org.apache.openejb.resource.jdbc,
+ org.apache.openejb.ri.sp,
+ org.apache.openejb.server,
+ org.apache.openejb.server.admin,
+ org.apache.openejb.server.auth,
+ org.apache.openejb.server.cxf,
+ org.apache.openejb.server.cxf.client,
+ org.apache.openejb.server.cxf.ejb,
+ org.apache.openejb.server.cxf.pojo,
+ org.apache.openejb.server.discovery,
+ org.apache.openejb.server.ejbd,
+ org.apache.openejb.server.hsql,
+ org.apache.openejb.server.httpd,
+ org.apache.openejb.server.telnet,
+ org.apache.openejb.server.webservices,
+ org.apache.openejb.server.webservices.saaj,
+ org.apache.openejb.spi,
+ org.apache.openejb.toplink,
+ org.apache.openejb.util,
+ org.apache.openejb.util.io,
+ org.apache.openejb.util.proxy,
+ org.apache.openejb.util.urlhandler.resource,
+ org.apache.openjpa.abstractstore,
+ org.apache.openjpa.ant,
+ org.apache.openjpa.conf,
+ org.apache.openjpa.datacache,
+ org.apache.openjpa.ee,
+ org.apache.openjpa.enhance,
+ org.apache.openjpa.event,
+ org.apache.openjpa.jdbc.ant,
+ org.apache.openjpa.jdbc.conf,
+ org.apache.openjpa.jdbc.kernel,
+ org.apache.openjpa.jdbc.kernel.exps,
+ org.apache.openjpa.jdbc.meta,
+ org.apache.openjpa.jdbc.meta.strats,
+ org.apache.openjpa.jdbc.schema,
+ org.apache.openjpa.jdbc.sql,
+ org.apache.openjpa.kernel,
+ org.apache.openjpa.kernel.exps,
+ org.apache.openjpa.kernel.jpql,
+ org.apache.openjpa.lib.ant,
+ org.apache.openjpa.lib.conf,
+ org.apache.openjpa.lib.graph,
+ org.apache.openjpa.lib.jdbc,
+ org.apache.openjpa.lib.log,
+ org.apache.openjpa.lib.meta,
+ org.apache.openjpa.lib.rop,
+ org.apache.openjpa.lib.util,
+ org.apache.openjpa.lib.util.concurrent,
+ org.apache.openjpa.lib.xml,
+ org.apache.openjpa.meta,
+ org.apache.openjpa.persistence,
+ org.apache.openjpa.persistence.jdbc,
+ org.apache.openjpa.slice,
+ org.apache.openjpa.slice.jdbc,
+ org.apache.openjpa.util,
+ org.apache.openjpa.xmlstore,
+ org.apache.ws.commons.schema,
+ org.apache.ws.commons.schema.constants,
+ org.apache.ws.commons.schema.extensions,
+ org.apache.ws.commons.schema.resolver,
+ org.apache.ws.commons.schema.utils,
+ org.apache.xbean.naming.context,
+ org.apache.xbean.naming.global,
+ org.apache.xbean.naming.java,
+ org.apache.xbean.naming.reference,
+ org.apache.xbean.propertyeditor,
+ org.apache.xbean.recipe,
+ org.apache.xml.resolver,
+ org.apache.xml.resolver.apps,
+ org.apache.xml.resolver.helpers,
+ org.apache.xml.resolver.readers,
+ org.apache.xml.resolver.tools,
+ org.codehaus.stax2,
+ org.codehaus.stax2.evt,
+ org.codehaus.stax2.io,
+ org.codehaus.stax2.validation,
+ org.codehaus.swizzle,
+ org.codehaus.swizzle.rss,
+ org.codehaus.swizzle.stream,
+ org.hsqldb,
+ org.hsqldb.index,
+ org.hsqldb.jdbc,
+ org.hsqldb.lib,
+ org.hsqldb.lib.java,
+ org.hsqldb.persist,
+ org.hsqldb.resources,
+ org.hsqldb.rowio,
+ org.hsqldb.scriptio,
+ org.hsqldb.store,
+ org.hsqldb.types,
+ org.hsqldb.util,
+ org.objectweb.howl.log,
+ org.objectweb.howl.log.util,
+ org.objectweb.howl.log.xa,
+ org.openejb,
+ org.openejb.client,
+ org.slf4j,
+ org.slf4j.helpers,
+ org.slf4j.impl,
+ org.slf4j.spi,
+ org.xmlsoap.schemas.wsdl.http,
+ serp.bytecode,
+ serp.bytecode.lowlevel,
+ serp.bytecode.visitor,
+ serp.util
+Bundle-ClassPath: .,
+ lib/activeio-core-3.0.0-incubator.jar,
+ lib/activemq-core-4.1.1.jar,
+ lib/activemq-ra-4.1.1.jar,
+ lib/asm-finder-3.1.jar,
+ lib/backport-util-concurrent-2.1.jar,
+ lib/commons-cli-1.1.jar,
+ lib/commons-collections-3.2.jar,
+ lib/commons-dbcp-all-1.3-r699049.jar,
+ lib/commons-lang-2.1.jar,
+ lib/commons-logging-1.1.jar,
+ lib/commons-logging-api-1.1.jar,
+ lib/commons-pool-1.3.jar,
+ lib/cxf-bundle-2.0.4-incubator.jar,
+ lib/ejb31-api-experimental-3.1.jar,
+ lib/geronimo-connector-2.1.jar,
+ lib/geronimo-javamail_1.4_mail-1.2.jar,
+ lib/geronimo-transaction-2.1.jar,
+ lib/howl-1.0.1-1.jar,
+ lib/hsqldb-1.8.0.7.jar,
+ lib/javaee-api-5.0-1.jar,
+ lib/jaxb-impl-2.0.5.jar,
+ lib/log4j-1.2.12.jar,
+ lib/neethi-2.0.2.jar,
+ lib/openejb-client-3.1.jar,
+ lib/openejb-core-3.1.jar,
+ lib/openejb-cxf-3.1.jar,
+ lib/openejb-ejbd-3.1.jar,
+ lib/openejb-hsql-3.1.jar,
+ lib/openejb-http-3.1.jar,
+ lib/openejb-javaagent-3.1.jar,
+ lib/openejb-jee-3.1.jar,
+ lib/openejb-loader-3.1.jar,
+ lib/openejb-multicast-3.1.jar,
+ lib/openejb-server-3.1.jar,
+ lib/openejb-telnet-3.1.jar,
+ lib/openejb-webservices-3.1.jar,
+ lib/openjpa-1.1.0.jar,
+ lib/saaj-impl-1.3.jar,
+ lib/serp-1.13.1.jar,
+ lib/slf4j-api-1.3.1.jar,
+ lib/slf4j-jdk14-1.3.1.jar,
+ lib/stax-api-1.0.1.jar,
+ lib/swizzle-stream-1.0.1.jar,
+ lib/wsdl4j-1.6.1.jar,
+ lib/wstx-asl-3.2.0.jar,
+ lib/xbean-naming-3.4.1.jar,
+ lib/xbean-reflect-3.4.1.jar,
+ lib/xml-resolver-1.2.jar,
+ lib/XmlSchema-1.3.2.jar
+Require-Bundle: system.bundle,
+ org.eclipse.core.runtime,
+ org.eclipse.core.variables;bundle-version="3.2.100"
+Bundle-Activator: org.apache.openejb.eclipse.OpenEjbPlugin
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/META-INF/openejb.xml
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/META-INF/openejb.xml?rev=745106&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/META-INF/openejb.xml (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/META-INF/openejb.xml Tue Feb 17 14:43:32 2009
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<openejb />
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/build.properties
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/build.properties?rev=745106&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/build.properties (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/build.properties Tue Feb 17 14:43:32 2009
@@ -0,0 +1,54 @@
+source.. = src/
+bin.includes = META-INF/,\
+ .,\
+ lib/,\
+ lib/activeio-core-3.0.0-incubator.jar,\
+ lib/activemq-core-4.1.1.jar,\
+ lib/activemq-ra-4.1.1.jar,\
+ lib/asm-finder-3.1.jar,\
+ lib/backport-util-concurrent-2.1.jar,\
+ lib/commons-cli-1.1.jar,\
+ lib/commons-collections-3.2.jar,\
+ lib/commons-dbcp-all-1.3-r699049.jar,\
+ lib/commons-lang-2.1.jar,\
+ lib/commons-logging-1.1.jar,\
+ lib/commons-logging-api-1.1.jar,\
+ lib/commons-pool-1.3.jar,\
+ lib/cxf-bundle-2.0.4-incubator.jar,\
+ lib/ejb31-api-experimental-3.1.jar,\
+ lib/geronimo-connector-2.1.jar,\
+ lib/geronimo-javamail_1.4_mail-1.2.jar,\
+ lib/geronimo-transaction-2.1.jar,\
+ lib/howl-1.0.1-1.jar,\
+ lib/hsqldb-1.8.0.7.jar,\
+ lib/javaee-api-5.0-1.jar,\
+ lib/jaxb-impl-2.0.5.jar,\
+ lib/log4j-1.2.12.jar,\
+ lib/neethi-2.0.2.jar,\
+ lib/openejb-client-3.1.jar,\
+ lib/openejb-core-3.1.jar,\
+ lib/openejb-cxf-3.1.jar,\
+ lib/openejb-ejbd-3.1.jar,\
+ lib/openejb-hsql-3.1.jar,\
+ lib/openejb-http-3.1.jar,\
+ lib/openejb-javaagent-3.1.jar,\
+ lib/openejb-jee-3.1.jar,\
+ lib/openejb-loader-3.1.jar,\
+ lib/openejb-multicast-3.1.jar,\
+ lib/openejb-server-3.1.jar,\
+ lib/openejb-telnet-3.1.jar,\
+ lib/openejb-webservices-3.1.jar,\
+ lib/openjpa-1.1.0.jar,\
+ lib/saaj-impl-1.3.jar,\
+ lib/serp-1.13.1.jar,\
+ lib/slf4j-api-1.3.1.jar,\
+ lib/slf4j-jdk14-1.3.1.jar,\
+ lib/stax-api-1.0.1.jar,\
+ lib/swizzle-stream-1.0.1.jar,\
+ lib/wsdl4j-1.6.1.jar,\
+ lib/wstx-asl-3.2.0.jar,\
+ lib/xbean-naming-3.4.1.jar,\
+ lib/xbean-reflect-3.4.1.jar,\
+ lib/xml-resolver-1.2.jar,\
+ lib/XmlSchema-1.3.2.jar
+source.. = src/
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/src/org/apache/openejb/eclipse/OpenEjbApplication.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/src/org/apache/openejb/eclipse/OpenEjbApplication.java?rev=745106&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/src/org/apache/openejb/eclipse/OpenEjbApplication.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/src/org/apache/openejb/eclipse/OpenEjbApplication.java Tue Feb 17 14:43:32 2009
@@ -0,0 +1,104 @@
+package org.apache.openejb.eclipse;
+
+import java.io.IOException;
+import java.net.URI;
+import java.net.URL;
+import java.util.Properties;
+
+import org.apache.openejb.NoSuchApplicationException;
+import org.apache.openejb.OpenEJBException;
+import org.apache.openejb.UndeployException;
+import org.apache.openejb.assembler.Deployer;
+import org.apache.openejb.assembler.DeployerEjb;
+import org.apache.openejb.assembler.classic.AppInfo;
+import org.apache.openejb.assembler.classic.Assembler;
+import org.apache.openejb.assembler.classic.ResourceInfo;
+import org.apache.openejb.config.ConfigurationFactory;
+import org.apache.openejb.config.sys.Openejb;
+import org.apache.openejb.config.sys.Resource;
+import org.apache.openejb.loader.SystemInstance;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.FileLocator;
+import org.eclipse.core.variables.IStringVariableManager;
+import org.eclipse.core.variables.VariablesPlugin;
+import org.osgi.framework.Bundle;
+
+public class OpenEjbApplication {
+
+ private AppInfo appInfo;
+ private URL rootUrl;
+
+ public OpenEjbApplication(Bundle bundle) throws IOException {
+ this.rootUrl = bundle.getEntry("/");
+ this.rootUrl = FileLocator.toFileURL(this.rootUrl);
+ this.appInfo = null;
+ }
+
+ public OpenEjbApplication(URL rootUrl) {
+ this.appInfo = null;
+ this.rootUrl = rootUrl;
+ }
+
+ public AppInfo getAppInfo() {
+ return appInfo;
+ }
+
+ public URL getRootUrl() {
+ return rootUrl;
+ }
+
+ public void deploy(Properties properties) throws OpenEJBException {
+
+ ConfigurationFactory factory = new ConfigurationFactory();
+
+ String url = rootUrl.getPath();
+ Assembler assembler = SystemInstance.get()
+ .getComponent(Assembler.class);
+ Openejb openejb = storeProperties(properties, factory);
+
+ for (Resource resource : openejb.getResource()) {
+ ResourceInfo serviceInfo = factory.configureService(resource,
+ ResourceInfo.class);
+ assembler.createResource(serviceInfo);
+ }
+
+ Deployer deployer = new DeployerEjb();
+ this.appInfo = deployer.deploy(url, properties);
+ }
+
+ public void undeploy() throws NoSuchApplicationException, UndeployException {
+ Assembler assembler = SystemInstance.get()
+ .getComponent(Assembler.class);
+ assembler.destroyApplication(this.appInfo.jarPath);
+ }
+
+ private Openejb storeProperties(Properties properties,
+ ConfigurationFactory factory) {
+
+ IStringVariableManager manager = VariablesPlugin.getDefault()
+ .getStringVariableManager();
+ Openejb openejb = new Openejb();
+ for (Object k : properties.keySet()) {
+ Object v = properties.get(k);
+ if (v instanceof String) {
+ String key = (String) k;
+ String value = (String) v;
+ try {
+ value = manager.performStringSubstitution(value, false);
+ } catch (CoreException e) {
+ e.printStackTrace();
+ }
+ SystemInstance.get().setProperty(key, value);
+ if (value.startsWith("new://")) {
+ try {
+ URI uri = new URI(value);
+ openejb.add(factory.toConfigDeclaration(key, uri));
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ }
+ }
+ return openejb;
+ }
+}
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/src/org/apache/openejb/eclipse/OpenEjbDeploymentService.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/src/org/apache/openejb/eclipse/OpenEjbDeploymentService.java?rev=745106&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/src/org/apache/openejb/eclipse/OpenEjbDeploymentService.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/src/org/apache/openejb/eclipse/OpenEjbDeploymentService.java Tue Feb 17 14:43:32 2009
@@ -0,0 +1,118 @@
+package org.apache.openejb.eclipse;
+
+import java.io.File;
+import java.net.URL;
+import java.util.Properties;
+
+import org.apache.openejb.OpenEJBException;
+import org.eclipse.core.runtime.FileLocator;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleContext;
+import org.osgi.framework.InvalidSyntaxException;
+import org.osgi.framework.ServiceEvent;
+import org.osgi.framework.ServiceListener;
+import org.osgi.framework.ServiceReference;
+import org.osgi.util.tracker.ServiceTracker;
+
+public class OpenEjbDeploymentService {
+
+ private ServiceTracker deploymentTracker;
+ private BundleContext bundleContext;
+ private OpenEjbServer ejbServer;
+
+ public OpenEjbDeploymentService(BundleContext bundleContext) {
+ this.bundleContext = bundleContext;
+ this.deploymentTracker = null;
+ this.ejbServer = null;
+ }
+
+ public void open() {
+
+ try {
+ if (ejbServer == null) {
+ Bundle bundle = bundleContext.getBundle();
+ URL baseUrl = bundle.getEntry("/");
+ baseUrl = FileLocator.toFileURL(baseUrl);
+ File baseDir = new File(baseUrl.getPath());
+
+ ejbServer = new OpenEjbServer();
+ ejbServer.init(baseDir);
+ }
+ } catch (Exception e) {
+ e.printStackTrace();
+ return;
+ }
+
+ deploymentTracker = new ServiceTracker(bundleContext,
+ OpenEjbApplication.class.getName(), null);
+ deploymentTracker.open();
+
+ ServiceListener sl = new ServiceListener() {
+
+ public void serviceChanged(ServiceEvent ev) {
+ ServiceReference sr = ev.getServiceReference();
+ switch (ev.getType()) {
+
+ case ServiceEvent.REGISTERED:
+ deployApplication(sr);
+ break;
+
+ case ServiceEvent.UNREGISTERING:
+ undeployApplication(sr);
+ break;
+ }
+ }
+ };
+
+ // Generate a ServiceEvent for any existing OpenEJbApplication services.
+
+ String filter = "(objectclass=" + OpenEjbApplication.class.getName()
+ + ")";
+ try {
+ bundleContext.addServiceListener(sl, filter);
+ ServiceReference[] srl = bundleContext.getServiceReferences(null,
+ filter);
+ if (srl != null) {
+ for (ServiceReference sr : srl) {
+ sl.serviceChanged(new ServiceEvent(ServiceEvent.REGISTERED,
+ sr));
+ }
+ }
+ } catch (InvalidSyntaxException e) {
+ e.printStackTrace();
+ }
+ }
+
+ public void close() throws Exception {
+ deploymentTracker.close();
+ ejbServer.destroy();
+ }
+
+ private void deployApplication(ServiceReference sr) {
+ OpenEjbApplication application = (OpenEjbApplication) bundleContext
+ .getService(sr);
+ Properties properties = new Properties();
+ for (String key : sr.getPropertyKeys()) {
+ Object value = sr.getProperty(key);
+ if (value instanceof String) {
+ properties.put(key, value);
+ }
+ }
+ try {
+ application.deploy(properties);
+ } catch (OpenEJBException e) {
+ e.printStackTrace();
+ }
+ }
+
+ private void undeployApplication(ServiceReference sr) {
+ try {
+ OpenEjbApplication application = (OpenEjbApplication) bundleContext
+ .getService(sr);
+ application.undeploy();
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+
+}
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/src/org/apache/openejb/eclipse/OpenEjbPlugin.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/src/org/apache/openejb/eclipse/OpenEjbPlugin.java?rev=745106&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/src/org/apache/openejb/eclipse/OpenEjbPlugin.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/src/org/apache/openejb/eclipse/OpenEjbPlugin.java Tue Feb 17 14:43:32 2009
@@ -0,0 +1,84 @@
+package org.apache.openejb.eclipse;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.URL;
+import java.util.Properties;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.FileLocator;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.Plugin;
+import org.eclipse.core.variables.IStringVariableManager;
+import org.eclipse.core.variables.IValueVariable;
+import org.eclipse.core.variables.VariablesPlugin;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleContext;
+
+public class OpenEjbPlugin extends Plugin {
+
+ private OpenEjbDeploymentService service = null;
+ private IStringVariableManager manager = null;
+
+ private static OpenEjbPlugin plugin;
+
+ public OpenEjbPlugin () {
+ super();
+ manager = VariablesPlugin.getDefault().getStringVariableManager();
+ addPropertyVariables(System.getProperties());
+ plugin = this;
+ }
+
+ public static OpenEjbPlugin getDefault() {
+ return plugin;
+ }
+
+ public void start(BundleContext aContext) throws Exception {
+ super.start(aContext);
+ service = new OpenEjbDeploymentService(aContext);
+ service.open();
+ }
+
+ public void stop(BundleContext aContext) throws Exception {
+ service.close();
+ super.stop(aContext);
+ }
+
+ public Properties loadProperties(Bundle bundle, Path path) {
+ Properties properties = new Properties();
+ URL[] urls = FileLocator.findEntries(bundle, path);
+ for (URL url : urls) {
+ Properties p = new Properties();
+ try {
+ InputStream is = url.openStream();
+ p.load(is);
+ is.close();
+ } catch (IOException ioe) {
+ // Ignore any properties partially loaded from a bad file.
+ p.clear();
+ }
+ addPropertyVariables(p);
+ properties.putAll(p);
+ }
+ return properties;
+ }
+
+ private void addPropertyVariables(Properties properties) {
+ for (Object k : properties.keySet()) {
+ String key = (String) k;
+ String value = properties.getProperty(key);
+ IValueVariable variable = manager.getValueVariable(key);
+ if (variable == null) {
+ variable = manager.newValueVariable(key, "", false, value);
+ try {
+ manager.addVariables(new IValueVariable[] {variable});
+ } catch (CoreException e) {
+ e.printStackTrace();
+ }
+ } else {
+ variable.setValue(value);
+ }
+ }
+ }
+
+}
Added: openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/src/org/apache/openejb/eclipse/OpenEjbServer.java
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/src/org/apache/openejb/eclipse/OpenEjbServer.java?rev=745106&view=auto
==============================================================================
--- openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/src/org/apache/openejb/eclipse/OpenEjbServer.java (added)
+++ openejb/trunk/sandbox/openejb-eclipse-plugin/plugins/openejb.server/src/org/apache/openejb/eclipse/OpenEjbServer.java Tue Feb 17 14:43:32 2009
@@ -0,0 +1,50 @@
+package org.apache.openejb.eclipse;
+
+import java.io.File;
+import java.util.Properties;
+
+import javax.naming.Context;
+
+import org.apache.openejb.NoSuchApplicationException;
+import org.apache.openejb.OpenEJB;
+import org.apache.openejb.OpenEJBException;
+import org.apache.openejb.UndeployException;
+import org.apache.openejb.assembler.classic.AppInfo;
+import org.apache.openejb.assembler.classic.Assembler;
+import org.apache.openejb.loader.SystemInstance;
+
+public class OpenEjbServer {
+
+ public void init(File baseDir) throws OpenEJBException {
+
+ File homeDir = new File(System.getProperty("user.home"));
+ homeDir = new File(homeDir, "openejb");
+ if (!homeDir.exists()) {
+ homeDir.mkdir();
+ }
+
+ File metaInfDir = new File(baseDir, "META-INF");
+ File configFile = new File(metaInfDir, "openejb.xml");
+
+ // Setup environment
+ Properties properties = new Properties();
+ properties.put(Context.INITIAL_CONTEXT_FACTORY,
+ "org.apache.openejb.client.LocalInitialContextFactory");
+
+ properties.put("openejb.home", homeDir.getAbsolutePath());
+ properties.put("openejb.base", baseDir.getAbsolutePath());
+ properties.put("openejb.configuration", configFile.getAbsolutePath());
+ properties.put("openejb.deployments.classpath", "false");
+
+ OpenEJB.init(properties);
+ }
+
+ public void destroy() throws NoSuchApplicationException, UndeployException {
+ Assembler assembler = SystemInstance.get()
+ .getComponent(Assembler.class);
+ for (AppInfo appInfo : assembler.getDeployedApplications()) {
+ assembler.destroyApplication(appInfo.jarPath);
+ }
+ OpenEJB.destroy();
+ }
+}