+
+ rv = MSG_task_send_with_timeout(task, alias, (double) jtimeout);
+
+ (*env)->ReleaseStringUTFChars(env, jalias, alias);
+
+ /* throw the right exception corresponding to HostFailureException, TransferFailureException, TimeoutFailureException
+ * Note: these exceptions must be created beforehand
+ * then, you want to create some functions like jxbt_throw_notbound()
+ * then, you must declare in the MsgNative stuff that these native functions can throw these exceptions
+ */
+ if (MSG_OK != rv)
+ {
+
+ if ( rv == MSG_TRANSFER_FAILURE )
+ jxbt_throw_transfer_failure(env,MSG_task_get_name(task),alias);
+
+ else if ( rv == MSG_HOST_FAILURE )
+ jxbt_throw_host_failure(env,MSG_task_get_name(task),alias);