Commit 0d3bdc5a authored by Renato Figueiro Maia's avatar Renato Figueiro Maia

[OPENBUS-1736] [LUA] Implementar demos para o SDK 2.0

- Pequenos ajustes no demo 'multiplexing' (sugestões do Cadu).
- Adição de módulo utilitário 'openbus.util.except' que estava faltando na lista dos módulos que fazem parte da biblioteca de acesso do OpenBus 2.0.



git-svn-id: https://subversion.tecgraf.puc-rio.br/engdist/openbus/sdk/lua/trunk@133138 ae0415b3-e90b-0410-900d-d0be9363c56b
parent 2370fdb3
......@@ -99,24 +99,16 @@ else
local ok, result = pcall(function ()
local facet = assert(offer.service_ref:getFacet(iface.repID),
"o serviço encontrado não provê a faceta ofertada")
require("cothread").verbose:level(2)
require("oil.verbose"):level(4)
require("oil.verbose"):output(assert(io.open("oil.log", "w")))
require("cothread").verbose.viewer.output = require("oil.verbose").viewer.output
assert(facet:__narrow()):newTrigger(index, Callback{
loginId = conn.login.id,
timerOffer = offer,
})
OpenBusContext:getCurrentConnection():logout()
end)
if not ok then
utils.showerror(result, params, utils.errmsg.Service)
else
pending = pending+1
end
OpenBusContext:setCurrentConnection(nil)
conn:logout()
end
end)
......
......@@ -21,6 +21,7 @@ LUASRC= \
$(LUADIR)/openbus/util/argcheck.lua \
$(LUADIR)/openbus/util/autotable.lua \
$(LUADIR)/openbus/util/database.lua \
$(LUADIR)/openbus/util/except.lua \
$(LUADIR)/openbus/util/logger.lua \
$(LUADIR)/openbus/util/messages.lua \
$(LUADIR)/openbus/util/oo.lua \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment