ejb-to-cdi

ejb-to-cdi is a skill for Claude Code, Codex from konveyor/agentic-controller. It costs 16 tokens per session (346 once invoked), scanned A, original, Apache-2.0.

A migration guide for replacing Enterprise JavaBeans (EJB), an older Java server component model, with CDI managed beans in Jakarta EE or Quarkus.

In plain words
What is it for?
Use it to convert bean scopes, dependency injection, JNDI lookups, scheduled tasks, and message-driven components from EJB to CDI or framework-specific alternatives.
Why use it?
It helps update older Java applications without guessing how EJB annotations, injection, timers, and messaging map to newer frameworks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to convert bean scopes, dependency injection, JNDI lookups, scheduled tasks, and message-driven components from EJB to CDI or framework-specific alternatives.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/konveyor/agentic-controller/ejb-to-cdi
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add konveyor/agentic-controller --skill ejb-to-cdi
Clone the repo
git clone --depth 1 https://github.com/konveyor/agentic-controller

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ejb-to-cdi

README.md
[![agentmods](https://agentmods.dev/badge/skills/konveyor/agentic-controller/ejb-to-cdi.svg)](https://agentmods.dev/skills/konveyor/agentic-controller/ejb-to-cdi)
Your own site
<a href="https://agentmods.dev/skills/konveyor/agentic-controller/ejb-to-cdi"><img src="https://agentmods.dev/badge/skills/konveyor/agentic-controller/ejb-to-cdi.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 346 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.00346
Opus 5 $0.00008 $0.00173
Sonnet 5 $0.00003 $0.00069
Haiku 4.5 $0.00002 $0.00035

Measured 7d ago against content hash 39fc8716e3c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

ejb-to-cdi scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

catalog/examples/ejb-to-cdi/SKILL.md · 54 lines

What it actually says

EJB to CDI Migration

When migrating from Java EE to Jakarta EE or Quarkus, replace Enterprise JavaBeans (EJB) with CDI managed beans.

Rules

  1. Replace @Stateless with @ApplicationScoped.
  2. Replace @Stateful with @SessionScoped or @ApplicationScoped depending on the use case.
  3. Replace @Singleton (javax.ejb) with @ApplicationScoped + @Startup if initialization is needed.
  4. Remove @LocalBean and @Local — CDI beans are local by default.
  5. Replace @EJB injection with @Inject.
  6. Replace JNDI lookups with CDI @Inject or programmatic lookup via CDI.current().select(...).
  7. Replace @Schedule (EJB Timer) with Quarkus @Scheduled or jakarta.enterprise.concurrent scheduled executors.
  8. Replace @MessageDriven with framework-specific messaging (e.g., Quarkus SmallRye Reactive Messaging with @Incoming).

Examples

Before:

@Stateless
public class OrderService {
    @EJB
    private InventoryService inventory;

    public void processOrder(Order order) {
        inventory.reserve(order.getItems());
    }
}

After:

@ApplicationScoped
public class OrderService {
    @Inject
    InventoryService inventory;

    public void processOrder(Order order) {
        inventory.reserve(order.getItems());
    }
}
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 54 lines · 16 tokens per session scan A 39fc8716e3c6

Subscribe to this mod's changes

ejb-to-cdi is a skill published in the GitHub repository konveyor/agentic-controller (2 stars, last pushed 2d ago), licensed Apache-2.0. It adds 16 tokens to every session and 346 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

wxjava-api-contributor

A contributor guide for adding or maintaining official WeChat API support in WxJava, a Java software development kit. It covers services, request and response data objects, data conversion, HTTP handling, starter configuration, and regression tests.

binarywang/WxJava · 68 tokens

wxjava-module-selector

A decision guide for choosing the correct WxJava Maven module, dependency management file, and example for a WeChat use case. WxJava is a Java software development kit for services such as official accounts, mini programs, and payments.

binarywang/WxJava · 86 tokens

azure-communication-callautomation-java

Build call automation workflows with Azure Communication Services Call Automation Java SDK. Use when implementing IVR systems, call routing, call recording, DTMF recognition, text-to-speech, or AI-powered call flows.

microsoft/skills · 49 tokens

azure-communication-chat-java

Build real-time chat applications with Azure Communication Services Chat Java SDK. Use when implementing chat threads, messaging, participants, read receipts, typing notifications, or real-time chat features.

microsoft/skills · 41 tokens

azure-communication-common-java

Azure Communication Services common utilities for Java. Use when working with CommunicationTokenCredential, user identifiers, token refresh, or shared authentication across ACS services.

microsoft/skills · 35 tokens

azure-communication-sms-java

Send SMS messages with Azure Communication Services SMS Java SDK. Use when implementing SMS notifications, alerts, OTP delivery, bulk messaging, or delivery reports.

microsoft/skills · 36 tokens