Skip to content

Commit

Permalink
remove hard coded password and use the one in the application config (o…
Browse files Browse the repository at this point in the history
  • Loading branch information
markxnelson authored Jun 4, 2022
1 parent 5e36af8 commit 5aaa5e1
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

package io.micronaut.data.examples;

import io.micronaut.context.annotation.Value;

//import com.fasterxml.jackson.databind.ObjectMapper;
import org.json.JSONObject;
import oracle.jdbc.OraclePreparedStatement;
Expand All @@ -30,7 +32,12 @@ public class InventoryServiceOrderEventConsumer implements Runnable {
public static final String INVENTORYDOESNOTEXIST = "inventorydoesnotexist";
private DataSource atpInventoryPDB;
Connection dbConnection;
String inventoryuser = "inventoryuser", inventorypw = "Welcome12345", orderQueueName = "ORDERQUEUE", inventoryQueueName = "INVENTORYQUEUE", queueOwner = "AQ";

@Value("${datasources.default.username}")
String inventoryuser;
@Value("${datasources.default.password}")
String inventorypw;
String orderQueueName = "ORDERQUEUE", inventoryQueueName = "INVENTORYQUEUE", queueOwner = "AQ";


public InventoryServiceOrderEventConsumer(DataSource atpInventoryPDB) {
Expand Down

0 comments on commit 5aaa5e1

Please sign in to comment.