cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Service for Startup classes in SAP Netweaver

Former Member
0 Kudos

Hi All,

Can any one please let me know for some custom service in Java which can be used in place of startup class? I want to use it to start the RoleListener which will be registered in the RoleFactory of UMFactory?

Regards,

Smriti.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello

maybe a ServletContextListener could help you

see [http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContextListener.html] and google for ServletContextListener

regards franz

reward points if useful

Former Member
0 Kudos

Hello Smriti,

If you happen to use Java 6 as your runtime, you could try using the Java service loading mechanism; see http://java.sun.com/javase/6/docs/api/java/util/ServiceLoader.html for details.

Best regards,

Jens

Former Member
0 Kudos

Hi Jens,

Thanks for your reply. Actually i am deploying my application on SAP WAS700 and i am using SAP NWDS7.0.10 as an IDE. I don't think this will work. Can you please suggest something else?

Regards,

Smriti.