Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
fund-manage-sdk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QG
fund-manage-sdk
Commits
f1e9e6bb
Commit
f1e9e6bb
authored
Oct 28, 2016
by
chenkai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
throw exception
parent
efa9a187
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
MQSender.java
src/main/java/cn/quantgroup/fundmanage/MQSender.java
+8
-2
No files found.
src/main/java/cn/quantgroup/fundmanage/MQSender.java
View file @
f1e9e6bb
...
@@ -112,7 +112,9 @@ public class MQSender {
...
@@ -112,7 +112,9 @@ public class MQSender {
channel
=
channelPool
.
borrowObject
();
channel
=
channelPool
.
borrowObject
();
channel
.
basicPublish
(
exchangeName
,
"qunar_baitiaodebt"
,
false
,
false
,
channel
.
basicPublish
(
exchangeName
,
"qunar_baitiaodebt"
,
false
,
false
,
PROPERTIES
,
content
.
getBytes
(
"utf8"
));
PROPERTIES
,
content
.
getBytes
(
"utf8"
));
}
finally
{
}
catch
(
Exception
e
)
{
throw
e
;
}
finally
{
if
(
channel
!=
null
)
{
if
(
channel
!=
null
)
{
channelPool
.
returnObject
(
channel
);
channelPool
.
returnObject
(
channel
);
}
}
...
@@ -130,6 +132,8 @@ public class MQSender {
...
@@ -130,6 +132,8 @@ public class MQSender {
channel
=
channelPool
.
borrowObject
();
channel
=
channelPool
.
borrowObject
();
channel
.
basicPublish
(
exchangeName
,
"confirmable"
,
false
,
false
,
channel
.
basicPublish
(
exchangeName
,
"confirmable"
,
false
,
false
,
PROPERTIES
,
messageStr
.
getBytes
(
"utf8"
));
PROPERTIES
,
messageStr
.
getBytes
(
"utf8"
));
}
catch
(
Exception
e
){
throw
e
;
}
finally
{
}
finally
{
if
(
channel
!=
null
)
{
if
(
channel
!=
null
)
{
channelPool
.
returnObject
(
channel
);
channelPool
.
returnObject
(
channel
);
...
@@ -145,7 +149,9 @@ public class MQSender {
...
@@ -145,7 +149,9 @@ public class MQSender {
channel
=
channelPool
.
borrowObject
();
channel
=
channelPool
.
borrowObject
();
channel
.
basicPublish
(
exchangeName
,
"confirm"
,
false
,
false
,
channel
.
basicPublish
(
exchangeName
,
"confirm"
,
false
,
false
,
PROPERTIES
,
message
.
getBytes
(
"utf8"
));
PROPERTIES
,
message
.
getBytes
(
"utf8"
));
}
finally
{
}
catch
(
Exception
e
){
throw
e
;
}
finally
{
if
(
channel
!=
null
)
{
if
(
channel
!=
null
)
{
channelPool
.
returnObject
(
channel
);
channelPool
.
returnObject
(
channel
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment