Re: [JBoss-user] local session beans

2003-09-19 Thread Stephane Nicoll
James, > So if the test works fine remotely then it is guaranteed, basically, > to work the same way locally? Indeed. You are testing business logic, not the way your are accessing that logic (JBoss should take care that the result is the same, not you ;-) As a reminder, while Uncatched excep

RE: [JBoss-user] local session beans

2003-09-18 Thread JD Brennan
7; Subject: RE: [JBoss-user] local session beans James, you and I have the same problem let me know if u get to a solution, I'll do the same from my side.. -Original Message- From: James Black [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:22 PM To: [EMAIL PRO

RE: [JBoss-user] local session beans

2003-09-18 Thread Butt, Dudley
James, you and I have the same problem let me know if u get to a solution, I'll do the same from my side.. -Original Message- From: James Black [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 3:22 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] local session

RE: [JBoss-user] local session beans

2003-09-18 Thread Butt, Dudley
Stephane, Thats exactly what I was going to do next, thanx for the confirmation! -Original Message- From: Stephane Nicoll [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 4:42 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] local session beans the local interface is just

Re: [JBoss-user] local session beans

2003-09-18 Thread James Black
Stephane Nicoll wrote: the local interface is just an optimization, nothing more. If you want to test the business of your beans, just made them remote and access them remotely. The only difference will be performence and a RemoteException instead of an uncatched exception (runtimexception) So if

RE: [JBoss-user] local session beans

2003-09-18 Thread Stephane Nicoll
-Original Message- From: James Black [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2003 2:22 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] local session beans Stephane Nicoll wrote: >If you are trying to access your bean from a test running outside JBoss it's >normal. L

Re: [JBoss-user] local session beans

2003-09-18 Thread Nicholas
You have a couple of options, but they basically revolve around the same principal: You need a bridge that can be invoked remotely, but that runs in the JBoss VM and can therefore invoke the local beans. Check out Cactus, which does this via servlets. You might also consider using an MBean which

Re: [JBoss-user] local session beans

2003-09-18 Thread James Black
Stephane Nicoll wrote: If you are trying to access your bean from a test running outside JBoss it's normal. Local SB can be accessed inside JBoss only. So how can you unit test the local SBs if they have to run inside JBoss? I am guessing that is why my unit tests fail when I try getting the L

RE: [JBoss-user] local session beans

2003-09-18 Thread Stephane Nicoll
bject: [JBoss-user] local session beans Hi, I seem to be having a problem trying to reference my local session beans from a small test client I wrote, any ideas? Thanx NOTICE: This message contains privileged and confidential information intended only for the person or entity to which

Re: [JBoss-user] local session beans

2003-09-18 Thread Nicholas
Is the test client in a seperate VM ? If so, that is the problem. Local beans are only accessible in the same VM. //Nicholas --- "Butt, Dudley" <[EMAIL PROTECTED]> wrote: > Hi, > > I seem to be having a problem trying to reference my > local session beans from a small test client I > wrote, any

[JBoss-user] local session beans

2003-09-18 Thread Butt, Dudley
Hi, I seem to be having a problem trying to reference my local session beans from a small test client I wrote, any ideas? Thanx NOTICE: This message contains privileged and confidential information intended only for the person or entity to which it is addressed. Any review, retransmission,