Nick, thanks for the help. IKC seems great for most of this.what about
the future if I wanted to swap out a a perl worker for a C worker? Would I
use JSONRPC instead of IKC for my communication? Would it be easy to
mix/match?
On Mon, Apr 20, 2009 at 5:47 PM, Nick Perez n...@nickandperla.net
I've read the cpan module docs and have looked at the cookbook example (
http://poe.perl.org/?POE_Cookbook/DBI_Helper_Processes). The following
modules all run non-blocking async dbi calls for poe but I'm not sure which
I should choose. I would love to see a pro/con list for these or get some
Thanks for the suggestions so far!!! I think I will start with EasyDBI
specially since your multi-plex code will be available :)
On Mon, Apr 27, 2009 at 1:10 PM, Andrew Feren acfe...@yahoo.com wrote:
I've been starting to implement something similar so I'd love to see this.
-Andrew
Phil
.
--
Rocco Caputo - rcap...@pobox.com
On Apr 27, 2009, at 20:45, Josh803316 wrote:
I read the combined service example in the POE cookbook (
http://poe.perl.org/?POE_Cookbook/Combined_Services).
It gave me an idea to have multiple services handled from a single kernel
run call. This way, I
I read the combined service example in the POE cookbook (
http://poe.perl.org/?POE_Cookbook/Combined_Services).
It gave me an idea to have multiple services handled from a single kernel
run call. This way, I could handle an ajax request, a separate web_services
request (json-rpc) as well as ikc
It appears that if you start an IKC server and then an ikc client connects
to it from within the same POE::Kernel-run() then we get the following
error:
23289: Remote kernel 'host.domain-4a0076da5af9' already exists
23289: Remote kernel 'host.domain-4a0076da5af9' already exists
Single
;
}
On Tue, May 5, 2009 at 3:41 PM, Nick Perez n...@nickandperla.net wrote:
On Tue, 5 May 2009 10:34:53 -0700
Josh803316 josh803...@gmail.com wrote:
It appears that if you start an IKC server and then an ikc client
connects to it from within the same POE::Kernel-run() then we get
the following
Nick,
I definitely think it might be simpler...
I was hoping to be able to control the workers spawing on startup based on a
passed list. I was also hoping that I could spawn a remote client to do
some load sharing in the future. I would prefer to manage it all from the
server startup. New
For some reason..when I execute the find method, which should really
execute the '_process_request' method the find isn't replaced with a
reference to _process_request
# CODE ATTEMPT #
my $session = $class-__spawn({easyDBI_alias = 'easydbi_alias'});
)
},
($class) = {
'find' = '_process_request'
}
On Thu, May 7, 2009 at 9:56 PM, Josh803316 josh803...@gmail.com wrote:
For some reason..when I execute the find method, which should really
execute the '_process_request' method the find isn't
Hello once again POE world,
*I have a problem with a child daemon process not being killed when I hit
Ctrl-C for the parent. All other children are reaped but one remains. This
child happens to be the one using EasyDBI.
*I have noticed that when I hit Ctrl-C..I don't see the _stop event
..Do I handle
this in the parent by looking for open sessions or do I handle this on the
child side by adding signal handlers?
Any and all suggestions welcome. Thanks in advance for any advice
On Fri, May 8, 2009 at 5:48 PM, Josh803316 josh803...@gmail.com wrote:
Hello once again POE world
To Whom may want to Help,
I have two IKC clients that publish their states to a IKC server (each one
is a separate process).
I want to be able to use IKC to make both clients talk with each other once
they have published their states.
I tried to subscribe from one client to the other client,
= 'unsub_event',
register= 'reg_event',
unregister = 'unreg_event'
});
$kernel-post( 'IKC', 'publish', $alias, [$class-SUBSCRIBE_METHODS]
);
$class-__startup($kernel,$session,$heap);
}
}
On Tue, May 12, 2009 at 3:27 PM, Josh803316 josh803
post
the solution to this attempt later if I follow through.
On Wed, May 13, 2009 at 1:29 AM, Brandon M. Andrews
brandonmandr...@gmail.com wrote:
Josh803316 wrote:
To Whom may want to Help,
I have two IKC clients that publish their states to a IKC server (each one
is a separate process).
I
I'm starting a poe session inside of a forked long running daemon. I'm
wondering under what circumstances would the arglist passed to _start for a
new session be undef: I know the $poe_kernel is running and active because I
can dump it. If I try to dump $_[KERNEL] I get nothing.
use POE;
use
Yes, those args are being used. With David Davis' help I realized that the
problem was as follows:
$obj is a poe component generic object and I hadn't added the use POE;
inside the module that was being wrapped. There was no error or warning
which was odd, but it looks like things are working now
If I'm wrapping a long running module with poco generic(see below), how do I
access the packages methods?
$heap-{$alias} = POE::Component::Generic-spawn(
package = 'LongRunning::Test',
alias = $alias,
object_options = [
*Hopefully this doesn't create a new thread.
I figured out the problem with having access to the Packages. I need to have
factories methods defined so that when the return came with the blessed
object, I had access to the object in ARG1 of the return.
$heap-{$alias} =
...@artware.qc.ca wrote:
On 24-Jul-2009 Josh803316 wrote:
*Hopefully this doesn't create a new thread.
I figured out the problem with having access to the Packages. I need to
have
factories methods defined so that when the return came with the blessed
object, I had access to the object
I'm trying to create a postback event for my server ...but for some
reason I'm not seeing the $session-postback('client_output') get called. I
want to wait to receive a response from the $kernel-post before I respond
back to the client with the returned result.
I think my syntax must be
My application using Poe::Wheel::RunPoCo::TCP::Server (and Client) and
Poe::Component::Generic is crashing with the following stack trace. Most
notably:
pid 855 STDERR: 27:ERR: Can't store GLOB items at blib/lib/Storable.pm
(autosplit into blib/lib/auto/Storable/_freeze.al) line 339, at
/Storable.pm (autosplit into
../../lib/auto/Storable/_freeze.al) line 339, at -e line 1
If you choose to use something like YAML, POE::Filter::Reference's
documentation will explain how to replace Storable.
--
Rocco Caputo - rcap...@pobox.com
On Dec 22, 2009, at 16:28, Josh803316 wrote:
My
I'm attempting to spawn long running processes using PoCo::Generic.
Sometimes the processes run and sometimes they immediately stop and fail
(like the trace shown below). What can cause these wheel read errors and
what is the best way to clean each process up after it has finished?
I've turned
I am using poco-generic to spawn a long running child. The child executes a
series of test steps and then exits when it is finished. I'm running into a
problem with attempting to stop/kill the long running child under the
following condition.
Condition:
Child process connects to another device
if the object is in a blocking method.
It is assumed that your object won't prevent the child from exiting. If you
want your object to live longer (say for some long-running activity) please
fork off a grand-child.
On Thu, Aug 19, 2010 at 1:33 PM, Josh803316 josh803...@gmail.com wrote:
I am using poco
26 matches
Mail list logo