Hi,

I have been trying to find my way through, debugging through the code. So
far, I think, I have managed to initialize a server instance with the code
below,

        TransactionManager transactionManager = new Current();
        BasicDataSource basicDataSource = new BasicDataSource();

        Properties odeProperties = new Properties();

        SimpleScheduler scheduler = new SimpleScheduler(new
GUID().toString(), new JdbcDelegate(basicDataSource), odeProperties );
        scheduler.setExecutorService(Executors.newCachedThreadPool());
        scheduler.setTransactionManager(transactionManager);

        BpelDAOConnectionFactoryImpl dcf = new
BpelDAOConnectionFactoryImpl(null);
        BpelServerImpl bpelServer = new BpelServerImpl();
        bpelServer.setDaoConnectionFactory(dcf);
        bpelServer.setScheduler(scheduler);
        bpelServer.init();

Is this the right approach?

Thanks
Meeraj

On Thu, Apr 22, 2010 at 8:49 PM, Meeraj Kunnumpurath <
[email protected]> wrote:

> Hi,
>
> I am looking at embedding ODE in an SCA container. The objective is to
> enable in-process two way invocation between BPEL processes and other
> component types like POJO instances. Quickly looking through the source, I
> gather the starting point is BpelServerImpl. Could someone please tell what
> is the minimalist requirements to get the server is going?
>
> 1. Is durable persistence always required?
> 2. How do I deploy a BPEL process, if I have a handle to the physical
> resource representing the process?
> 3. How do I send a message to a named process and receive the return value?
> 4. Can I register some kind of endpoint reference with a registered
> process, so that the process can make any outbound calls through the
> registered endpoint references?
> 5. What are the lifecycle operations on the BpelServerImpl?
>
> The code I have now is as simple as below,
>
> BpelServerImpl bpelServer = new BpelServerImpl();
> bpelServer.init();
>
> I get the following exception ..
>
> Exception in thread "main" java.lang.NullPointerException: sscf is null!
>     at org.apache.ode.bpel.engine.BpelDatabase.<init>(BpelDatabase.java:43)
>     at
> org.apache.ode.bpel.engine.BpelServerImpl.init(BpelServerImpl.java:237)
>     at
> org.sca4j.bpel.ode.OdeEmbeddedBpelServer.start(OdeEmbeddedBpelServer.java:45)
>     at
> org.sca4j.bpel.ode.OdeEmbeddedBpelServer.main(OdeEmbeddedBpelServer.java:54)
>
> Kind regards
> Meeraj
>

Reply via email to