|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
How To Includes a Simple Jar File?Hello, I hope this is an easy question.
I have an EJB that is part of an SA. It uses a simple Java class that I need to have in a separate project. I made a Java project, with this class and a jar target. Everything builds fine. But how can I include the simple jar in something deployable? I can't include it in an EJB module, because it is not an EJB. There does not appear to be a way to add a simple jar project to an SA either. This all works if I place the simple class in the EJB project, and so it ends up in the SA, but I need it to be separate. Am I missing something? Thanks |
|
|
Re: How To Includes a Simple Jar File?Did you try adding the Jar to your EJB project's library. If is part
of EJB project's library and Project properties-> library -> library package is checked, jar will be packaged inside the EJB jar. -Girish On Tue, Feb 17, 2009 at 11:38 AM, jsexton0 <jsexton0@...> wrote: > > Hello, I hope this is an easy question. > > I have an EJB that is part of an SA. It uses a simple Java class that I > need to have in a separate project. I made a Java project, with this class > and a jar target. Everything builds fine. > > But how can I include the simple jar in something deployable? I can't > include it in an EJB module, because it is not an EJB. There does not > appear to be a way to add a simple jar project to an SA either. > > This all works if I place the simple class in the EJB project, and so it > ends up in the SA, but I need it to be separate. > > Am I missing something? > > Thanks > -- > View this message in context: http://www.nabble.com/How-To-Includes-a-Simple-Jar-File--tp22064685p22064685.html > Sent from the NetBeans - EntPack mailing list archive at Nabble.com. > > |
|
|
Re: How To Includes a Simple Jar File?Yes, this would work. However in this situation, I need it to be outside that SA. In this case the SA is a "standard" part of our system. The jar file contains an optional part that is used dynamicly in the application, I guess it would be fair to say that it's more of a marketing requirement than a technical one.
The best I seem to be able to do is manually deploy the jar to the lib directory. Also of note, I found that elements used in the plain java object, and jar, like an interface, that are included in the SA (via the EJB module) fail to be found at run time. I had to duplicate (copy) some java elements from the EJB module to the jar, even though adding a project dependency in Glassfish allowed the builds to go fine. All I was hoping for is a way to have this jar end up deployable through the Glassfish admin tool since that is how everything else in our application works. Thanks
|
|
|
Re: How To Includes a Simple Jar File?On Fri, Feb 20, 2009 at 6:42 AM, jsexton0 <jsexton0@...> wrote:
> > Yes, this would work. However in this situation, I need it to be outside > that SA. In this case the SA is a "standard" part of our system. The jar > file contains an optional part that is used dynamicly in the application, I > guess it would be fair to say that it's more of a marketing requirement than > a technical one. I guess you added your Jar to EJB project library, but unchecked "package" checkbox. > > The best I seem to be able to do is manually deploy the jar to the lib > directory. Also of note, I found that elements used in the plain java > object, and jar, like an interface, that are included in the SA (via the EJB > module) fail to be found at run time. I had to duplicate (copy) some java > elements from the EJB module to the jar, even though adding a project > dependency in Glassfish allowed the builds to go fine. Now looks like from your Jar deployed to GF lib directory you are trying to access class in EJB Jar? Somebody in Glassfish users list may be able to help, may be using some EJB module classloader option/trick. > > All I was hoping for is a way to have this jar end up deployable through the > Glassfish admin tool since that is how everything else in our application > works. > > Thanks > > > Girish_Patil wrote: >> >> Did you try adding the Jar to your EJB project's library. If is part >> of EJB project's library and Project properties-> library -> library >> package is checked, jar will be packaged inside the EJB jar. >> -Girish >> >> On Tue, Feb 17, 2009 at 11:38 AM, jsexton0 <jsexton0@...> wrote: >>> >>> Hello, I hope this is an easy question. >>> >>> I have an EJB that is part of an SA. It uses a simple Java class that I >>> need to have in a separate project. I made a Java project, with this >>> class >>> and a jar target. Everything builds fine. >>> >>> But how can I include the simple jar in something deployable? I can't >>> include it in an EJB module, because it is not an EJB. There does not >>> appear to be a way to add a simple jar project to an SA either. >>> >>> This all works if I place the simple class in the EJB project, and so it >>> ends up in the SA, but I need it to be separate. >>> >>> Am I missing something? >>> >>> Thanks >>> -- >>> View this message in context: >>> http://www.nabble.com/How-To-Includes-a-Simple-Jar-File--tp22064685p22064685.html >>> Sent from the NetBeans - EntPack mailing list archive at Nabble.com. >>> >>> >> >> > > -- > View this message in context: http://www.nabble.com/How-To-Includes-a-Simple-Jar-File--tp22064685p22120409.html > Sent from the NetBeans - EntPack mailing list archive at Nabble.com. > > |
| Free embeddable forum powered by Nabble | Forum Help |