[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

09/08/2009 at 03:07AM PDT, ID: 24714311
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.5

problem (on the listener/consumer) using JMS on a spring project running inside weblogic

Asked by Rongas in J2EE, Spring, BEA WebLogic Application Server

Tags: JMS Weblogic Spring

I have created an emailing service in spring. Since i need to allow e-mails persistence etc.. i need to put this on JMS. With the help of another question here, i found the way to configure weblogic (hopefully correct) and create the proper structure. This thing works every second time though!!!
The first time i send an e-mail, the receiver receives nothing (checked this with breakpoint). The second time, it receives a message-(MimeMessage or SimpleMaiMessagel) and transmits it. The third time it is ignored, the forth time it is send and so on...

I have the feeling, that i must have done something in Spring bean configuration, can someone check it for me? I am desperate...
I also attach the class that implements MessageListener, in case there is the problem...
Do i also need to make something on web.xml?
If this information does not help, but someone has experience on JMS/Spring/Weblogic please provide with ideas or request further info.
 
If you believe this could be a weblogic configuration problem, i can provide with a step by step info of how i have configured it, already done so as to provide this to the rest of the team in my work.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
...
    <bean id="EmailMessageReceiver" class="emailService.service.notification.email.jms.EmailMessageReceiver"/>    	
   <bean id="JmsEmailSender" class="emailService.service.notification.email.jms.JmsEmailSender"/>  
   
	<bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
		<property name="environment">
		<props>
			<prop key="java.naming.provider.url">t3://localhost:7001</prop>
			<prop key="java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop>
		</props>
		</property>
	</bean> 
   
	<bean id="connectionFactory" class="org.springframework.jndi.JndiObjectFactoryBean">
		<property name="jndiTemplate" ref="jndiTemplate"/>
		<property name="jndiName" value="jms/EmailConnectionFactory"/>
	</bean>    
   
   <bean id="sendDestination" class="org.springframework.jndi.JndiObjectFactoryBean">
		<property name="jndiTemplate" ref="jndiTemplate"/>
		<property name="jndiName" value="jms/EmailQueue"/>
	</bean>  
	  
   <bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
	<property name="connectionFactory" ref="connectionFactory"/>
	<property name="defaultDestination" ref="sendDestination"/>
   </bean>
   
  <bean id="listenerContainer" class="org.springframework.jms.listener.DefaultMessageListenerContainer">
		<property name="connectionFactory" ref="connectionFactory" />
		<property name="destination" ref="sendDestination"/>
		<property name="messageListener" ref="EmailMessageReceiver" />
  </bean>
......
Attachments:
 
JML consumer implementing MessageListener
 
[+][-]09/08/09 03:30 AM, ID: 25280302

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/08/09 03:32 AM, ID: 25280321

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/08/09 04:15 AM, ID: 25280593

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/08/09 04:35 AM, ID: 25280718

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/08/09 04:35 AM, ID: 25280721

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/08/09 05:17 AM, ID: 25281028

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/08/09 05:58 AM, ID: 25281332

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/08/09 06:13 AM, ID: 25281472

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/08/09 06:15 AM, ID: 25281492

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/08/09 06:35 AM, ID: 25281687

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/08/09 06:38 AM, ID: 25281714

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/08/09 08:51 AM, ID: 25283170

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/09/09 03:19 AM, ID: 25289688

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/09/09 03:52 AM, ID: 25289836

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: J2EE, Spring, BEA WebLogic Application Server
Tags: JMS Weblogic Spring
Sign Up Now!
Solution Provided By: dravidnsr
Participating Experts: 1
Solution Grade: A
 
 
[+][-]09/09/09 04:37 AM, ID: 25290067

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/09/09 06:49 AM, ID: 25291206

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20090824-EE-VQP-74 - Hierarchy / EE_QW_3_20080625