That's only the logical code.
Only i missed return statement after the commit() statement. Here I am 
pasting return statement.

vertexObject.commit();
return new ResponseEntity<String>(vertexObject.getRecord().toJSON(), 
HttpStatus.OK); 

I have small doubt on creating of GraphFactory , Please suggest is this the 
right way of creating graphFactory
Here the code I am posting.

and for each controller I am calling factory.getNoTxGraph() method

public class FactoryService {

static Logger logger = Logger.getLogger(FactoryService.class);

public static OrientGraphFactory factory;

static {

logger.info("factory creating");

factory = new OrientGraphFactory(Constants.DATABASE_URL).setupPool(10, 40);

}

public OrientGraphFactory getGraphFactory(){

if(factory == null){

factory = new OrientGraphFactory(Constants.DATABASE_URL).setupPool(10, 40);

}

return factory;

}

public static OrientBaseGraph getNoTxGraph(){

return factory.getNoTx();

}

public  static OrientBaseGraph getTxGraph(){

return factory.getTx();

}


}


Thank you
Gopinath Chilukuri
[email protected]


On Tuesday, November 15, 2016 at 7:14:33 PM UTC+5:30, [email protected] 
wrote:
>
> Could you post more code ?
>
> Thanks
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to