congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
EjbMessageDrivenModel
Code IndexAdd Tabnine to your IDE (free)

How to use
EjbMessageDrivenModel
in
org.jboss.windup.rules.apps.javaee.model

Best Java code snippets using org.jboss.windup.rules.apps.javaee.model.EjbMessageDrivenModel (Showing top 16 results out of 315)

origin: org.jboss.windup.rules.apps/rules-java-ee

mdb.setEjbClass(ejb);
mdb.setBeanName(ejbName);
mdb.setDisplayName(displayName);
mdb.setEjbId(ejbId);
mdb.setSessionType(sessionType);
mdb.setTransactionType(transactionType);
mdb.setDestination(destination);
  mdb.addEnvironmentReference(ref);
origin: org.jboss.windup.rules.apps/windup-rules-java-ee

private void extractMessageDrivenMetadata(GraphRewrite event, JavaTypeReferenceModel javaTypeReference)
{
  javaTypeReference.getFile().setGenerateSourceReport(true);
  JavaAnnotationTypeReferenceModel annotationTypeReference = (JavaAnnotationTypeReferenceModel) javaTypeReference;
  JavaClassModel ejbClass = getJavaClass(javaTypeReference);
  String ejbName = getAnnotationLiteralValue(annotationTypeReference, "name");
  if (Strings.isNullOrEmpty(ejbName))
  {
    ejbName = ejbClass.getClassName();
  }
  JavaAnnotationTypeValueModel activationConfigAnnotation = annotationTypeReference.getAnnotationValues().get("activationConfig");
  String destination = getAnnotationLiteralValue(annotationTypeReference, "mappedName");
  if (StringUtils.isBlank(destination))
  {
    destination = getDestinationFromActivationConfig(activationConfigAnnotation);
  }
  Service<EjbMessageDrivenModel> messageDrivenService = new GraphService<>(event.getGraphContext(), EjbMessageDrivenModel.class);
  EjbMessageDrivenModel messageDrivenBean = messageDrivenService.create();
  Set<ProjectModel> applications = ProjectTraversalCache.getApplicationsForProject(event.getGraphContext(), javaTypeReference.getFile().getProjectModel());
  messageDrivenBean.setApplications(applications);
  messageDrivenBean.setBeanName(ejbName);
  messageDrivenBean.setEjbClass(ejbClass);
  if (StringUtils.isNotBlank(destination))
  {
    String destinationType = getPropertyFromActivationConfig(activationConfigAnnotation, "destinationType");
    JmsDestinationService jmsDestinationService = new JmsDestinationService(event.getGraphContext());
    messageDrivenBean.setDestination(jmsDestinationService.createUnique(applications, destination, destinationType));
  }
}
origin: org.jboss.windup.rules.apps/rules-java-ee

private void extractMessageDrivenMetadata(GraphRewrite event, JavaTypeReferenceModel javaTypeReference)
{
  ((SourceFileModel) javaTypeReference.getFile()).setGenerateSourceReport(true);
  JavaAnnotationTypeReferenceModel annotationTypeReference = (JavaAnnotationTypeReferenceModel) javaTypeReference;
  JavaClassModel ejbClass = getJavaClass(javaTypeReference);
  String ejbName = annotationTypeReference.getAnnotationValues().get("name");
  String destination = annotationTypeReference.getAnnotationValues().get("mappedName");
  if (StringUtils.isBlank(destination))
  {
    String activationConfig = annotationTypeReference.getAnnotationValues().get("activationConfig");
    Pattern p = Pattern
          .compile(".*propertyName[ \\t\\n]*=[ \\t\\n]*\"destination\"[ \\t\\n]*,[ \\t\\n]*propertyValue[ \\t\\n]*=[ \\t\\n]*\"(.*?)\".*");
    Matcher m = p.matcher(activationConfig);
    if (m.matches())
    {
      destination = m.group(1);
    }
  }
  Service<EjbMessageDrivenModel> messageDrivenService = new GraphService<>(event.getGraphContext(), EjbMessageDrivenModel.class);
  EjbMessageDrivenModel messageDrivenBean = messageDrivenService.create();
  messageDrivenBean.setBeanName(ejbName);
  messageDrivenBean.setEjbClass(ejbClass);
  messageDrivenBean.setDestination(destination);
}
origin: org.jboss.windup.rules.apps/windup-rules-java-ee

mdb.setThreadPool(threadPoolModel);
  mdb.setDestination(jndiRef);
  mdb.setTxTimeouts(txTimeouts);
origin: windup/windup

mdb.setDestination(jndiRef);
origin: org.jboss.windup.rules.apps/windup-rules-java-ee

  mdb.setDestination(jndiRef);
mdb.setTxTimeouts(txTimeouts);
origin: windup/windup

mdb.setThreadPool(threadPoolModel);
  mdb.setDestination(jndiRef);
  mdb.setTxTimeouts(txTimeouts);
origin: org.jboss.windup.rules.apps/windup-rules-java-ee

mdb.setDestination(jndiRef);
origin: windup/windup

  mdb.setDestination(jndiRef);
mdb.setTxTimeouts(txTimeouts);
origin: org.jboss.windup.rules.apps/windup-rules-java-ee

mdb.setApplications(applications);
mdb.setEjbClass(ejb);
mdb.setBeanName(ejbName);
mdb.setDisplayName(displayName);
mdb.setEjbId(ejbId);
mdb.setSessionType(sessionType);
mdb.setTransactionType(transactionType);
  mdb.setDestination(jndiRef);
for (EnvironmentReferenceModel ref : refs)
  mdb.addEnvironmentReference(ref);
origin: windup/windup

private void extractMessageDrivenMetadata(GraphRewrite event, JavaTypeReferenceModel javaTypeReference)
{
  javaTypeReference.getFile().setGenerateSourceReport(true);
  JavaAnnotationTypeReferenceModel annotationTypeReference = (JavaAnnotationTypeReferenceModel) javaTypeReference;
  JavaClassModel ejbClass = getJavaClass(javaTypeReference);
  String ejbName = getAnnotationLiteralValue(annotationTypeReference, "name");
  if (Strings.isNullOrEmpty(ejbName))
  {
    ejbName = ejbClass.getClassName();
  }
  JavaAnnotationTypeValueModel activationConfigAnnotation = annotationTypeReference.getAnnotationValues().get("activationConfig");
  String destination = getAnnotationLiteralValue(annotationTypeReference, "mappedName");
  if (StringUtils.isBlank(destination))
  {
    destination = getDestinationFromActivationConfig(activationConfigAnnotation);
  }
  Service<EjbMessageDrivenModel> messageDrivenService = new GraphService<>(event.getGraphContext(), EjbMessageDrivenModel.class);
  EjbMessageDrivenModel messageDrivenBean = messageDrivenService.create();
  Set<ProjectModel> applications = ProjectTraversalCache.getApplicationsForProject(event.getGraphContext(), javaTypeReference.getFile().getProjectModel());
  messageDrivenBean.setApplications(applications);
  messageDrivenBean.setBeanName(ejbName);
  messageDrivenBean.setEjbClass(ejbClass);
  if (StringUtils.isNotBlank(destination))
  {
    String destinationType = getPropertyFromActivationConfig(activationConfigAnnotation, "destinationType");
    JmsDestinationService jmsDestinationService = new JmsDestinationService(event.getGraphContext());
    messageDrivenBean.setDestination(jmsDestinationService.createUnique(applications, destination, destinationType));
  }
}
origin: windup/windup

mdb.setDestination(jndiRef);
origin: windup/windup

mdb.setApplications(applications);
mdb.setEjbClass(ejb);
mdb.setBeanName(ejbName);
mdb.setDisplayName(displayName);
mdb.setEjbId(ejbId);
mdb.setSessionType(sessionType);
mdb.setTransactionType(transactionType);
  mdb.setDestination(jndiRef);
for (EnvironmentReferenceModel ref : refs)
  mdb.addEnvironmentReference(ref);
origin: org.jboss.windup.rules.apps/windup-rules-java-ee

mdb.setDestination(jndiRef);
origin: windup/windup

mdb.setDestination(jndiRef);
origin: org.jboss.windup.rules.apps/windup-rules-java-ee

mdb.setDestination(jndiRef);
org.jboss.windup.rules.apps.javaee.modelEjbMessageDrivenModel

Javadoc

Contains EJB Message Driven model information and related data.

Most used methods

  • addEnvironmentReference
  • setBeanName
  • setDestination
    Contains the destination address, typically a JMS queue or topic
  • setDisplayName
  • setEjbClass
  • setEjbId
  • setSessionType
  • setTransactionType
  • setApplications
  • setThreadPool
    References the thread pool, if defined.
  • setTxTimeouts
    Timeouts for each method pattern, * is wildcard
  • setTxTimeouts

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • runOnUiThread (Activity)
  • Permission (java.security)
    Legacy security code; do not use.
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now