Skip to content

Commit f34591a

Browse files
committed
fix: Ensure the gRPC service is started correctly
1 parent c141b68 commit f34591a

File tree

5 files changed

+4
-9
lines changed

5 files changed

+4
-9
lines changed

reference/grpc/src/main/resources/META-INF/beans.xml

Whitespace-only changes.
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +0,0 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<beans xmlns="https://jakarta.ee/xml/ns/jakartaee"
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/beans_4_0.xsd"
5-
version="4.0" bean-discovery-mode="all">
6-
</beans>
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
# The GrpcHandler @ApplicationScoped annotation is not compatible with Quarkus
2-
quarkus.arc.exclude-types=io.a2a.grpc.handler.GrpcHandler
31
%dev.quarkus.http.port=9999

transport/grpc/src/main/java/io/a2a/grpc/handler/GrpcHandler.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
import static io.a2a.grpc.utils.ProtoUtils.FromProto;
44
import static io.a2a.grpc.utils.ProtoUtils.ToProto;
55

6+
import jakarta.enterprise.inject.Vetoed;
7+
68
import java.util.HashMap;
79
import java.util.List;
810
import java.util.Map;
@@ -43,6 +45,7 @@
4345
import io.grpc.Status;
4446
import io.grpc.stub.StreamObserver;
4547

48+
@Vetoed
4649
public abstract class GrpcHandler extends A2AServiceGrpc.A2AServiceImplBase {
4750

4851
// Hook so testing can wait until streaming subscriptions are established.

transport/grpc/src/main/resources/META-INF/beans.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
<beans xmlns="https://jakarta.ee/xml/ns/jakartaee"
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/beans_4_0.xsd"
5-
version="4.0" bean-discovery-mode="all">
5+
bean-discovery-mode="annotated">
66
</beans>

0 commit comments

Comments
 (0)