[jboss-user] [Beginners Corner] - application clients in JBOSS 4.2.2

sajhak do-not-reply at jboss.com
Thu Mar 6 06:29:30 EST 2008

Hi all , 

Im new to j2ee development..

in order to execute an application client in JBOSS 4.2.2 do i have to make any configurations additionally ?

im asking this is , i am working with EJBs , so i developed a session Bean ( EJB 3.0 ) which searches for  wine types <an example of an ebook> .
(for the testing purpoes , i just hard coded the values without using a database).

That EJB is invoked by an application client (.jar) , and i packaged those two (EJB and app client) into an .ear and deployed to JBOSS. ( im using Netbeans 6.0 )

but , when the application is run in Netbeans , it gives a Nullpointer exception ... :( ...

But when i deploed into the Glassfish server , it doesnot give any exception and works fine ...

so that s why im asking whether JBOSS support running application clients ?? ...

One more question ... is it a must to package EJB(.jar) and application client(.jar) into an .ear archive ? or cant i deploy those two seperately and then invoke the EJB from the application client ?? if so how can i do that ? are there any commands for that. ?

I wud b much pleased if anybosy can help me on this..

Thanks and Regards..

PS : the code is attached with this..

package searchfacadejboss;

import saji.dev.ejb.jboss.stateless.SearchFacade;
import java.util.List;
import javax.ejb.EJB;

public class Main {

    private static SearchFacade searchFacade;

    public Main() {
    public static void main(String[] args) {
        Main searchFacadeTest = new Main();
    void doTest() {
        try {
        System.out.println("Search Facade Lookup");
        System.out.println("Searching wines");

        List winesList = searchFacade.wineSearch("Red");

        System.out.println("Printing wines list");
        for (String wine:(List)winesList ){
        }catch(Exception ex) {


The output
Search Facade Lookup
Searching wines
        at searchfacadejboss.Main.doTest(Main.java:46)
        at searchfacadejboss.Main.main(Main.java:31)
BUILD SUCCESSFUL (total time: 3 seconds)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134525#4134525

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134525

More information about the jboss-user mailing list