[JBoss-user] [Clustering/JBoss] - Re: Beginner needs help with clusters
Hello, can you post your jsp please? I have not been able to make my cluster work with jsp. J. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3870811#3870811 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3870811 --- 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
[JBoss-user] [Clustering/JBoss] - Re: Beginner needs help with clusters
It's ok. I use Jsp to access EJB. First time I cancel this line code in Jsp: p.put(Context.PROVIDER_URL,"***"); At that time ,the client always find JNDI in local machine. Later,I added p.put(Context.PROVIDER_URL,"localhost:1100");//1100 is my HA-JNDI port,then it's ok. But I feel in cluster, it's not need to set PROVIDER_URL. I don't know why. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3870697#3870697 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3870697 --- 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
[JBoss-user] [Clustering/JBoss] - Re: Beginner needs help with clusters
Hello, I just wrote a standalone ejb client. Tell me what fails and I'll try to help you. Julien. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3870521#3870521 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3870521 --- 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
[JBoss-user] [Clustering/JBoss] - Re: Beginner needs help with clusters
hello balteo, I am trying to config EJB cluster,but also fail. can you send your test code total to me. thanks very much. my email:[EMAIL PROTECTED] View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3870119#3870119 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3870119 --- 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
[JBoss-user] [Clustering/JBoss] - Re: Beginner needs help with clusters
hello julien?I am trying to config EJB cluster,but also fail. can you send your test code total to me. thanks very much. my email:[EMAIL PROTECTED] View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3870118#3870118 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3870118 --- 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
[JBoss-user] [Clustering/JBoss] - Re: Beginner needs help with clusters
Hello Again, I have tried to call the ejb through a standalone client and the servers are performing the load balancing properly. I am still wondering why it did not work with my jsp. If anyone has got a clue please post. Thanks you very much to Nicholas for trying to help! Julien. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869888#3869888 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869888 --- 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
[JBoss-user] [Clustering/JBoss] - Re: Beginner needs help with clusters
Hello Nicholas, I have added the line as you suggested and it is still displaying the same behavior... Julien. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869885#3869885 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869885 --- 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
[JBoss-user] [Clustering/JBoss] - Re: Beginner needs help with clusters
Julien; Add the following line to the jboss.xml descriptor for your EJB: Clustered Stateless SessionBean //Nicholas View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869882#3869882 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869882 --- 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
[JBoss-user] [Clustering/JBoss] - Re: Beginner needs help with clusters
Julien; Your jboss.xml should have an entry that looks something like this: Clustered Stateless SessionBean The Clustered Stateless SessionBean is one of the container configurations in the conf/standardjboss.xml. Also, are you sure you are running the all server configuration ? //Nicholas View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869836#3869836 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869836 --- 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
[JBoss-user] [Clustering/JBoss] - Re: Beginner needs help with clusters
Thanks for your reply Nicholas, in the ejb jar: | | | | | | EJBTwo | EJBTwoHome_L | EJBTwoHome_R | true | | | | | jboss service | | | | | | | | | | | | | | | | | | jboss.system:service=MainDeployer | jboss.system:service=ServiceDeployer | jboss.j2ee:service=EARDeployer | jboss.ejb:service=EJBDeployer | jboss.jca:service=RARDeployer | jboss.jca:service=ConnectionFactoryDeployer | jboss.web:service=WebServer | jboss:service=Mail | jboss.mq:service=DestinationManager | jboss:service=Naming | jboss:service=TransactionManager | jboss:service=ClientUserTransaction | jboss:service=CorbaORB | | | | | | | | | | | | | | JBoss System Threads | System Threads | | 6 | | 10 | | 1000 | | run | | | | | | | | | | resource:log4j.xml | | true | | 60 | | | | | | | java.rmi.server.RMIClassLoaderSpi | org.jboss.system.JBossRMIClassLoader | | | | | | | | | | | ${jboss.server.name} | | ${jboss.server.base.dir}/chap10ex1-bindings.xml | | | org.jboss.services.binding.XMLServicesStoreFactory | | | | | | | | | | | | 8083 | | true | ${jboss.bind.address} | ${jboss.bind.address} | | | | | | | | | false | | 1099 | | ${jboss.bind.address} | | 1098 | | ${jboss.bind.address} | | jboss.system:service=ThreadPool | | | | | | | | | | | jboss.security:service=XMLLoginConfig | | | login-config.xml | | | | | org.jboss.security.plugins.JaasSecurityManager | anonymous | | 1800 | | 60 | | | | | | | | | | | | | 300 | | true | jboss:service=XidFactory | | | | | | jboss:service=invoker,type=jrmp | jboss:service=ClientUserTransaction | UserTransactionSessionFactory | org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory | | | org.jboss.proxy.ClientMethodInterceptor | org.jboss.invocation.InvokerInterceptor | | | jboss:service=invoker,type=jrmp | | | | | jboss:service=invoker,type=jrmp | jboss:service=ClientUserTransaction | | org.jboss.tm.usertx.interfaces.UserTransactionSession | | | org.jboss.proxy.ClientMethodInterceptor | org.jboss.invocation.InvokerInterceptor | | | jboss:service=invoker,type=jrmp | | | | | | | | | | | | ${jboss.bind.address} | | jboss:service=TransactionManager | | | | | jboss:service=TransactionManager | | | | 1 | 300 | 300 | 6 | ${jboss.bind.address} | 4445 | ${jboss.bind.address} | 0 | false | | jboss:service=TransactionManager | | | | | | | | | | | | | | | | | | | | | | | | | jboss.system:service=MainDeployer | | | org.jboss.deployment.DeploymentSorter | | | | org.jboss.deployment.scanner.DeploymentFilter | | 5000 | | | | True | | | | | | cluster service | | | | | | | | | | | | | | | | | | | | ${jboss.partition.name:DefaultPartition} | | | ${jboss.bind.address} | | | False | | | 3 | | | | | | | | | | | |
[JBoss-user] [Clustering/JBoss] - Re: Beginner needs help with clusters
Julien; Can you post your EJB descriptors ? //Nicholas View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869791#3869791 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869791 --- 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
[JBoss-user] [Clustering/JBoss] - Re: Beginner needs help with clusters
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
[JBoss-user] [Clustering/JBoss] - Re: Beginner needs help with clusters
Balteo; I assume you are using round robin. Your JSP always retrieves a new Home and creates a new remote. Doing this will always give you the same member of the cluster. Try caching the emote in your session and you should see the EJB be invoked on alternating members of the cluster. //Nicholas View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869738#3869738 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869738 --- 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
[JBoss-user] [Clustering/JBoss] - Re: Beginner needs help with clusters
Yes. But then my jsp is not available on the given port ie "http://localhost:8180/webTwo/"; What is the simplest way to test load balancing of ejb? Julien. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869651#3869651 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869651 --- 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
[JBoss-user] [Clustering/JBoss] - Re: Beginner needs help with clusters
Have you tried to shutdown the primary to see if it failsover? -Ben View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869636#3869636 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869636 --- 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