Fixed temporary restbucks example.
- use concurrency none to workaround a concurrency issue of DB_ACCESS - use console_application for convenience - use default http client, to use net implementation if curl is not available.
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
</file_rule>
|
</file_rule>
|
||||||
<option warning="true" void_safety="all">
|
<option warning="true" void_safety="all">
|
||||||
</option>
|
</option>
|
||||||
|
<setting name="console_application" value="true"/>
|
||||||
<setting name="concurrency" value="scoop"/>
|
<setting name="concurrency" value="scoop"/>
|
||||||
<library name="base" location="$ISE_LIBRARY\library\base\base-safe.ecf"/>
|
<library name="base" location="$ISE_LIBRARY\library\base\base-safe.ecf"/>
|
||||||
<library name="http_client" location="..\..\..\library\network\http_client\http_client-safe.ecf" readonly="false"/>
|
<library name="http_client" location="..\..\..\library\network\http_client\http_client-safe.ecf" readonly="false"/>
|
||||||
|
|||||||
@@ -9,6 +9,7 @@
|
|||||||
</file_rule>
|
</file_rule>
|
||||||
<option warning="true" void_safety="none">
|
<option warning="true" void_safety="none">
|
||||||
</option>
|
</option>
|
||||||
|
<setting name="console_application" value="true"/>
|
||||||
<setting name="concurrency" value="scoop"/>
|
<setting name="concurrency" value="scoop"/>
|
||||||
<library name="base" location="$ISE_LIBRARY\library\base\base.ecf"/>
|
<library name="base" location="$ISE_LIBRARY\library\base\base.ecf"/>
|
||||||
<library name="http_client" location="..\..\..\library\network\http_client\http_client.ecf"/>
|
<library name="http_client" location="..\..\..\library\network\http_client\http_client.ecf"/>
|
||||||
|
|||||||
@@ -15,13 +15,13 @@ feature {NONE} -- Initialization
|
|||||||
make
|
make
|
||||||
-- Initialize `Current'.
|
-- Initialize `Current'.
|
||||||
local
|
local
|
||||||
h: LIBCURL_HTTP_CLIENT
|
h: DEFAULT_HTTP_CLIENT
|
||||||
sess: HTTP_CLIENT_SESSION
|
sess: HTTP_CLIENT_SESSION
|
||||||
resp : detachable HTTP_CLIENT_RESPONSE
|
resp : detachable HTTP_CLIENT_RESPONSE
|
||||||
l_location : detachable READABLE_STRING_8
|
l_location : detachable READABLE_STRING_8
|
||||||
body : STRING
|
body : STRING
|
||||||
do
|
do
|
||||||
create h.make
|
create h
|
||||||
sess := h.new_session ("http://127.0.0.1:9090")
|
sess := h.new_session ("http://127.0.0.1:9090")
|
||||||
-- Uncomment the following 2 lines, if you use fiddler2 web debugging tool
|
-- Uncomment the following 2 lines, if you use fiddler2 web debugging tool
|
||||||
-- sess.set_is_debug (True)
|
-- sess.set_is_debug (True)
|
||||||
|
|||||||
@@ -8,7 +8,8 @@
|
|||||||
</file_rule>
|
</file_rule>
|
||||||
<option void_safety="all">
|
<option void_safety="all">
|
||||||
</option>
|
</option>
|
||||||
<setting name="concurrency" value="scoop"/>
|
<setting name="console_application" value="true"/>
|
||||||
|
<setting name="concurrency" value="none"/>
|
||||||
<library name="base" location="$ISE_LIBRARY\library\base\base-safe.ecf"/>
|
<library name="base" location="$ISE_LIBRARY\library\base\base-safe.ecf"/>
|
||||||
<library name="conneg" location="..\..\library\network\protocol\content_negotiation\conneg-safe.ecf"/>
|
<library name="conneg" location="..\..\library\network\protocol\content_negotiation\conneg-safe.ecf"/>
|
||||||
<library name="crypto" location="$ISE_LIBRARY\unstable\library\text\encryption\crypto\crypto-safe.ecf" readonly="false"/>
|
<library name="crypto" location="$ISE_LIBRARY\unstable\library\text\encryption\crypto\crypto-safe.ecf" readonly="false"/>
|
||||||
|
|||||||
2
examples/restbucksCRUD/server.ini
Normal file
2
examples/restbucksCRUD/server.ini
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
port=9090
|
||||||
|
verbose=true
|
||||||
@@ -16,11 +16,12 @@ feature {NONE} -- Initialization
|
|||||||
make
|
make
|
||||||
do
|
do
|
||||||
set_service_option ("port", 9090)
|
set_service_option ("port", 9090)
|
||||||
|
import_service_options (create {WSF_SERVICE_LAUNCHER_OPTIONS_FROM_INI}.make_from_file ("server.ini"))
|
||||||
make_and_launch
|
make_and_launch
|
||||||
end
|
end
|
||||||
|
|
||||||
note
|
note
|
||||||
copyright: "2011-2015, Javier Velilla and others"
|
copyright: "2011-2017, Javier Velilla and others"
|
||||||
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)"
|
||||||
source: "[
|
source: "[
|
||||||
Eiffel Software
|
Eiffel Software
|
||||||
|
|||||||
Reference in New Issue
Block a user