hello,

*********** 

I have one stateless session bean which invokes an entity bean locally. 

In my case session bean is invoked remotely and is working fine...but the 
problem comes when i invoke the entity bean.it is creating the home object of 
entity bean.But when i create the localinterface object ie home.create(),its 
returning null...why is it so?? 

here is my code snippet from session bean(stateless) 

Context context = new InitialContext(); 
Object o = context.lookup("java:comp/env/ejb/LoginEJB"); 
home = (LoginEJBLocalHome)PortableRemoteObject.narrow(o, 
LoginEJBLocalHome.class);//returns home object 
LoginEJBLocal localhome = home.create();///problem occurs here.localhome is 
null. 
.......... 
,............ 

************ 


this was my only problem while deploying the same application in jboss.... 

i want to know ,to solve this problem , is it mandatory to use xdoclet? 

why i want to know is,if i use xdoclet,i have to change my ejb coding part 
....(it is a big application) 

but the same application working fine in WEBSPHERE.... 

m now in full of confusion.... i guess ur suggestion wil give me better 
solution to solve this problem.. 
PLEASE HELP ME..... 


thanks, 
kalai 



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3941172#3941172

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3941172


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to