This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ModuleFederationPlugin = require("webpack/lib/container/ModuleFederationPlugin"); | |
const mf = require("@angular-architects/module-federation/webpack"); | |
const path = require("path"); | |
const share = mf.share; | |
const sharedMappings = new mf.SharedMappings(); | |
sharedMappings.register(path.join(__dirname, "tsconfig.json"), [ | |
/* mapped paths to share */ | |
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>tutorial</groupId> | |
<artifactId>powermock-jacoco-coverage</artifactId> | |
<version>1.0-SNAPSHOT</version> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WAITFOR ( | |
RECEIVE TOP(1) @message_type = message_type_name, | |
@message_body = CAST(message_body AS varchar(max)), | |
@dialog = conversation_handle | |
FROM dbo.TestQueue ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.demolistener; | |
import org.junit.jupiter.api.Test; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.test.context.SpringBootTest; | |
import org.springframework.jdbc.core.JdbcTemplate; | |
import java.util.List; | |
import java.util.Map; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You have 3 free member-only stories left this month. Upgrade for unlimited access. | |
Marcus Janke | |
Marcus Janke | |
Dec 27, 2019 | |
· | |
2 min read | |
· | |
· | |
Consuming segmented IBM MQ messages in Java |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SET TABLE mytablename TYPE CACHED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<dependency> | |
<groupId>org.springframework.data</groupId> | |
<artifactId>spring-data-jdbc-core</artifactId> | |
<version>2.2.2.RELEASE</version> | |
</dependency> | |
<dependency> | |
<groupId>org.springframework.data</groupId> | |
<artifactId>spring-data-jdbc-ext</artifactId> | |
<version>2.2.2.RELEASE</version> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javax.jms.Message; | |
import org.springframework.util.ErrorHandler; | |
public class MyJmsErrorHandler implements ErrorHandler { | |
@Override | |
public void handleError(Throwable t) { | |
// Handle the error here | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PersonSpecifications { | |
public static Specification<Person> hasFirstName(String firstName) { | |
return (root, query, cb) -> cb.equal(root.get("firstName"), firstName); | |
} | |
public static Specification<Person> hasLastName(String lastName) { | |
return (root, query, cb) -> cb.equal(root.get("lastName"), lastName); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.apache.lucene.analysis.standard.StandardAnalyzer; | |
import org.apache.lucene.queryparser.classic.ParseException; | |
import org.apache.lucene.queryparser.classic.QueryParser; | |
import org.apache.lucene.search.Query; | |
import org.apache.lucene.index.Term; | |
public class QueryBuilder { | |
public static Query buildQuery(String fieldName, String searchTerm) throws ParseException { | |
// Escape any special characters in the search term | |
String escapedSearchTerm = QueryParser.escape(searchTerm); |
OlderNewer