Hi,
At 18:12 6.6.2001 +0200, you wrote:
>After starting jbosss, I use the 8082 html page to invoke the method that
>connects to the socket (I asume that this has another benefit, as it is not
>anymore an ejb and it does comply the spec??)
yes.
>
>When a receive data from the socket I want to call a session bean, but when
>I do the:
> Object ref = jndiContext.lookup("jms/SendAlarm");
>a JMRuntimeException is thrown.
>
>Is there a way to indicate to a mbean that it will use a bean??
There's no need for that. The MBean is just another ordinary Java class
with management interface. You can code it as you would any EJB client.
Try cathing the NamingException from lookup, it should tell you what's
going wrong. For an example of an MBean doing jndi lookup and jms messaging
you can check the code in:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/admin/src/org/jboss/adm
in/mbean/SystemMonitor.java?rev=1.3&content-type=text/vnd.viewcvs-markup
-- Juha
>
>thanks,
>
>
>> -----Mensaje original-----
>> De: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED]]En nombre de Juha
>> Lindfors
>> Enviado el: martes 5 de junio de 2001 21:28
>> Para: [EMAIL PROTECTED]
>> Asunto: Re: [JBoss-user] Everlasting sessionbean
>>
>>
>> At 20:10 5.6.2001 +0200, you wrote:
>> >1. now I am using a client app just to invoke the session bean's only
>> >function, is there a way in jboss to make a session bean instantiate and
>> >invoke a method without a client (just for easier administration).
>> >
>> >2. is there a problem if the session bean's function never
>> returns?? It is
>> >reading from the socket forever.
>> >
>> >3. Should it be statefull, statelesss... any other proposition?
>>
>> Yes, don't use either. Instead create an MBean for the task. Then you can
>> get rid of the client app as well.
>>
>> -- Juha
>>
>>
>> _______________________________________________
>> JBoss-user mailing list
>> [EMAIL PROTECTED]
>> http://lists.sourceforge.net/lists/listinfo/jboss-user
>
>
>_______________________________________________
>JBoss-user mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/jboss-user
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user