cancel
Showing results for 
Search instead for 
Did you mean: 

Still having issues with custom ejb :-(

Former Member
0 Kudos

I now see this in the logviewer -

Transaction rolled back for meesage 44564b42-a8be-05fd-e100-0000a3f331a4(INBOUND) due to: local bean not found: localejbs/sap.com/com.gy.jms.RemoveSpecialCharacters/RemoveCharactersBean

However, I do see under Services => EJB Container =>sap.com/com.gy.jms.RemoveSpecialCharacters => RemoveCharactersBeans

deployed successfully

In my adapter, I have the following settings

1

Module Name -localejbs/sap.com/com.gy.jms.RemoveSpecialCharacters/RemoveCharactersBean

Local Enterprise Bean

Module Key - create

Module config

Module key - create

Parameter name - parameter

Parameter value - value

From this blog,/people/alessandro.guarneri/blog/2006/03/16/xi-mapping-module-for-afw

Hint. Remember to set up also the JNDI name in your ejb-j2ee-engine.xml, which must match the name you'll use to invoke the module from a communication channel.

I added JNDI name as RemoveCharactersBean

Any more ideas?

Appreciate any thoughts on this.

Thank you

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

If you added JNDI name as

>> I added JNDI name as RemoveCharactersBean

i.e. if you open ejb-j2ee-engine.xml in a text editor you should see following entry in it

<jndi-name>RemoveCharactersBean</jndi-name>

In this case you can specify the Module name as

localejbs/RemoveCharactersBean

You can check the same in JNDI registry in Visual administrator.

Rgds,

Amol

Former Member
0 Kudos

All,

I worked with my XI admin who showed me what there on VA. Under

XI0\Server X\Services\Deploy, I see

/sap.com/com.gy.jms.RemoveSpecialCharacters/RemoveCharactersBean

And I see my entry in localejbs.

Under ejb-j2ee-engine.xml, I created Cust_EJB/RemoveCharactersBean for JNDI name which shows up in JNDI Registry (VA)

In my config, I have

1 localejbs/Cust_EJB/RemoveCharactersBean Local Enterprise Bean create

And looks like Cust_EJB reads the path /sap.com/com.gy.jms.RemoveSpecialCharacters

I closely followed this example which works

2 localejbs/AF_Modules/MessageTransformBean Local Enterprise Bean XML2Plain

And in JNDI registry I see /AF_Modules/MessageTransformBean

Where AF_Modules, resolves the path /sap.com/..../

I'm getting this error in Message display tool...

2006-05-03 10:38:47 Error Exception caught by adapter framework: Exception thrown in method process. The transaction is marked for rollback.

2006-05-03 10:38:47 Error Delivery of the message to the application using connection AFW failed, due to: Exception thrown in method process. The transaction is marked for rollback

Have had issues with deploying EJBs and facing issues of this kind. Please let me know how did you go about resolving this.

Thank you.

stefan_grube
Active Contributor
0 Kudos

> 2006-05-03 10:38:47 Error Exception caught by adapter

> framework: <b>Exception thrown in method process</b>. The

> transaction is marked for rollback.

It seems that your bean is used, but inside your been an exception is thrown.

You should add a text to the exception to see what happend in your bean.

Regards

Stefan

moorthy
Active Contributor
0 Kudos

Just check the Spelling/Typo errors of the Module Created. Also check for , is the module is deployed correctly without any errors(While deploying)

Thanks,

Moorthy

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>-localejbs/sap.com/com.gy.jms.RemoveSpecialCharacters/RemoveCharactersBean

you can see the path in deploy service in VA

if you add JNDI name you can try

localejbs/RemoveCharactersBean

but just have a look in VA as I said and you all know for sure or ask any java colleague to show you

Regards,

michal