Win a copy of Spring Boot in Practice this week in the Spring forum!

Sunil Huilgol

Greenhorn
+ Follow
since Jan 22, 2006
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 Sunil Huilgol

in the onMessage(Message message) you can do a check like :
Please disregard my above post as it WAS a queue name issue.
However I did see a Communication issue in my log saying "Could not connect to localhost:1100". Possibly that was the reason the mdb did nor start up as the queue request had a comminication issue.
I am using jboss4.0.5.GA.
I have a mdb which is bound to a queue. This queue is already having some messages lying which i could see in the jboss web-console. The queue depth was set to 11. But somehow the mdb is not processing these messages. I have put a println statement in my onmessage and even that did not print on console.
I verified if the queue name i have mentioned in my code file is the same as of the one whose depth was set and that is ok.
This is very strange as i have never seen this happen. There is no error on jboss console on in my logs.I would appreciate if someone can help me here.
I have used query.getSingleResult() and this is throwing a NoResultException if the data is not present in the db. My doubt is that I also am running another project configured by an associate who does not get this exception. Below is an example of what he has managed(assume data is not there in table) :



My question how can the check for null be possible. Shouldn't it throw a NoResultException.

The App Server used is JBoss 4.0.5. Is it a Jboss configuration which i am not sure or something else.

Any help is appreciated.
Are you using CMP or BMP to update data. With CMP it is simple just call the setter method in the component interface to update the data.

First you will have to see if you get the data in your servlet. Then check if the setPassword method is called right. If all this ok then as Mark said oyu will have to see your deployment descriptor where the ejb-to-table mapping is done. In JBoss it is the jbosscmp-jdbc.xml file.

Let us know if all this is ok.
You can use this to remove the exception :



You can use above context to look up your EJB.
Hello ranchers,
I have given a relative path of a file in my code(a remote session bean).when i deploy my jar file and run the client somehow the working direcyory changes to JBOSS_HOME/bin and whatever path i had given in my code is not considered. I have the file i want to use in the jar.So how to get access to a the file(is is an XSD file) and why does the working directory change?

Thanks in advance
16 years ago
I am using database views with entity beans.I am not using CMR as i would have to create an entity bean for each table and then establish relationship between them.Actually i have no use for all those entity beans.
So i figured that by using views i would not require many entity beans.
But I am not quite sure if this is the right way to go about.

Am i correct by using views instead of CMR? Any help on this would be appreciated.