Package org.jboss.as.test.integration.ejb.ejb2.reference.global

Examples of org.jboss.as.test.integration.ejb.ejb2.reference.global.Session21.access()


   {
      try {
         InitialContext jndiContext = new InitialContext();
         Session21Home sessionHome = (Session21Home) jndiContext.lookup("java:comp/env/injected");
         Session21 session = sessionHome.create();
         return session.access();
      } catch (Exception e)
      {
         throw new RuntimeException(e);
      }
   }
View Full Code Here


   {
      try {
         InitialContext jndiContext = new InitialContext();
         Session21Home home = (Session21Home)jndiContext.lookup("java:module/Session21!" + Session21Home.class.getName());
         Session21 session = (Session21)home.create();
         return session.access();
      } catch (Exception e)
      {
         throw new RuntimeException(e);
      }
   }
View Full Code Here

    public void testSession21() throws Exception {
        InitialContext jndiContext = new InitialContext();

        Session21Home home = (Session21Home) jndiContext.lookup("java:module/Session21!" + Session21Home.class.getName());
        Session21 session = home.create();
        String access = session.access();
        Assert.assertEquals("Session21", access);
        access = session.access30();
        Assert.assertEquals("Session30", access);
    }
View Full Code Here

    public void testSession30() throws Exception {
        InitialContext jndiContext = new InitialContext();

        Session30Home sessionHome = (Session30Home) jndiContext.lookup("java:module/Session30!" + Session30Home.class.getName());
        Session30 session = sessionHome.create();
        String access = session.access();
        Assert.assertEquals("Session30", access);
        access = session.access21();
        Assert.assertEquals("Session21", access);
    }
View Full Code Here

        Session30Home home = (Session30Home) jndiContext.lookup("java:module/Session30!" + Session30Home.class.getName());
        Assert.assertNotNull(home);
        Session30 sessionRemote = (Session30) home.create();
        Assert.assertNotNull(sessionRemote);
        access = sessionRemote.access();
        Assert.assertEquals("Session30", access);
    }

    @Test
    public void testStatefulRemove() throws Exception {
View Full Code Here

    public void testSessionHome30() throws Exception {
        InitialContext jndiContext = new InitialContext();

        Session30RemoteBusiness session = (Session30RemoteBusiness) jndiContext.lookup("java:module/Session30!" + Session30RemoteBusiness.class.getName());
        Assert.assertNotNull(session);
        String access = session.access();
        Assert.assertEquals("Session30", access);

        Session30Home home = (Session30Home) jndiContext.lookup("java:module/Session30!" + Session30Home.class.getName());
        Assert.assertNotNull(home);
        Session30 sessionRemote = (Session30) home.create();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.