[EJB 3.0] - Re: Newbie: how to interface EJB code with external librarie
by Nopik
First of all, thanks for the reply, it has been insightful, really.
Unfortunately it do not answer my main concern - how to interface with external libraries. In meantime I am progressing with reading the mentioned book, and I am after chapter describing JMS basics. I thought, that it provides solution to my problem.. I was thinking about something like this:
Right now I do link with some external jar and create one of its objects, lets call it Server. This object does internally open some sockets, run threads and so on, all hidden from me. Then, I register listener on its events and eventually start receive events by my listeners. In meantime I call some methods there to invoke some operations. While I call like up to 100 methods per second, I need to receive like 1000+ events per second, all from external thread.
Now, how should I approach this specific problem (being abstract from jsf etc. for a moment)?
I thought I will use JMS. Actually, it do give me all required functionality. I just create two message channels and create standalone application outside of JBoss to interface with my library. The events from the lib will be converted to JMS message, so would be my calls (well, ok I would end up reinventing RMI, nevermind, in theory I would be able to call RMI one side and get JMS in the other direction). But, when I made some quick tests (based on exercises from the book), the amount of overhead is overwhelming (well, 2 separate java vm processes communicating via tcp cannot be so fast): I was able to process like 40 messages per second on my machine. So, about 20-30 times slower than I need. Not to mention, that current, 'native', solution does not use more than 10% cpu... So, is there any better way of solving my problem?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169742#4169742
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169742
17 years, 11 months
[JBoss Messaging] - Jboss JMS error - help needed
by ravichittari
I am getting the following error in my server logs.
Does this mean (a) My defaultDS connection that points to hsqldb is max-ed out on connection pool? Hsqldb is used for jms messages.
OR it is jms-ds.xml that manages jmsXA ds?
ERROR [org.jboss.resource.adapter.jms.JmsSessionFactoryImpl] could not create session
javax.resource.ResourceException: No ManagedConnections available within configured blocking timeout ( 30000 [ms] )
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:301)
at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:500)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:341)
at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:315)
at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:396)
at org.
Thanks for your help..
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169738#4169738
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169738
17 years, 11 months
[Javassist user questions] - Spring MultiActionController Bind Method Problem
by vrep
Hi,
We are develping our application using spring framework. And we use jboss for deployment & for development tomcat server is used. We are having a problem in spring's MultiActionController.bind(request, commnad) method. Which works fine in tomcat.
Let me explain the scenario clearly. In jsp page, i have a hidden varaible like this
<input type=hidden name='lessonEntryIds' id=lessonEntryIds />
which has been used inside a html table. In the form, i have decalred a string array like this private String[] lessonEntryIds.
When the value of the form field 'lessonEntryIds' length is 1 and value is null, the spring bind method gives me empty string array without any value (length as zero). But the request object contains one null element inside the array.
When we tried in tomcat server, it works fine. It gives a array with one element having value as null.
Anything to do with spring or jboss, pls help me out in solving this problem.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169726#4169726
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169726
17 years, 11 months
Automatically rejected mail
by Mail Delivery Subsystem
Your message was automatically rejected by Dovecot Mail Delivery Agent.
The following reason was given:
Quota exceeded
17 years, 11 months