₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,841 members, 8,513,954 topics. Date: Thursday, 05 November 2026 at 07:48 PM

Toggle theme

Candylips's Posts

Nairaland Forum › Candylips's Profile › Candylips's Posts

1 2 3 4 5 6 7 8 ... 573 574 575 576 577 578 579 580 581 (of 587 pages)

Nairaland General › Re: Onliners Chat! by candylips(m): 11:26am On Sep 14, 2006
am on line anyone wanna chat huh
Programming › Re: Looking For People Interested In Exploring JavaEE 5 And EJB 3.0 by candylips(m): 8:11am On Sep 14, 2006
No you dont need a controller servlet to do that.

I am assuming that you want to use spring only for the middle-tier and DAO. so onces u have created ur DAOs and set up the required configurations in the application context. u can use it in even a normal servlet or any other web frameworks out there i,e struts, velocity etc.

However, Spring also has a MVC framework called Spring MVC and configuring it is just as easy as defining the bean in the application context and then thats it.

Do you want to use the full stack or u just want to use it for the DAO and middle-tier.

Post your code and i can maybe take u through what is required
Nairaland General › Re: Onliners Chat! by candylips(m): 9:59pm On Sep 13, 2006
nothing much just about to drift into bed
Nairaland General › Re: Onliners Chat! by candylips(m): 9:54pm On Sep 13, 2006
i just dey sister. just dey while away time befor going to bed .

u?
Nairaland General › Re: Onliners Chat! by candylips(m): 9:50pm On Sep 13, 2006
omoge i am online lets chat wink
Nairaland General › Re: Bobbie Is What They Call Me. by candylips(m): 8:51pm On Sep 13, 2006
yes i am male wink
Dating And Meet-up Zone › Re: New In Abuja Looking For Female Pal by candylips(m): 8:35pm On Sep 13, 2006
oh really. why. thats the name my ex girl used to call me
Romance › Re: Lust And Love: Any Difference? by candylips(m): 7:31pm On Sep 13, 2006
none of the above or all of the above depending on my mood wink wink
Celebrities › Re: Fakest Nigerian Celebrities by candylips(m): 7:29pm On Sep 13, 2006
siddon there cheesy
Dating And Meet-up Zone › Re: I Am A Nice Guy, Down-To-Earth by candylips(m): 7:28pm On Sep 13, 2006
carry go cheesy
Dating And Meet-up Zone › Re: New In Abuja Looking For Female Pal by candylips(m): 5:48pm On Sep 13, 2006
alright then hope u have a wonderful time
Dating And Meet-up Zone › Re: I Am A Nice Guy, Down-To-Earth by candylips(m): 5:39pm On Sep 13, 2006
men am not gay o shocked
Dating And Meet-up Zone › Re: Pictures Of Nairaland Members. by candylips(m): 5:37pm On Sep 13, 2006
lauryn and 2fine4u
Thanks for posting ur pics u girls are 3 much kiss
Dating And Meet-up Zone › Re: New In Abuja Looking For Female Pal by candylips(m): 5:35pm On Sep 13, 2006
yeah sure i can take u around.
Dating And Meet-up Zone › Re: Any Nymphos In Eko? by candylips(m): 5:33pm On Sep 13, 2006
boi ordinary girl go do u na. no try nympho o na u go run shocked
Dating And Meet-up Zone › Re: New In Abuja Looking For Female Pal by candylips(m): 4:39pm On Sep 13, 2006
@lyricalgen
i need a pal in london u want to hook up  smiley
Dating And Meet-up Zone › Re: Pictures Of Nairaland Members. by candylips(m): 3:49pm On Sep 13, 2006
i'll post me soon wink
Dating And Meet-up Zone › Re: New In Abuja Looking For Female Pal by candylips(m): 3:48pm On Sep 13, 2006
ok just wanted to confirm. Goddluck with ur search anyways
Programming › Re: Looking For People Interested In Exploring JavaEE 5 And EJB 3.0 by candylips(m): 3:34pm On Sep 13, 2006
To work with JMS u need to set up a couple of configurations in the application context file. once u have done these u will be able to have access to the underlying messaging platform over a very simple interface

am just gonna rip out the configuration in one of my code

First u need to configure the jnditemplate

<bean id="jndiTemplate" class="org.springframework.jndi.JndiTemplate">
<property name="environment">
<props>
<prop key="java.naming.factory.initial">
org.jnp.interfaces.NamingContextFactory
</prop>
<prop key="java.naming.provider.url">
localhost
</prop>
<prop key="java.naming.factory.url.pkgs">
org.jnp.interfaces:org.jboss.naming
</prop>
</props>
</property>
</bean>

next u configure the queue connection factory

<bean id="jmsQueueConnectionFactory"
class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiTemplate">
<ref bean="jndiTemplate"/>
</property>
<property name="jndiName">
<value>UIL2ConnectionFactory</value>
</property>
</bean>

then u will need to define 2 jms destinations for sending and receiveing messages.
<bean id="sendDestination"
class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiTemplate">
<ref bean="jndiTemplate"/>
</property>
<property name="jndiName">
<value>queue/RequestSendQueue</value>
</property>
</bean>

<bean id="receiveDestination"
class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiTemplate">
<ref bean="jndiTemplate"/>
</property>
<property name="jndiName">
<value>queue/ReqeustReceiveQueue</value>
</property>
</bean>
The queues ReqeustReceiveQueue and RequestSendQueue should be define in ur app server

next u need a reference to the jms template which helps abstract the jms api from ur application

<bean id="jmsTemplate"
class="org.springframework.jms.core.JmsTemplate102">
<property name="connectionFactory">
<ref bean="jmsQueueConnectionFactory"/>
</property>
<property name="defaultDestination">
<ref bean="destination"/>
</property>
<property name="receiveTimeout">
<value>40000</value>
</property>
</bean>


Finally in my case i have defined two beans that help me with the sending and recevieing of messages.
Defining it here will give u d abiliy of using them anywhere in ur app. so u can message enable anything in ur app

<bean id="jmsSender" class="org.informa.jms.JMSSender">
<property name="jmsTemplate">
<ref bean="jmsTemplate"/>
</property>
</bean>

<bean id="jmsReceiver" class="org.informa.jms.JMSReceiver">
<property name="jmsTemplate">
<ref bean="jmsTemplate"/>
</property>
</bean>



Once u have don these configurations to send a message in ur code is as simple as just wrting,

JMSSender jmsSender = (JMSSender)appContext.getBean("jmsSender"wink;

jmsSender.sendMesage();



i hope these helps . let me know if u need more help
Dating And Meet-up Zone › Re: New In Abuja Looking For Female Pal by candylips(m): 2:43pm On Sep 13, 2006
just talk true . u are looking for a bed pal smiley

1 2 3 4 5 6 7 8 ... 573 574 575 576 577 578 579 580 581 (of 587 pages)