cancel
Showing results for 
Search instead for 
Did you mean: 

Java Scheduler NW 7.3

Former Member
0 Kudos

Hi all,

I tried to implement a Java Scheduler on SAP Netweaver 7.3.

But somehow I cannot use some properties in the ejb-j2ee-engine.xml.

As stated for example in the tutorial found here:

http://help.sap.com/saphelp_nw73/helpdata/de/4a/5f5ed3277d21dae10000000a421937/frameset.htm

I should be able to use <message-props> in the enterprise bean. But the developer studio is telling me that it is not allowed!

<?xml version="1.0" encoding="UTF-8"?>

<ejb-j2ee-engine xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <enterprise-beans>

    <enterprise-bean>

      <ejb-name>HelloJobBean</ejb-name>

      <jndi-name> HelloJobBean </jndi-name>

      <message-props>

        <destination-name>JobQueue</destination-name>

        <connection-factory-name>JobQueueFactory</connection-factory-name>

      </message-props>

    </enterprise-bean>

  </enterprise-beans>

</ejb-j2ee-engine>

I added the dependency to "tc/je/scheduler/api" and the classes look also fine.

Does somebody know what I might need to do still?

Thanks and best regards,

Dennis

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos

same error for me, but you can still deploy it. no impact to the functionality.

Former Member
0 Kudos

Guys,

I am getting following error:

The connection factory name for jobs must be "JobQueueFactory"

EJB_J2EE-ENGINE.XML

<ejb-j2ee-engine xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ejb-j2ee-engine_3_0.xsd">

  <enterprise-beans>

    <enterprise-bean>

      <ejb-name>MDBClass</ejb-name>

      <jndi-name> MDBClass </jndi-name>

      <bean-props>

        <property>

          <property-name>destination-name</property-name>

          <property-value>JobQueue</property-value>

        </property>

   <property>

          <property-name>connection-factory-name</property-name>

          <property-value>JobQueueFactory</property-value>

        </property>

       </bean-props>

    </enterprise-bean>

</enterprise-beans>

</ejb-j2ee-engine>

Former Member
0 Kudos

Hi,

I was able to overcome the issue. More details can be found at : http://scn.sap.com/people/gangadharayya.virupakshayyahiremat/blog/2012/08/31/sap-portal-73-custom-ta...

Thanks,

Ganga