Showing results for 
Search instead for 
Did you mean: 

DestinationService in nw7.0 sp12

Former Member
0 Kudos

Hello All,

We have EJBs that are using the destination service.

Here is part of the code:

InitialContext ctx = new InitialContext();		
DestinationService dstService = (DestinationService) ctx.lookup(DestinationService.JNDI_KEY);		

It worked fine until we upgraded from nw7.0 sp11 to nw7.0 sp12.

Now we get a ClassCastException in all those EJBs.

When I use the next code line:

Object obj =  ctx.lookup(DestinationService.JNDI_KEY);

obj is of type

I didn't succeed getting any information on class LocalDestinationServiceImpl

but when I use the next code line instead:

LocalDestinationServiceImpl dstService2 = (LocalDestinationServiceImpl) ctx.lookup(DestinationService.JNDI_KEY);

I still get ClassCastException.

Anyone knows what can be the problem?

Thanks for you time, Adi.

Accepted Solutions (1)

Accepted Solutions (1)

Active Contributor
0 Kudos

Can you check if your application-j2ee-engine.xml has the destination service references? It should be as follows:

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

<!DOCTYPE application-j2ee-engine SYSTEM "application-j2ee-engine.dtd">














Former Member
0 Kudos

Thanks Abhilash ,

The solution was to add tc/sec/destinations/interface as an interface to the application-j2ee-engine.xml

Regards, Adi.

Answers (0)