You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by Lance Waterman <la...@gmail.com> on 2006/04/08 00:47:31 UTC

PXE Debug Help

Could someone from the PXE team point me to any documentation/threads that
discuss debugging the PXE engine. I would like to run the spexcercizer unit
tests and step through the engine. Thanks for any help ( btw - I am using
the Eclipse JDT ).

Lance

Re: PXE Debug Help

Posted by Matthew Stevens <Ma...@Sun.COM>.
The NetBeans Java Freeform projects for PXE support debugging fairly 
well when starting the PXE standalone.  With NetBeans 4.1 or 5.0 you can 
build, start/stop and debug PXE from the custom actions on the 'pxe/PXE' 
project.  FWIW.  I realize you are using Eclipse.  I haven't exercised 
the projects since late Feb so let me know if they have problems.

Lance Waterman wrote:
> Could someone from the PXE team point me to any documentation/threads that
> discuss debugging the PXE engine. I would like to run the spexcercizer unit
> tests and step through the engine. Thanks for any help ( btw - I am using
> the Eclipse JDT ).
>
> Lance
>
>   


Re: PXE Debug Help

Posted by Lance Waterman <la...@gmail.com>.
Thanks Maciej, this sounds great and I will watch for your post.

Lance


On 4/12/06, Maciej Szefler <mb...@intalio.com> wrote:
>
> Lance,
> comments in line.
> On Mon, 2006-04-10 at 12:16 -0600, Lance Waterman wrote:
> > Thanks Paul - I'll give it a try.
> >
> > In light of a previous thread on the ODE API, I may be jumping forward a
> bit
> > but I would like to get a better understanding of the PXE architecture.
> >
> > 1) Is it possible to invoke PXE such that a BPEL process executes within
> the
> > client's context or is a PXE RMI server always required?
> >
> It is possible, but you'd have to use the BPEL libraries directly. If
> you do that, you'd not be getting all the infrastructure that the
> "Service Framework" provides.
>
> I'm working on a re-factor of the BPEL API to make this a more
> straightforward process, and should have it posted to the list today for
> input.
>
>
> > 2) I found the following FAQ on the PXE Wiki and would like to know if
> the
> > core process engine ( i.e. jacob, bpel-runtime ) can be abstracted away
> from
> > the task/threading framework ( i.e. sfwk-core, sfwk-impl )?
> >
> > *Q.* *Can PXE be deployed within an application server or web
> container?*
> > *A.* Yes, PXE can be deployed into most common application servers.
> However,
> > it is important to note that PXE is not an *enterprise application* in
> the
> > J2EE sense: PXE manages its own transactions and threads. Consequently,
> if
> > PXE is deployed using a WAR or EAR file, it will be in violation of a
> number
> > of J2EE contracts.
> Again, this is a statement about the Service Framework. In design and
> function, the Service Framework is analogous to JBI. It does thread
> management and violates J2EE contracts. The BPEL runtime / JACOB code
> does no thread management of its own.
>
> >
> > 3) Is it possible to synchronously invoke a PXE BPEL process? I saw this
> bit
> > of code in the BpelUnitTest ( line 160 ) so I thought I'd ask.
> >
> >       // We invoke here, but we get responses asynchronously, through
> our
> >       // callback methods!
> >       listener.invokeBPEL(
> >           _callback, svc, i == 0 ? "initial" : ("#" +i),
> >           msg.operation, patternSubstitution(sw.toString()));
> >
> The invocation model is asynchronous but it is certainly possible to
> implement a synchronous invoker using the asynchronous primitives.
> Again, please take a look at my proposed integration API when I post it
> later today; it should clear some things up.
>
> -maciej
>
>

Re: PXE Debug Help

Posted by Maciej Szefler <mb...@intalio.com>.
Lance,
comments in line.
On Mon, 2006-04-10 at 12:16 -0600, Lance Waterman wrote:
> Thanks Paul - I'll give it a try.
> 
> In light of a previous thread on the ODE API, I may be jumping forward a bit
> but I would like to get a better understanding of the PXE architecture.
> 
> 1) Is it possible to invoke PXE such that a BPEL process executes within the
> client's context or is a PXE RMI server always required?
> 
It is possible, but you'd have to use the BPEL libraries directly. If
you do that, you'd not be getting all the infrastructure that the
"Service Framework" provides. 

I'm working on a re-factor of the BPEL API to make this a more
straightforward process, and should have it posted to the list today for
input.


> 2) I found the following FAQ on the PXE Wiki and would like to know if the
> core process engine ( i.e. jacob, bpel-runtime ) can be abstracted away from
> the task/threading framework ( i.e. sfwk-core, sfwk-impl )?
> 
> *Q.* *Can PXE be deployed within an application server or web container?*
> *A.* Yes, PXE can be deployed into most common application servers. However,
> it is important to note that PXE is not an *enterprise application* in the
> J2EE sense: PXE manages its own transactions and threads. Consequently, if
> PXE is deployed using a WAR or EAR file, it will be in violation of a number
> of J2EE contracts.
Again, this is a statement about the Service Framework. In design and
function, the Service Framework is analogous to JBI. It does thread
management and violates J2EE contracts. The BPEL runtime / JACOB code
does no thread management of its own.

> 
> 3) Is it possible to synchronously invoke a PXE BPEL process? I saw this bit
> of code in the BpelUnitTest ( line 160 ) so I thought I'd ask.
> 
>       // We invoke here, but we get responses asynchronously, through our
>       // callback methods!
>       listener.invokeBPEL(
>           _callback, svc, i == 0 ? "initial" : ("#" +i),
>           msg.operation, patternSubstitution(sw.toString()));
> 
The invocation model is asynchronous but it is certainly possible to
implement a synchronous invoker using the asynchronous primitives.
Again, please take a look at my proposed integration API when I post it
later today; it should clear some things up.

-maciej


Re: PXE Debug Help

Posted by Lance Waterman <la...@gmail.com>.
Thanks Paul - I'll give it a try.

In light of a previous thread on the ODE API, I may be jumping forward a bit
but I would like to get a better understanding of the PXE architecture.

1) Is it possible to invoke PXE such that a BPEL process executes within the
client's context or is a PXE RMI server always required?

2) I found the following FAQ on the PXE Wiki and would like to know if the
core process engine ( i.e. jacob, bpel-runtime ) can be abstracted away from
the task/threading framework ( i.e. sfwk-core, sfwk-impl )?

*Q.* *Can PXE be deployed within an application server or web container?*
*A.* Yes, PXE can be deployed into most common application servers. However,
it is important to note that PXE is not an *enterprise application* in the
J2EE sense: PXE manages its own transactions and threads. Consequently, if
PXE is deployed using a WAR or EAR file, it will be in violation of a number
of J2EE contracts.

3) Is it possible to synchronously invoke a PXE BPEL process? I saw this bit
of code in the BpelUnitTest ( line 160 ) so I thought I'd ask.

      // We invoke here, but we get responses asynchronously, through our
      // callback methods!
      listener.invokeBPEL(
          _callback, svc, i == 0 ? "initial" : ("#" +i),
          msg.operation, patternSubstitution(sw.toString()));

Thanks for the help.

Lance

On 4/7/06, Paul R Brown <pa...@gmail.com> wrote:
>
>
> Hi, Lance --
>
> > Could someone from the PXE team point me to any documentation/
> > threads that
> > discuss debugging the PXE engine. I would like to run the
> > spexcercizer unit
> > tests and step through the engine. Thanks for any help ( btw - I am
> > using
> > the Eclipse JDT ).
>
> All of the interesting parts of the spexerciser run in the PXE server
> container, and IIRC, there is a flag that you can pass when starting
> the server executable that enables a JPDA connection...
>
> Look in $PXE_ROOT/PXE/src/bin/jlo-run.sh.template at around line 111;
> if you put --jdb on the commandline, then it will set up a connection
> for a JPDA debugger on port 5005 for your favorite debugger, be that
> in Eclipse or NetBeans. :)
>
>         -- Paul
>

Re: PXE Debug Help

Posted by Paul R Brown <pa...@gmail.com>.
Hi, Lance --

> Could someone from the PXE team point me to any documentation/ 
> threads that
> discuss debugging the PXE engine. I would like to run the  
> spexcercizer unit
> tests and step through the engine. Thanks for any help ( btw - I am  
> using
> the Eclipse JDT ).

All of the interesting parts of the spexerciser run in the PXE server  
container, and IIRC, there is a flag that you can pass when starting  
the server executable that enables a JPDA connection...

Look in $PXE_ROOT/PXE/src/bin/jlo-run.sh.template at around line 111;  
if you put --jdb on the commandline, then it will set up a connection  
for a JPDA debugger on port 5005 for your favorite debugger, be that  
in Eclipse or NetBeans. :)

	-- Paul