Re: [JBoss-user] jndi naming question
Hello, the mapping between ejb/DefaultACLProxy and ejb/ACLProxy is not the problem I think. Have you specify the ejb-ref in the ejb/UserMaster (jboss.xml file)? the ejb/UserMaster have to look like: session ejb-nameejb/UserMaster/ejb-name jndi-nameejb/UserMaster/jndi-name ejb-ref ejb-ref-nameejb/ACLProxy/ejb-ref-name jndi-nameejb/ACLProxy/jndi-name /ejb-ref /session I hope that will work. Björn Eric J Kaplan schrieb: All I have the following situation. In my ejb-jar.xml I have a session bean that has an ejb-ref to another session bean as follows: session display-nameUserMasterEJB/display-name ... ejb-ref ejb-ref-nameejb/ACLProxy/ejb-ref-name ejb-ref-typeSession/ejb-ref-type homecom.armanta.ejb.proxy.ACLProxyHome/home remotecom.armanta.ejb.proxy.ACLProxy/remote /ejb-ref ... I've then declared another session bean as follows: session display-nameDefaultACLProxyEJB/display-name ejb-nameejb/DefaultACLProxy/ejb-name homecom.armanta.ejb.proxy.ACLProxyHome/home remotecom.armanta.ejb.proxy.ACLProxy/remote ejb-classcom.armanta.ejb.proxy.DefaultACLProxyBean/ejb-class ... Now, when deploying, I want to map the name ejb/ACLProxy to the ejb/DefaultACLProxy bean. I would think that in jboss.xml I could have: enterprise-beans session ejb-nameejb/DefaultACLProxy/ejb-name jndi-nameejb/ACLProxy/jndi-name /session /enterprise-beans which says that the ejb named ejb/DefaultACLProxy should have as its jndi-name ejb/ACLProxy, which means at runtime by UserMasterEJB will bind to the right bean. But my understanding on this could be wrong, this stuff, while flexible, can be confusing. Right now, when I deploy the ear, I get: 17:45:11,109 WARN [ServiceController] Problem starting service jboss.j2ee:jndiN ame=ejb/UserMaster,service=EJB org.jboss.deployment.DeploymentException: ejb-ref ejb/ACLProxy, expected either ejb-link in ejb-jar.xml or jndi-name in jboss.xml Can someone please help set me straight? Regards Eric J. Kaplan Armanta, Inc. 350 Mt. Kemble Ave. Morristown, NJ 07960 --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Loadbalancer
Hello, in the JBoss cvs repository (or you can download the source of JBoss) is a loadbalancer included, if you compile the JBoss source you will find the sar file under varia\output\lib. You have to unpack this sar file to make your own entries in the jboss-service.xml (I also unpacked the war file which is included in the sar file, but there I havn't changed anything). If you get it to work correctly let me know. Bye Björn PS: To mod_jk2 see my mail Strange load balancing behavior with mod_jk2 PPS: Does your mod_jk work, because I need a loadbalancer to get the SPECjAppServer Benchmark to work. Felipe Oliveira schrieb: hi, which jboss loadbalancer are you talking about? i am currently using mod_jk and i am not really happy about it. i didn't know jboss had its own. any ideas where i can get more info about it? thanks, felipe Björn Weis wrote: Hi, I try to use the JBoss loadbalancer, but it doesn't work. When I first request the site, I get a cookie JBoss_LB_ID Value=-2105261236 Path=/. Then I logged in the site (it's a Servlet), I get a second cookie JSESSIONID Value=96BC55116A415816CEDA33A3941A2B8C Path=/SPECjAppServer. Now I browse through the site, I get a third cookie JSESSIONID Value=96BC55116A415816CEDA33A3941A2B8C Path=/. Ok, I can browse through the site and all seems to work, but if I log off and log in again without deleting the cookies. First I get a new JSESSIONID Value=ABC801D26C624EC58CC20B2B318ADA4E Path=/SPECjAppServer. When I now want to browse I get a new cookie JSESSIONID Value=612EDB9531822ED53157F4CA04604258 Path=/SPECjAppServer and a message that the user isn't logged in. That is clear because the JSESSIONID with Path=/SPECjAppServer were overwritten, but why and which component does the overwrite? The config files of the loadbalancer are the default one I only change the hosts. I tried that with the new loadbalacer from the jboss-head-snapshot (from today) and with the jboss-3.2-snapshot (from yesterday). The server is a JBoss 3.2.3 on a Suse 8.2. In the jboss-head-snapshot loadbalncer I replaced org.jboss.util.xml.XmlHelper with org.jboss.metadata.MetaData, so that it worked in the 3.2.3 server. I hope you can help me with that problem. Thanx Björn --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Loadbalancer
Hi, I try to use the JBoss loadbalancer, but it doesn't work. When I first request the site, I get a cookie JBoss_LB_ID Value=-2105261236 Path=/. Then I logged in the site (it's a Servlet), I get a second cookie JSESSIONID Value=96BC55116A415816CEDA33A3941A2B8C Path=/SPECjAppServer. Now I browse through the site, I get a third cookie JSESSIONID Value=96BC55116A415816CEDA33A3941A2B8C Path=/. Ok, I can browse through the site and all seems to work, but if I log off and log in again without deleting the cookies. First I get a new JSESSIONID Value=ABC801D26C624EC58CC20B2B318ADA4E Path=/SPECjAppServer. When I now want to browse I get a new cookie JSESSIONID Value=612EDB9531822ED53157F4CA04604258 Path=/SPECjAppServer and a message that the user isn't logged in. That is clear because the JSESSIONID with Path=/SPECjAppServer were overwritten, but why and which component does the overwrite? The config files of the loadbalancer are the default one I only change the hosts. I tried that with the new loadbalacer from the jboss-head-snapshot (from today) and with the jboss-3.2-snapshot (from yesterday). The server is a JBoss 3.2.3 on a Suse 8.2. In the jboss-head-snapshot loadbalncer I replaced org.jboss.util.xml.XmlHelper with org.jboss.metadata.MetaData, so that it worked in the 3.2.3 server. I hope you can help me with that problem. Thanx Björn --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Strange load balancing behavior with mod_jk2
Hallo, I run Apache2 with mod_jk2 and 3 JBoss 3.2.3 with the included Tomcat on Suse 8.2. When requesting to the jsp-pages in the JBoss 3.2.3 the load balancing behavior is not round robin. It seems to me that every time the benchmark send requests to the Apache2 the mod_jk2 makes a new slot and in this slot the requests are distributed round robin (when sometimes a slot is used twice). This is only with sticky-session pages. With other pages load balancing works fine. When I try that manual I can verify it (I use diffrent browsers on diffrent machines, so that I get allways new cockies), so it does not lie on the benchmark application. My config files: jboss-service.xml from the tomcat: ... Engine jvmRoute=${jboss.bind.address}:8009 name=MainEngine defaultHost=localhost ... !-- A AJP 1.3 Connector on port 8009 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector address=${jboss.bind.address} port=8009 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=10 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ ... attribute name=CatalinaHome${jboss.server.home.dir}/tomcat/attribute attribute name=CatalinaBase${jboss.server.home.dir}/tomcat/attribute jk2.properties in the conf path I set in the jboss-service.xml (${jboss.server.home.dir}/tomcat/conf): # The jk2.properties file should be in the directory ?$TOMCAT_HOME/conf?. This file contains all of the JK2 configuration information. Here we will set up the shared memory directive. This directive is necessary for Apache and Tomcat to communicate. A good place to have the file is the ?$APACHE_HOME/logs? directory. The file can be named anything but the convention is ?jk2.shm?. # TODO: What to do in case Tomcat and Apache reside on different machines. #Shared memory directive shm.file=pathToApache/logs/jk2.shm workers2.properties in the apache conf directory: [logger] level=DEBUG [config:] file=${serverRoot}/conf/workers2.properties debug=0 debugEnv=0 [uriMap:] info=Maps the requests. Options: debug debug=0 # Alternate file logger #[logger.file:0] #level=DEBUG #file=${serverRoot}/logs/jk2.log [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=${serverRoot}/logs/jk2.shm size=1024 debug=0 disabled=0 [workerEnv:] info=Global server options timing=1 debug=0 # Default Native Logger (apache2 or win32 ) # can be overriden to a file logger, useful # when tracing win32 related issues #logger=logger.file:0 [channel.socket:host1:8009] info=Ajp13 host1 debug=0 lb_factor=1 group=lb tomcatId=host1:8009 disabled=0 [channel.socket:host2:8009] info=Ajp13 host2 debug=0 lb_factor=1 group=lb tomcatId=host2:8009 disabled=0 [channel.socket:host3:8009] info=Ajp13 host3 debug=0 lb_factor=1 group=lb tomcatId=host3:8009 disabled=0 [status:] info=Status worker, displays runtime informations [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: [uri:/MyApp/*] info=load balancer uri group=lb debug=0 httpd.conf in the apache conf directory: ... # # Load mod_jk # LoadModule jk2_module modules/mod_jk2.so Thats my configuration. The connector seems to work but the load balancer will not use round robin over the servers. Any ideas? Thanx Björn Weis --- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user