Where can I get a better ejb example and tutorial other than the pdf with
Jrun I want to learn Ejbs but the pdf documentation is very confusing.
Bert
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: "JRun-Talk" <[EMAIL PROTECTED]>
Sent: Monday, September 17, 2001 11:02 AM
Subject: jrun TopicDispatcherBean / Message Driven Bean
> hi!
>
> if I've wanted to execute multiple EJB beans' business
> methods in parallel as JMS consumer(s), what is the
> recommended way to do this in JRun?
>
> a) does rewriting jrun sample sample6b's TopicBean's method:
>
> public void onDispatching(final Message message) throws JMSException {
>
> messages.add(message);
>
> while (messages.size() > 100) {
> messages.remove(0);
> }
>
> InstanceManager.setDirty(true);
> }
>
> to look like instead:
>
> public void onDispatching(final Message message) throws JMSException {
>
> Method theMethod = SomeTargetClass.class.getMethod("someBusinessMethod",
new Class[] {foo.class});
> _callerId = ResourceManager.createAutoCaller(targetBeanRef,
> theMethod,
> new Object[] {foo_arg},
> 1 // interval;one-shot,
cancelled after 1st execution
> );
>
> // the message is never stored - discard immediately.
> InstanceManager.setDirty(true); // but do setDirty() anyway; maybe
for safety(?)
> }
>
> will do the job?? (or cause any *serious* problems?)
>
> ;; how can I control the parallelism of tasks executed under
> ;; the control of createAutoCaller() - if possible??
>
>
> b) does using properly the JMS's ServerSessionPool also work in case of
JRun?
>
>
http://java.sun.com/products/jms/javadoc-102a/javax/jms/ServerSessionPool.ht
ml
>
> (maybe like this?? :p):
>
http://www.weblogic.com/docs45/classdocs/weblogic.jms.ServerSessionPoolFacto
ry.html
>
> regards,
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists