| 4452 | |
| 4453 | |
| 4454 | void JService::start(CheckStatusWrapper* user_status, unsigned int spbLength, const unsigned char* spb) |
| 4455 | { |
| 4456 | /************************************** |
| 4457 | * |
| 4458 | * g d s _ s e r v i c e _ s t a r t |
| 4459 | * |
| 4460 | ************************************** |
| 4461 | * |
| 4462 | * Functional description |
| 4463 | * Start the specified service |
| 4464 | * |
| 4465 | * NOTE: The parameter RESERVED must not be used |
| 4466 | * for any purpose as there are networking issues |
| 4467 | * involved (as with any handle that goes over the |
| 4468 | * network). This parameter will be implemented at |
| 4469 | * a later date. |
| 4470 | **************************************/ |
| 4471 | try |
| 4472 | { |
| 4473 | ThreadContextHolder tdbb(user_status); |
| 4474 | |
| 4475 | validateHandle(svc); |
| 4476 | |
| 4477 | svc->start(spbLength, spb); |
| 4478 | |
| 4479 | UtilSvc::StatusAccessor status = svc->getStatusAccessor(); |
| 4480 | if (status->getState() & IStatus::STATE_ERRORS) |
| 4481 | { |
| 4482 | fb_utils::copyStatus(user_status, status); |
| 4483 | return; |
| 4484 | } |
| 4485 | } |
| 4486 | catch (const Exception& ex) |
| 4487 | { |
| 4488 | ex.stuffException(user_status); |
| 4489 | return; |
| 4490 | } |
| 4491 | |
| 4492 | successful_completion(user_status); |
| 4493 | } |
| 4494 | |
| 4495 | |
| 4496 | void JRequest::startAndSend(CheckStatusWrapper* user_status, ITransaction* tra, int level, |
no test coverage detected