Matt Sumner

Greenhorn
+ Follow
since Oct 16, 2002
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Matt Sumner

I have a stateful session bean and I want to make it remove it's remote reference so I can test my code that reestablishes the reference.
I have set the session timeout in the dep desc to 1, ( I'm assuming it's in mins ), but my remote refs are still alive after that period.
Am I doing this properly ?
Matt
20 years ago
Ok then.... what files do I need to take out of Deployed*.jar to put in my own jar I'm going to build for the client side.
If I look inside I can see *_Stub.class and *_Tie.class and ones beginning with _EJS.
Do I need all those ?
Matt
20 years ago
This is similar to the question for 4.*.
How do I produce the EJB client jar with only the relevant client stubs.
I have built my deployment jar using jetace and installed it using xmlconfig.
I now need to be able to run it from a client on a different machine... It works if I copy over Deployed*.jar from the deployedEJBs directory.
However, there must be a mechanism to only have to have the relevant stubs ?
Matt
20 years ago
If I can expect to have 200 users in an average web application on websphere 3.5... how many load balanced servers would I expect to need.
Are there any stats on this anywhere ?
Thanks in advance,
Matt
21 years ago
Does Websphere 3.5.2 support RMI-JRMP.
I get an 'not exported or is a JRMP stub' error when trying to passing my RMI object ref to an EJB in different JVMs.
Do I really have to use RMI-IIOP....?
Thanks
Matt
21 years ago
Does this group cover WebSphere Portal Enable?
Anyway, I'm trying to get the user credentials and principal from org.apache.jetspeed.portletcontainer.UserImpl's Subject instance returned by getSubject()...
However the sets are both of size 0.
Does anyone know why I can't get the password or if there is another way to get the logged in user's password.
Thanks
21 years ago
I have the developerWorks Toolbox subscription disks release 2 volume 5 and have installed websphere v3.5.0 off it.
I then tried to install the portal enable solution but it says it requires 3.5.4. I cannot find the fix pack to go up to 3.5.4 only 3.5.3.
Why would they release a sub level websphere and does anyone know how to upgrade to 3.5.4 ?
21 years ago
I can deploy my stateless session bean, but when websphere 3.5.3 starts it I get...
Has anyone seen this before.... I think my DD is ok.
11/5/02 3:24 PM : Command ManagerHome.start failed.
11/5/02 3:24 PM : Command "ManagerHome.start" failed.
11/5/02 3:24 PM : WARNING [vkdte201/WSSIT-Test]: ADMS0049W: Failed to start the bean "ManagerHome" com.ibm.websphere.csi.CSIException: failed to get home instance; nested exception is:
com.ibm.ejs.container.ContainerException: loading bean meta data failed; nested exception is:
java.lang.ArrayIndexOutOfBoundsException: 159
com.ibm.ejs.container.ContainerException: loading bean meta data failed; nested exception is:
java.lang.ArrayIndexOutOfBoundsException: 159
java.lang.ArrayIndexOutOfBoundsException: 159
at com.ibm.ejs.container.BeanMetaData.setHomeMethodAttrs(BeanMetaData.java(Compiled Code))
at com.ibm.ejs.container.BeanMetaData.<init>(BeanMetaData.java(Compiled Code))
at com.ibm.ejs.container.EJSContainer.loadBeanMetaData(EJSContainer.java:1080)
at com.ibm.ejs.container.EJSContainer.getHomeInstance(EJSContainer.java:1020)
at com.ibm.ejs.sm.active.ActiveEJBContainer.startBean(ActiveEJBContainer.java:552)
at com.ibm.ejs.sm.active.ActiveEnterpriseBean.startAction(ActiveEnterpriseBean.java:55)
at com.ibm.ejs.sm.active.ActiveObject.startObject(ActiveObject.java:682)
at com.ibm.ejs.sm.active.ActiveObject.start(ActiveObject.java:117)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.java(Compiled Code))
at com.ibm.ejs.sm.active.ActiveObject.invokeContainedObject(ActiveObject.java:487)
at com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.java(Compiled Code))
at com.ibm.ejs.sm.active.ActiveObject.invokeContainedObject(ActiveObject.java:487)
at com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.java(Compiled Code))
at com.ibm.ejs.sm.agent.AdminAgentImpl.invokeActiveObject(AdminAgentImpl.java:62)
at com.ibm.ejs.sm.agent._AdminAgentImpl_Tie._invoke(_AdminAgentImpl_Tie.java:80)
at com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(ExtendedServerDelegate.java:506)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:2261)
at com.ibm.CORBA.iiop.WorkerThread.run(WorkerThread.java:195)
at com.ibm.ejs.oa.pool.ThreadPool$PooledThread.run(ThreadPool.java:535)
----- Begin backtrace for detail
com.ibm.ejs.container.ContainerException: loading bean meta data failed; nested exception is:
java.lang.ArrayIndexOutOfBoundsException: 159
java.lang.ArrayIndexOutOfBoundsException: 159
at com.ibm.ejs.container.BeanMetaData.setHomeMethodAttrs(BeanMetaData.java(Compiled Code))
at com.ibm.ejs.container.BeanMetaData.<init>(BeanMetaData.java(Compiled Code))
at com.ibm.ejs.container.EJSContainer.loadBeanMetaData(EJSContainer.java:1080)
at com.ibm.ejs.container.EJSContainer.getHomeInstance(EJSContainer.java:1020)
at com.ibm.ejs.sm.active.ActiveEJBContainer.startBean(ActiveEJBContainer.java:552)
at com.ibm.ejs.sm.active.ActiveEnterpriseBean.startAction(ActiveEnterpriseBean.java:55)
at com.ibm.ejs.sm.active.ActiveObject.startObject(ActiveObject.java:682)
at com.ibm.ejs.sm.active.ActiveObject.start(ActiveObject.java:117)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.java(Compiled Code))
at com.ibm.ejs.sm.active.ActiveObject.invokeContainedObject(ActiveObject.java:487)
at com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.java(Compiled Code))
at com.ibm.ejs.sm.active.ActiveObject.invokeContainedObject(ActiveObject.java:487)
at com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.java(Compiled Code))
at com.ibm.ejs.sm.agent.AdminAgentImpl.invokeActiveObject(AdminAgentImpl.java:62)
at com.ibm.ejs.sm.agent._AdminAgentImpl_Tie._invoke(_AdminAgentImpl_Tie.java:80)
at com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(ExtendedServerDelegate.java:506)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:2261)
at com.ibm.CORBA.iiop.WorkerThread.run(WorkerThread.java:195)
at com.ibm.ejs.oa.pool.ThreadPool$PooledThread.run(ThreadPool.java:535)
----- Begin backtrace for detail
java.lang.ArrayIndexOutOfBoundsException: 159
at com.ibm.ejs.container.BeanMetaData.setHomeMethodAttrs(BeanMetaData.java(Compiled Code))
at com.ibm.ejs.container.BeanMetaData.<init>(BeanMetaData.java(Compiled Code))
at com.ibm.ejs.container.EJSContainer.loadBeanMetaData(EJSContainer.java:1080)
at com.ibm.ejs.container.EJSContainer.getHomeInstance(EJSContainer.java:1020)
at com.ibm.ejs.sm.active.ActiveEJBContainer.startBean(ActiveEJBContainer.java:552)
at com.ibm.ejs.sm.active.ActiveEnterpriseBean.startAction(ActiveEnterpriseBean.java:55)
at com.ibm.ejs.sm.active.ActiveObject.startObject(ActiveObject.java:682)
at com.ibm.ejs.sm.active.ActiveObject.start(ActiveObject.java:117)
at java.lang.reflect.Method.invoke(Native Method)
at com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.java(Compiled Code))
at com.ibm.ejs.sm.active.ActiveObject.invokeContainedObject(ActiveObject.java:487)
at com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.java(Compiled Code))
at com.ibm.ejs.sm.active.ActiveObject.invokeContainedObject(ActiveObject.java:487)
at com.ibm.ejs.sm.agent.AdminAgentImpl.activeObjectInvocation(AdminAgentImpl.java(Compiled Code))
at com.ibm.ejs.sm.agent.AdminAgentImpl.invokeActiveObject(AdminAgentImpl.java:62)
at com.ibm.ejs.sm.agent._AdminAgentImpl_Tie._invoke(_AdminAgentImpl_Tie.java:80)
at com.ibm.CORBA.iiop.ExtendedServerDelegate.dispatch(ExtendedServerDelegate.java:506)
at com.ibm.CORBA.iiop.ORB.process(ORB.java:2261)
at com.ibm.CORBA.iiop.WorkerThread.run(WorkerThread.java:195)
at com.ibm.ejs.oa.pool.ThreadPool$PooledThread.run(ThreadPool.java:535)
21 years ago
Thanks for the help so far.
I tried to find a bug fix and 3.5.1 but couldn't see it anywhere on the website.
Does any one know how to get it ?
Everything seems to be 4.0-centric !!
Ta
21 years ago
And anyway, a stateless session bean means a client cannot assume state between methods calls.
My bean doesn't each method call passes enough info down to supply it's own context...
My bean is really just a proxy.
21 years ago
Ok... a bank using my software insists that the only network traffic from their DMZ to the mainframe must be over EJBIIOP. Now we have our own prop xml protocol between nonEJB java and the mainframe... So I have wrapped my socket stuff into a stateless bean.
They have been using it fine on 3.5.1 with instance pooling working. I've tried to use it on my 3.5.0 and it unloads the instance with every method..
So I want to know what the difference between my WS and the banks is - apart from version !
21 years ago
Because I'm keeping an external resource open, a socket, that is created and removed with the bean.
Also, I thought that was the whole point of stateless session beans - performance.
I don't believe this is normal behaviour and I'm pretty sure 3.5.1 doesn't do it ?
And I can't believe no one else has experienced this ?
Come on you guys, who would prefer their stateless session beans to be instance pooled correctly, I know I do !!!
21 years ago
3.5.0 seems to be removing my stateless session bean after each method invocation.
Is this normal behaviour for 3.5.0 ?
Does, 4.0 have more control over this ?
Does anyone know how to make my instance hang around in the pool across method invocations ?
Ta!
21 years ago
From O'Reilly EJB book..
"stateless session beans are not subject to activation, so they can maintain open connections to resources for their entire lifecycle. If for eg an open network socket was needed, it could be opened in the ejbCreate() method when the stateless seesion is initially created. This resrc can theb be maintained in a normal instance var and kept open...... The ejbRemove() method should close any open rsrcs..."
There follows a caveat that some vendors may remove the bean after each invocation...
This is exactly what I'm doing. Now, JRun does what I expect but websphere does not.
Who knows how to increase the instance pool size in websphere.
21 years ago
Ok... I have a statless session bean as follows... I've removed the exception decs for clarity...
public class MattBean implements SessionBean {
public void ejbCreate(){ System.out.println( "CREATED MATT BEAN" ) ; }
public void ejbRemove(){ System.out.println( "REMOVING MATT BEAN" ) ;}
public void ejbActivate() { System.out.println( "MATT EJBACTIVATE" ) ; }
public void ejbPassivate() { System.out.println( "MATT EJBPASSIVATE" ) ; }
public String getMattyBoy() { return "***MATTYBOY IS COOL***" ;}
}
And a test program which creates the bean and calls the method getMattyBoy() 5 times in a simple for loop.
I would expect to see
CREATED MATT BEAN
***MATTYBOY IS COOL***
***MATTYBOY IS COOL***
***MATTYBOY IS COOL***
***MATTYBOY IS COOL***
***MATTYBOY IS COOL***
And may be the removed message at some point in the future...
However, I get
CREATED MATT BEAN
***MATTYBOY IS COOL***
REMOVING MATT BEAN
CREATED MATT BEAN
***MATTYBOY IS COOL***
REMOVING MATT BEAN
CREATED MATT BEAN
***MATTYBOY IS COOL***
REMOVING MATT BEAN
CREATED MATT BEAN
***MATTYBOY IS COOL***
REMOVING MATT BEAN
CREATED MATT BEAN
***MATTYBOY IS COOL***
REMOVING MATT BEAN
Now that can't be right can it ??? I would next exxpect the instance to be removed after every call. I have a socket connect in my ejbCreate and it's killing me !
21 years ago