package org.realityforge.replicant.server.ee.rest;

import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import org.realityforge.replicant.shared.transport.ReplicantContext;
import org.realityforge.ssf.SessionManager;

/**
 * The token source is for generating the initial token.
 *
 * It is expected that this endpoint has already had security applied.
 */
@Path( ReplicantContext.TOKEN_URL_FRAGMENT )
@Produces( MediaType.TEXT_PLAIN )
public class TokenRestService
{
  @Inject
  private SessionManager _sessionManager;

  @GET
  public String generateToken()
  {
    return _sessionManager.createSession().getSessionID();
  }
}

@@ -62,21 +62,15 @@
 vax.
-inject.Inject
+ejb.EJB
 ;%0Aim
@@ -551,14 +551,11 @@
 %0A  @
-Inject
+EJB
 %0A  p

Use an @EJB annotation to comply with Domgen generated code