[JBoss-user] [EJB/JBoss] - Re: Calling a remote ejb interface in app1.ear from a servle
you did not specify if you were calling the local or the remote interface of the EJB. That is an important distinction. If you are calling the local interface, you pretty much have to turn off isolation or stick the everything in the same ear (same diff). If you are calling the remote interface, then this can be made to work (we are doing this). the trick is that jboss ships with default settings that optimize local calls to remote interfaces (this actually violates the j2ee correctness). while this makes things slightly faster, this makes using isolation impossible in the scenario you describe. In the deploy/ear-deployer.xml, you must have these settings: attribute name=Isolatedtrue/attribute | attribute name=CallByValuetrue/attribute Hope that helps. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3944546#3944546 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3944546 --- 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=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Calling a remote ejb interface in app1.ear from a servle
Oops, guess i missed the fact that you do say it is the remote interface in the subject. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3944553#3944553 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3944553 --- 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=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Calling a remote ejb interface in app1.ear from a servle
jahlborn, So where did you put your remote EJB interfaces? As I stated earlier, I think they need to be made external and accessable to both the ears. This would mean say deploying the interfaces in a jar in the deploy directory or puting the interfaces jar in the lib directory. Is this correct? cgriffith View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3944582#3944582 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3944582 --- 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=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Calling a remote ejb interface in app1.ear from a servle
well, to reference your previous post, isolation is not a form of security. all it does is allow different versions of the same class to exist in different ears. it does nothing to control who can call it. to answer your recent question: ear2 should treat ear1 the same as if ear1 was deployed on a separate app server, i.e. ear2 should contain ear1's interfaces. ear1 should be deployed as normal. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3944624#3944624 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3944624 --- 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=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Calling a remote ejb interface in app1.ear from a servle
I appreciate you taking the time to help, but it I do not think you understand what I was asking. I never said isolation is a form of security. The orginal problem is that if ear2 contains ear1's interfaces, and if ear1 is isolated, ear2's call to ejb in ear1 produces an NoClassDefFoundException. This is an obvious exception because ear2 can not load the interface isolated in ear1. So the solution might seem to be, include the interfaces in ear2. However, this produces a ClassCastException. Obviously that is because ear1 loaded the interface with its isolated classloader, and ear2 loaded the interface with its isolated classloader which are not the same. So how does one get around this. My answer is to ensure the interfaces are loaded by a shared classloader(i.e. deploy the interfaces jar or put in the server's lib dir.) I just wanted you to confirm this. cgriffith View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3944672#3944672 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3944672 --- 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=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Calling a remote ejb interface in app1.ear from a servle
The security comment was in reference to your comment of May 12. anonymous wrote : After all, if my ejbs are secured, who cares what other ears can attempt to call them. But that's neither here nor there. As for the ClassCastException, i was referring to that problem with my comments about the ear-deployer.xml settings. We are doing exactly what i described (the remote interfaces exist in both ears on the same box), and it is working just fine. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3944675#3944675 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3944675 --- 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=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Calling a remote ejb interface in app1.ear from a servle
Thank you much for setting me straight. I will look into how you solve this issue. cgriffith View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3944676#3944676 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3944676 --- 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=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Calling a remote ejb interface in app1.ear from a servle
I think in know the answer so I will post this in case others try to find solution. I'll preface this with the fact that I still have not really found a solution posted anywhere. So this is just a conclusion that I am making based on bits and peices I have put together. If ear1 (at least) is isolated and ear2 wants to call an ejb inside ear1, the interfaces of the ejb that are in ear1 must be made available to both ear1 and ear2 classloaders. This means that either... | 1 ear1 does not isolate itself | | 2 the interfaces of ejbs in ear1 are put into a jar and placed say in deploy directory to be made accessible to all deployments. | | | I was really looking for something that would allow both ears to remain isolated without making interfaces available to all ears. This is due to my shared environment. However, after spending some time thinking about it. I think option 1 is the way to go. After all, if my ejbs are secured, who cares what other ears can attempt to call them. | | later, cgriffith View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3943285#3943285 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3943285 --- 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=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Calling a remote ejb interface in app1.ear from a servle
Hey gang, This version of this thread is a better place to ask this. Please excuse the double post (also on thread http://www.jboss.com/index.html?module=bbop=viewtopict=81466) I have this exact problem too. I have two ear's that are isolated with by unique loader-repository elements in thier respective jboss-app.xmls. If a class of ear 1 want's to call a ejb bean of ear 2, I get NoClassDefFoundException. So I created a jar file with ear1's bean interfaces. Put the interfaces jar in ear2 root. Add an appropriate manifest entry. Now I get ClassCastExceptions. Is there a solution to this exact situation? thanks for your time, cgriffith View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3943265#3943265 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3943265 --- 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=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Calling a remote ejb interface in app1.ear from a servle
Does this mean that no one has two enterprise applications where the webapp of one of the ears is calling the other ears sessionbean?? As far as I can see Jboss doesn't support this when you use isolated classpaths for the ears (which btw should be used as default..). At least not in a standard j2ee way where you have all related jar-files inside the ears..?? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3939170#3939170 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3939170 --- 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=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Calling a remote ejb interface in app1.ear from a servle
Anyone that understands my question/problem and can give me a hint? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3938821#3938821 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938821 --- 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=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Calling a remote ejb interface in app1.ear from a servle
I am using Jboss 4.0.4 CR2 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3938654#3938654 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3938654 --- 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=lnkkid=120709bid=263057dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user