hello stefan,
sorry for the delay.
thanx for all ur comments.
i am working on a project where we are deploying both in same container but i tried to
deploy on different ones, ( even though its not really needed for)
here is the peace of code that access entity..
Properties prop = new Properties();
prop.put( "java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory"
);
prop.put( "java.naming.provider.url","ipAddress:port" );
prop.put( "java.naming.factory.url.pkgs","org.jboss.naming:org.jnp.interfaces" );
try {
Context jndiContext = new InitialContext( prop );
Object ref = jndiContext.lookup("TestEJBBean");
testHome = (TestEJBHome)
PortableRemoteObject.narrow(ref, TestEJBHome.class);
}catch(Exception ex){
ex.printStackTrace();
}
with the above code i have to get home interface of the entity,
if so, now i should be able to call any finders/ create / remove..
but i am getting the exception thrown by the container in which i have deployed my
session bean.
karthik
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842017#3842017
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842017
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user