Skip to content

Commit 0b02144

Browse files
authored
Merge pull request #40 from Open-JDBC-Proxy/copilot/fix-5769f3db-5955-41c2-8217-e5c2b96f5497
Refactor codebase: Open JDBC Proxy → Open J Proxy and package migration
2 parents ba45252 + d5f032c commit 0b02144

File tree

182 files changed

+622
-785
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+622
-785
lines changed

.github/workflows/docker-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,5 @@ jobs:
4444
-Djib.to.auth.username="${DOCKERHUB_USER}" \
4545
-Djib.to.auth.password="${DOCKERHUB_TOKEN}" \
4646
-Djib.to.image="${DOCKERHUB_REPO}/ojp:${{ github.event.inputs.tag }}" \
47-
-Djib.container.mainClass="org.openjdbcproxy.grpc.server.GrpcServer" \
47+
-Djib.container.mainClass="org.openjproxy.grpc.server.GrpcServer" \
4848
-Djib.container.ports=1059

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# Open JDBC Proxy
2+
# Open J Proxy
33

44
![Release](https://img.shields.io/github/v/release/Open-JDBC-Proxy/ojp?include_prereleases)
55
[![Main CI](https://github.com/Open-JDBC-Proxy/ojp/actions/workflows/main.yml/badge.svg)](https://github.com/Open-JDBC-Proxy/ojp/actions/workflows/main.yml)
@@ -36,7 +36,7 @@ docker run --rm -d -p 1059:1059 rrobetti/ojp:0.1.0-beta
3636
### 2. Add OJP JDBC Driver to your project
3737
```xml
3838
<dependency>
39-
<groupId>org.openjdbcproxy</groupId>
39+
<groupId>org.openjproxy</groupId>
4040
<artifactId>ojp-jdbc-driver</artifactId>
4141
<version>0.1.0-beta</version>
4242
</dependency>
@@ -58,7 +58,7 @@ Replace your existing connection URL by prefixing with `ojp[host:port]_`:
5858
// SQL Server example
5959
"jdbc:ojp[localhost:1059]_sqlserver://localhost:1433;databaseName=mydb"
6060
```
61-
Use the ojp driver: `org.openjdbcproxy.jdbc.Driver`
61+
Use the ojp driver: `org.openjproxy.jdbc.Driver`
6262

6363
That's it! Your application now uses intelligent connection pooling through OJP.
6464

@@ -122,7 +122,7 @@ The ojp-jdbc-driver is an implementation of the JDBC specification. It connects
122122
Latest version:
123123

124124
<dependency>
125-
<groupId>org.openjdbcproxy</groupId>
125+
<groupId>org.openjproxy</groupId>
126126
<artifactId>ojp-jdbc-driver</artifactId>
127127
<version>0.1.0-beta</version>
128128
</dependency>

documents/configuration/ojp-jdbc-configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Add the OJP JDBC driver dependency to your project:
4848

4949
```xml
5050
<dependency>
51-
<groupId>org.openjdbcproxy</groupId>
51+
<groupId>org.openjproxy</groupId>
5252
<artifactId>ojp-jdbc-driver</artifactId>
5353
<version>0.1.0-beta</version>
5454
</dependency>
@@ -72,7 +72,7 @@ Replace your existing JDBC connection URL by prefixing with `ojp[host:port]_`:
7272
"jdbc:ojp[localhost:1059]_sqlserver://localhost:1433;databaseName=mydb"
7373
```
7474

75-
Use the OJP driver class: `org.openjdbcproxy.jdbc.Driver`
75+
Use the OJP driver class: `org.openjproxy.jdbc.Driver`
7676

7777
### Important Notes
7878

documents/configuration/ojp-server-configuration.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -282,12 +282,12 @@ Enable debug logging to see configuration loading:
282282
Configuration summary is logged at startup:
283283

284284
```
285-
INFO org.openjdbcproxy.grpc.server.ServerConfiguration - OJP Server Configuration:
286-
INFO org.openjdbcproxy.grpc.server.ServerConfiguration - Server Port: 1059
287-
INFO org.openjdbcproxy.grpc.server.ServerConfiguration - Prometheus Port: 9090
288-
INFO org.openjdbcproxy.grpc.server.ServerConfiguration - OpenTelemetry Enabled: true
289-
INFO org.openjdbcproxy.grpc.server.ServerConfiguration - Slow Query Segregation Enabled: true
290-
INFO org.openjdbcproxy.grpc.server.ServerConfiguration - Slow Query Slot Percentage: 20%
285+
INFO org.openjproxy.grpc.server.ServerConfiguration - OJP Server Configuration:
286+
INFO org.openjproxy.grpc.server.ServerConfiguration - Server Port: 1059
287+
INFO org.openjproxy.grpc.server.ServerConfiguration - Prometheus Port: 9090
288+
INFO org.openjproxy.grpc.server.ServerConfiguration - OpenTelemetry Enabled: true
289+
INFO org.openjproxy.grpc.server.ServerConfiguration - Slow Query Segregation Enabled: true
290+
INFO org.openjproxy.grpc.server.ServerConfiguration - Slow Query Slot Percentage: 20%
291291
...
292292
```
293293

documents/contributor-badges/contributor-recognition-program.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 🏅 OJP Contributor Recognition Program
22

3-
The Open JDBC Proxy (OJP) project thrives on community contributions of all kinds — code, testing, documentation, and evangelism.
3+
The Open J Proxy (OJP) project thrives on community contributions of all kinds — code, testing, documentation, and evangelism.
44
Each track has progressive badges that reflect your journey. No matter the path, all contributors can ultimately reach the highest honor: **🏆 OJP Champion**.
55

66
---

documents/fat-jar/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ java -jar ojp-server/target/ojp-server-0.1.0-beta-shaded.jar
7373
When the server starts successfully, you should see output similar to:
7474

7575
```
76-
[main] INFO org.openjdbcproxy.grpc.server.ServerConfiguration - OJP Server Configuration:
77-
[main] INFO org.openjdbcproxy.grpc.server.ServerConfiguration - Server Port: 1059
78-
[main] INFO org.openjdbcproxy.grpc.server.ServerConfiguration - Prometheus Port: 9090
79-
[main] INFO org.openjdbcproxy.grpc.server.ServerConfiguration - OpenTelemetry Enabled: true
80-
[main] INFO org.openjdbcproxy.grpc.server.GrpcServer - Starting OJP gRPC Server on port 1059
81-
[main] INFO org.openjdbcproxy.grpc.server.GrpcServer - OJP gRPC Server started successfully and awaiting termination
76+
[main] INFO org.openjproxy.grpc.server.ServerConfiguration - OJP Server Configuration:
77+
[main] INFO org.openjproxy.grpc.server.ServerConfiguration - Server Port: 1059
78+
[main] INFO org.openjproxy.grpc.server.ServerConfiguration - Prometheus Port: 9090
79+
[main] INFO org.openjproxy.grpc.server.ServerConfiguration - OpenTelemetry Enabled: true
80+
[main] INFO org.openjproxy.grpc.server.GrpcServer - Starting OJP gRPC Server on port 1059
81+
[main] INFO org.openjproxy.grpc.server.GrpcServer - OJP gRPC Server started successfully and awaiting termination
8282
```
8383

8484
### Running with Custom Configuration
@@ -216,7 +216,7 @@ java -Xmx2g -jar ojp-server/target/ojp-server-0.1.0-beta-shaded.jar
216216

217217
```bash
218218
java -cp "oracle-driver.jar:ojp-server-0.1.0-beta-shaded.jar" \
219-
org.openjdbcproxy.grpc.server.GrpcServer
219+
org.openjproxy.grpc.server.GrpcServer
220220
```
221221

222222
### Performance Tuning

documents/java-frameworks/micronaut/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ To integrate OJP into your Micronaut project follow the steps:
55
## 1 Add the maven dependency to your project.
66

77
<dependency>
8-
<groupId>org.openjdbcproxy</groupId>
8+
<groupId>org.openjproxy</groupId>
99
<artifactId>ojp-jdbc-driver</artifactId>
1010
<version>[TBD]</version>
1111
</dependency>
@@ -80,7 +80,7 @@ To integrate OJP into your Micronaut project follow the steps:
8080
In your application.properties(or yaml) file, update your database connection URL, and add the OJP jdbc driver class as in the following example:
8181
> quarkus.datasource.jdbc.url=jdbc:ojp[localhost:1059]_h2:mem:shopdb
8282
>
83-
> quarkus.datasource.jdbc.driver=org.openjdbcproxy.jdbc.Driver
83+
> quarkus.datasource.jdbc.driver=org.openjproxy.jdbc.Driver
8484
>
8585
> jpa.default.properties.hibernate.dialect=org.hibernate.dialect.H2Dialect
8686

documents/java-frameworks/quarkus/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ To integrate OJP into your Quarkus project follow the steps:
55
## 1 Add the maven dependency to your project.
66

77
<dependency>
8-
<groupId>org.openjdbcproxy</groupId>
8+
<groupId>org.openjproxy</groupId>
99
<artifactId>ojp-jdbc-driver</artifactId>
1010
<version>[TBD]</version>
1111
</dependency>
@@ -22,6 +22,6 @@ To integrate OJP into your Quarkus project follow the steps:
2222
In your application.properties(or yaml) file, update your database connection URL, and add the OJP jdbc driver class as in the following example:
2323
> quarkus.datasource.jdbc.url=jdbc:ojp[localhost:1059]_h2:mem:shopdb
2424
>
25-
> quarkus.datasource.jdbc.driver=org.openjdbcproxy.jdbc.Driver
25+
> quarkus.datasource.jdbc.driver=org.openjproxy.jdbc.Driver
2626
2727
The example above is for h2 but it is similar to any other database, you just need to add the "ojp[host:port]_" pattern immediately after "jdbc:". "[host:port]" indicates the host and port you have your OJP proxy server running.

documents/java-frameworks/spring-boot/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ To integrate OJP into your Spring Boot project follow the steps:
55
## 1 Add the maven dependency to your project.
66

77
<dependency>
8-
<groupId>org.openjdbcproxy</groupId>
8+
<groupId>org.openjproxy</groupId>
99
<artifactId>ojp-jdbc-driver</artifactId>
1010
<version>[TBD]</version>
1111
</dependency>
@@ -29,6 +29,6 @@ Spring boot by default comes with HikariCP connection pool, as OJP replaces comp
2929
In your application.properties(or yaml) file, update your database connection URL, and add the OJP jdbc driver class as in the following example:
3030
> spring.datasource.url=jdbc:ojp[localhost:1059]_h2:~/test
3131
>
32-
> spring.datasource.driver-class-name=org.openjdbcproxy.jdbc.Driver
32+
> spring.datasource.driver-class-name=org.openjproxy.jdbc.Driver
3333
3434
The example above is for h2 but it is similar to any other database, you just need to add the "ojp[host:port]_" pattern immediately after "jdbc:". "[host:port]" indicates the host and port you have your OJP proxy server running.

documents/telemetry/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Telemetry Documentation
22

3-
OJP (Open JDBC Proxy) provides observability features to monitor database operations through its telemetry system.
3+
OJP (Open J Proxy) provides observability features to monitor database operations through its telemetry system.
44

55
## Currently Supported Telemetry Features
66

0 commit comments

Comments
 (0)