aspose file tools*
The moose likes Other Application Frameworks and the fly likes Help me to fix this code Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Help me to fix this code" Watch "Help me to fix this code" New topic
Author

Help me to fix this code

Peter Penzov
Greenhorn

Joined: Jul 19, 2011
Posts: 10
Hi,
I'm new to java programming. I need a help about implementing OSGI module and EJB. I wrote this simple OSGI bundle:



This is the Activator class:




This is the code which calls the OSGI bundle:



The idea is to create a login form which calls OSGI bundle and plain password string is passed to the bundle. The bundle takes the string and converts it to SHA-256 encrypted string. Then the encrypted string is returned to the login bean. I know that it's not a good idea to work on something that you don't know but this is a part of a open source project and this part nobody wants to do it. I donate my free time for this project.

I use JBoss 7.1.0 for application server and Netbeans 7.1. This is the error stack:



I will be glad if someone assist me for the OSGI code.
Write me if you have any questions.

best wishes
Peter
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Help me to fix this code