tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Blevins <david.blev...@gmail.com>
Subject Re: Weblogic/EJB help required
Date Wed, 22 Jun 2011 06:46:52 GMT
Hi Awais,

OpenEJB is an app server like WebLogic.  If you wanted to try to run your EJBs in OpenEJB,
we could certainly provide assistance.

We have a number of examples geared towards learning both EJB and OpenEJB:

  http://openejb.apache.org/examples.html

-David

On Jun 21, 2011, at 11:11 PM, Awais Hassan wrote:

> Hi,
> I have a sample EJB deployed on weblogic 10.3 server. My Bean class contains
> following code.
> ========================================================================
> 
> @Stateless (mappedName = "DemoEJB")
> @TransactionManagement(TransactionManagementType.BEAN)
> 
> public class DemoBean implements SessionBean {
> 
>    static final boolean verbose = true;
>    private transient SessionContext ctx;
>    private transient Properties     props;
> 
> 
>    @SuppressWarnings("deprecation")
>    @Override
>    public void setSessionContext(SessionContext ctx) throws EJBException,
>            RemoteException {
>        // TODO Auto-generated method stub
>        if (verbose)
>              System.out.println("setSessionContext called");
>            this.ctx = ctx;
>            props    = ctx.getEnvironment();
> 
>    }
>    public String demoSelect()
>    throws RemoteException
>  {
> 
>    return("hello world");
>  }
> 
> }
> ===========================================================================
> 
> I have created a jar file for the above class using eclipse and deployed it
> on weblogic. I can see the EJB in the <Deployment> on weblogic but it doesnt
> appear in <EJB> on JNDI tree view. Therefore i cannot access it from my
> client code (also written in Eclipse IDE).
> 
> I will appreciate any guidance in this regard.
> 
> Thanks
> Regards,
> Awais Hassan
> CRM Consultant
> Global Business Services (GBS)
> IBM Pakistan.
> Mob:    +92 300 5 15 23 78


Mime
View raw message