Hello Nicholas,

Still get the same behavior with the following:


  | <%@ page import     ="javax.ejb.*" %>
  | <%@ page import     ="javax.naming.*" %>
  | <%@ page import     ="java.util.*" %>
  | <%@ page import     ="java.rmi.*" %>
  | <%@ page import     ="com.mycompany.*" %>
  | 
  | 
  | 
  | <%
  | 
  | try{
  | Properties p = new Properties();
  | 
p.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
  | p.put(Context.PROVIDER_URL,"127.0.0.1:1099,127.0.0.1:1199");
  | p.put(Context.SECURITY_PRINCIPAL,"sa");
  | p.put(Context.SECURITY_CREDENTIALS,"");
  | Context context = new InitialContext(p);
  | 
  | 
  | EJBTwoHome home;
  | EJBTwo ejbtwo;
  | 
  | 
  | 
  | if(session.isNew()){
  | System.out.println("new");
  | home = (EJBTwoHome) context.lookup("EJBTwoHome_R");
  | ejbtwo = home.create();
  | session.setAttribute("home", home);
  | session.setAttribute("ejbtwo", ejbtwo);
  | }
  | else{
  | System.out.println("not new");
  | home=(EJBTwoHome)session.getAttribute("home");
  | ejbtwo=(EJBTwo)session.getAttribute("ejbtwo");
  | }
  | 
  | ejbtwo.print();
  | }
  | catch(CreateException e){
  | e.printStackTrace();
  | }
  | 
  | catch(RemoteException e){
  | e.printStackTrace();
  | }
  | 
  | %>
  | 
  | 

Any help?

Thanks in advance,

Julien.

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

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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to