Announcement Announcement Module
Collapse
No announcement yet.
configuration problem with inbound channel adapter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • configuration problem with inbound channel adapter

    Hi,
    i m trying to do my first spring integration project that read from a database every 5 seconds.so this is a part of configuration file that i have made.

    <beans:bean id="NewNotificationsCheck" class="com.example.NotifDao">
    <beansroperty name="dataSource" ref="dataSource"/>

    </beans:bean>

    <channel id="sendNotifChannel" />

    <inbound-channel-adapter id="DaoIn" auto-startup="true" ref ="NewNotificationsCheck" method="getRecentNotif" channel="sendNotifChannel" >

    <poller>
    <interval-trigger interval="5" time-unit="SECONDS"/>
    </poller>

    </inbound-channel-adapter>

    when i executed this project i faced this exception:
    Configuration problem: Cannot locate BeanDefinitionParser for element [inbound-channel-adapter]

    i don't know what's wrong.
    i will appreciate your help and time.

  • #2
    That is strange and looks like Spring Integration is not on the runtime classpath. Can you execute this line of code successfully (just as a test) in the same environment you are running your configuration?

    Code:
    MethodInvokingInboundChannelAdapterParser parser = new MethodInvokingInboundChannelAdapterParser()

    Comment


    • #3
      Hi,
      I ran your line of code and no problems of compilation were shown.
      I'm using spring integration 2.0.0 M4.
      I need realy your help .
      thanks oleg .If you need more details I'm ready.

      Comment


      • #4
        Hi,
        you are right oleg,the spring integration jar is not in the proper place.
        thanks a lot.

        Comment

        Working...
        X