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 2019/04/25 19:48:36 UTC
[tomee] 03/26: renames package name
This is an automated email from the ASF dual-hosted git repository.
jgallimore pushed a commit to branch tomee-1.7.x
in repository https://gitbox.apache.org/repos/asf/tomee.git
commit b3f9446fd41b7ebb60de9b72d82ad496876c2f3b
Author: Otavio Santana <ot...@gmail.com>
AuthorDate: Fri Feb 22 10:45:30 2019 -0300
renames package name
---
examples/ejb-remote-call/README.md | 7 ++---
examples/ejb-remote-call/client.pl | 34 ----------------------
.../main/java/org/superbiz/{ws => remote}/App.java | 4 +--
.../org/superbiz/{ws => remote}/Calculator.java | 2 +-
.../superbiz/{ws => remote}/DefaultCalculator.java | 2 +-
5 files changed, 7 insertions(+), 42 deletions(-)
diff --git a/examples/ejb-remote-call/README.md b/examples/ejb-remote-call/README.md
index c502449..752d7d9 100644
--- a/examples/ejb-remote-call/README.md
+++ b/examples/ejb-remote-call/README.md
@@ -1,10 +1,9 @@
-index-group=Misc
-type=page
-status=published
+:index-group: Misc
+:jbake-type: page
+:jbake-status: published
title=EJB Remote Call
~~~~~~
-*Help us document this example! Click the blue pencil icon in the upper right to edit this page.*
## Calculator
diff --git a/examples/ejb-remote-call/client.pl b/examples/ejb-remote-call/client.pl
deleted file mode 100644
index be0a632..0000000
--- a/examples/ejb-remote-call/client.pl
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env perl -w
-#============================================================
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#============================================================
-
-use SOAP::Lite;
-
-my $namespace = 'http://superbiz.org/wsdl';
-
-my $service = SOAP::Lite-> uri($namespace)
- ->proxy('http://localhost:8080/Calculator')
- ->on_action (sub { return '' } );
-
-my $method = SOAP::Data->name("ns1:multiply")
- ->attr({'xmlns:ns1' => $namespace});
-
-my @params = (
- SOAP::Data->name('arg0'=>3),
- SOAP::Data->name('arg1'=>4));
-
-print $service->call($method=>@params)->result;
diff --git a/examples/ejb-remote-call/src/main/java/org/superbiz/ws/App.java b/examples/ejb-remote-call/src/main/java/org/superbiz/remote/App.java
similarity index 90%
rename from examples/ejb-remote-call/src/main/java/org/superbiz/ws/App.java
rename to examples/ejb-remote-call/src/main/java/org/superbiz/remote/App.java
index e3661bf..36587b9 100644
--- a/examples/ejb-remote-call/src/main/java/org/superbiz/ws/App.java
+++ b/examples/ejb-remote-call/src/main/java/org/superbiz/remote/App.java
@@ -1,4 +1,4 @@
-package org.superbiz.ws;
+package org.superbiz.remote;
import javax.naming.Context;
import javax.naming.InitialContext;
@@ -13,7 +13,7 @@ public class App {
properties.put(Context.PROVIDER_URL, "http://localhost:8080/tomee/ejb");
Context ctx = new InitialContext(properties);
- Object ref = ctx.lookup("global/ejb_remote_call_war/Calculator!org.superbiz.ws.Calculator");
+ Object ref = ctx.lookup("global/ejb_remote_call_war/Calculator!org.superbiz.remote.Calculator");
Calculator calculator = Calculator.class.cast(ref);
System.out.println(calculator.sum(1, 2));
diff --git a/examples/ejb-remote-call/src/main/java/org/superbiz/ws/Calculator.java b/examples/ejb-remote-call/src/main/java/org/superbiz/remote/Calculator.java
similarity index 96%
rename from examples/ejb-remote-call/src/main/java/org/superbiz/ws/Calculator.java
rename to examples/ejb-remote-call/src/main/java/org/superbiz/remote/Calculator.java
index 176a856..09232ad 100644
--- a/examples/ejb-remote-call/src/main/java/org/superbiz/ws/Calculator.java
+++ b/examples/ejb-remote-call/src/main/java/org/superbiz/remote/Calculator.java
@@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-package org.superbiz.ws;
+package org.superbiz.remote;
public interface Calculator {
diff --git a/examples/ejb-remote-call/src/main/java/org/superbiz/ws/DefaultCalculator.java b/examples/ejb-remote-call/src/main/java/org/superbiz/remote/DefaultCalculator.java
similarity index 93%
rename from examples/ejb-remote-call/src/main/java/org/superbiz/ws/DefaultCalculator.java
rename to examples/ejb-remote-call/src/main/java/org/superbiz/remote/DefaultCalculator.java
index 49d9e8a..7713c2a 100644
--- a/examples/ejb-remote-call/src/main/java/org/superbiz/ws/DefaultCalculator.java
+++ b/examples/ejb-remote-call/src/main/java/org/superbiz/remote/DefaultCalculator.java
@@ -1,4 +1,4 @@
-package org.superbiz.ws;
+package org.superbiz.remote;
import javax.ejb.Remote;
import javax.ejb.Stateless;