I believe i misread the question, but in any case this is very bad practice. You should go for the mbean option
Francisco Andrades www.NextJ.com ----- Original Message ----- From: "Francisco Andrades" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 20, 2002 5:13 PM Subject: Re: [JBoss-user] Am I thinking about this correctly? > The EJB spec specifically forbids Threads execution from an EJB. > This metodology is highly unrecommended. > > Francisco Andrades > www.NextJ.com > > ----- Original Message ----- > From: "Duarte Nuno Loreto" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, June 20, 2002 4:31 PM > Subject: RE: [JBoss-user] Am I thinking about this correctly? > > > > Hello! > > > > I believe the MBean is a possibility. We opted for another option. We > > deployed a war with a servlet that starts a thread on the init() and > listens > > to a socket. when communication is received, we start another thread that > > calls the EJBs and replies to client through the same socket (synchronous > > call). > > > > This way we know it works. Through MBean we didn't try. Servlets are easy > to > > code. But you need to start JBoss with catalina/tomcat. > > > > Happy coding! > > > > Duarte Loreto > > > > > -----Original Message----- > > > From: Jim Williams [SMTP:[EMAIL PROTECTED]] > > > Sent: Quinta-feira, 20 de Junho de 2002 20:47 > > > To: [EMAIL PROTECTED] > > > Subject: [JBoss-user] Am I thinking about this correctly? > > > > > > Hello, > > > I am new to jboss so I am looking for a bit of advice. > > > > > > I have a problem and I think I know how to solve it > > > but I may be barking up the wrong tree or in the wrong > > > forest altogether. > > > > > > > > > What I need to do is to create a class that listens on > > > a port and triggers other objects when it receives > > > data. Not a big deal really i am just not used to > > > using Jboss and I am feeling unsure. (I have done > > > this before with just plain java classes) The data > > > coming in is our own format over tcp. We do not want > > > to run a vm on the "terminals" so jms is out. We do > > > not want to use http for the message. > > > > > > The way I think I deal with this with jboss is to > > > write a custom mBean service to deal with our > > > situation. Open a port listener and deal with the > > > data as it comes in. Am I think correctly here or am > > > I way off?? > > > > > > Thanks, > > > Jim Williams > > > Software Engineer, 4Access Communications > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Yahoo! - Official partner of 2002 FIFA World Cup > > > http://fifaworldcup.yahoo.com > > > > > > > > > ------------------------------------------------------- > > > Sponsored by: > > > ThinkGeek at http://www.ThinkGeek.com/ > > > _______________________________________________ > > > JBoss-user mailing list > > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > ------------------------------------------------------- > > Sponsored by: > > ThinkGeek at http://www.ThinkGeek.com/ > > _______________________________________________ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > ------------------------------------------------------- > Sponsored by: > ThinkGeek at http://www.ThinkGeek.com/ > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ------------------------------------------------------- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
