Tabnine Logo
JBossSessionObjectReference
Code IndexAdd Tabnine to your IDE (free)

How to use
JBossSessionObjectReference
in
org.jboss.weld.integration.ejb

Best Java code snippets using org.jboss.weld.integration.ejb.JBossSessionObjectReference (Showing top 4 results out of 315)

origin: org.jboss.weld.integration/weld-jboss-int-jboss-ejb

public SessionObjectReference resolveEjb(EjbDescriptor<?> ejbDescriptor)
{
 try
 {
   return new JBossSessionObjectReference(ejbDescriptor, context);
 }
 catch (NamingException e)
 {
   throw new RuntimeException("Error retreiving EJB from JNDI " + ejbDescriptor, e);
 }
}
origin: org.jboss.weld.integration/weld-jboss-int-jboss-ejb

public void remove()
{
 if (stateful)
 {
   getEndpoint().getSessionFactory().destroySession(id);
   removed = true;
 }
 else
 {
   throw new UnsupportedOperationException("Can only remove stateful beans " + this );
 }
}
origin: org.jboss.jbossas/weld-int-ejb

public void remove()
{
 if (id == null && stateful)
 {
   log.warn("Cannot remove EJB, id unknown (likely because this is a no-interface view!)");
   removed = true;
   return;
 }
 else if (stateful)
 {
   getEndpoint().getSessionFactory().destroySession(id);
   removed = true;
 }
 else
 {
   throw new UnsupportedOperationException("Can only remove stateful beans " + this );
 }
}
origin: org.jboss.jbossas/weld-int-ejb

public SessionObjectReference resolveEjb(EjbDescriptor<?> ejbDescriptor)
{
 try
 {
   return new JBossSessionObjectReference(ejbDescriptor, deploymentUnitMap.get(ejbDescriptor), context);
 }
 catch (NamingException e)
 {
   throw new RuntimeException("Error retreiving EJB from JNDI " + ejbDescriptor, e);
 }
}
org.jboss.weld.integration.ejbJBossSessionObjectReference

Most used methods

  • <init>
  • getEndpoint

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Table (org.hibernate.mapping)
    A relational table
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top Sublime Text plugins
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