Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CONF
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UvA
CONF
Commits
776ca552
Commit
776ca552
authored
8 years ago
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added properties
parent
e822aa62
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
MethodSecurityConfig.java
...n/java/nl/uva/sne/drip/api/conf/MethodSecurityConfig.java
+1
-1
RPCServer.java
...main/java/nl/uva/sne/drip/drip/provisioner/RPCServer.java
+3
-0
No files found.
drip-api/src/main/java/nl/uva/sne/drip/api/conf/MethodSecurityConfig.java
View file @
776ca552
...
...
@@ -24,7 +24,7 @@ import org.springframework.security.config.annotation.method.configuration.Globa
/**
*
* @author
alogo
* @author
S. Koulouzis
*/
@Configuration
@EnableGlobalMethodSecurity
(
prePostEnabled
=
true
)
...
...
This diff is collapsed.
Click to expand it.
drip-provisioner/src/main/java/nl/uva/sne/drip/drip/provisioner/RPCServer.java
View file @
776ca552
...
...
@@ -22,6 +22,7 @@ import com.rabbitmq.client.ConnectionFactory;
import
java.io.FileInputStream
;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.text.MessageFormat
;
import
java.util.Properties
;
import
java.util.concurrent.TimeoutException
;
import
java.util.logging.Level
;
...
...
@@ -54,6 +55,7 @@ public class RPCServer {
}
}
HOST
=
prop
.
getProperty
(
"rabbitmq.host"
,
"127.0.0.1"
);
Logger
.
getLogger
(
RPCServer
.
class
.
getName
()).
log
(
Level
.
INFO
,
MessageFormat
.
format
(
"rabbitmq.host: {0}"
,
HOST
));
start
();
}
...
...
@@ -63,6 +65,7 @@ public class RPCServer {
factory
.
setPassword
(
"guest"
);
factory
.
setUsername
(
"guest"
);
factory
.
setPort
(
AMQP
.
PROTOCOL
.
PORT
);
Logger
.
getLogger
(
RPCServer
.
class
.
getName
()).
log
(
Level
.
INFO
,
"Trying to connect to: {0}"
,
HOST
);
try
(
Connection
connection
=
factory
.
newConnection
())
{
Channel
channel
=
connection
.
createChannel
();
//We define the queue name
...
...
This diff is collapsed.
Click to expand it.
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