You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Uri Zeituni <ur...@retalix.com> on 2006/01/12 08:36:03 UTC

EJB compile

Hi,
I need to compile my Beans: create stubs and skeletons. I need to deploy them on Websphere. Does anyone knows how to do that? 
I saw that <ejbc> task is supported only for Weblogic, in addition I did not see any EJB compile task defined in Websphere's ANT tasks.
Can anyone give a hint or help?
Many thanks,
Uri Zeituni

Re: EJB compile

Posted by Steve Loughran <st...@apache.org>.
Uri Zeituni wrote:
> Hi,
> I need to compile my Beans: create stubs and skeletons. I need to deploy them on Websphere. Does anyone knows how to do that? 
> I saw that <ejbc> task is supported only for Weblogic, in addition I did not see any EJB compile task defined in Websphere's ANT tasks.
> Can anyone give a hint or help?
> Many thanks,
> Uri Zeituni
> 

if you can, use EJb3 or hibernate. Hibernate is good and it works, EJB3 
is, well, a kind of standardised hibernate. But with it and the 
annotations, you can
  -do persistence without any extra steps after compiling
  -test your persistence in simple junit tests.

things are still a bit unstable right now, but I would think very hard 
indeed about writing classic/legacy beans right now.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: specifying include files in a in the

Posted by General Email <ge...@yahoo.com>.
ok, that's a way of doing it but why does the  documentation for say 'fileset' and the attribute 'includes' say that  you can specify a list of comma separated file names??
  

Petar Tahchiev <pa...@gmail.com> wrote:  On 12/01/06, General Email  wrote:
>
> That will work with 'include' but it doesn't like 'includes' and then a
> list of comma separated file names.
>   That is the problem.
>
>   And yes...forgot the end quote there...typo in my post.
>
> Petar Tahchiev 
 wrote:  On 12/01/06, General
> Email  wrote:
> >
> > I'd like to specify a list of files to include in the
> inside a
> > task.
> >   Looks like this:
> >
> >
>
> >
> >
>
>
>
> 0h, and also you forgot to close your quotations marks here:
>               utils.jar,/>
> Doesn't ant complains it?
>
> --
> Regards, Petar!
>
>
>
>
> ---------------------------------
> Yahoo! Photos – Showcase holiday pictures in hardcover
> Photo Books. You design it and we'll bind it!
>

Sorry, my fault. I see now what you want.
First if you want to include a list of comma separated files you can use
this:




Second if you want to include a set of files you can use this:



     


where you point to the directory you want to use and exclude certain files.

Hope that helps!
--
Regards, Petar!




		
---------------------------------
Yahoo! Photos
 Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.

Re: specifying include files in a in the

Posted by Petar Tahchiev <pa...@gmail.com>.
On 12/01/06, General Email <ge...@yahoo.com> wrote:
>
> That will work with 'include' but it doesn't like 'includes' and then a
> list of comma separated file names.
>   That is the problem.
>
>   And yes...forgot the end quote there...typo in my post.
>
> Petar Tahchiev <pa...@gmail.com> wrote:  On 12/01/06, General
> Email  wrote:
> >
> > I'd like to specify a list of files to include in the
> inside a
> > task.
> >   Looks like this:
> >
> >
>
> >
> >
>
>
>
> 0h, and also you forgot to close your quotations marks here:
>               utils.jar,/>
> Doesn't ant complains it?
>
> --
> Regards, Petar!
>
>
>
>
> ---------------------------------
> Yahoo! Photos – Showcase holiday pictures in hardcover
> Photo Books. You design it and we'll bind it!
>

Sorry, my fault. I see now what you want.
First if you want to include a list of comma separated files you can use
this:

<lib dir="${basedir}/WEB-INF/lib" includes="WEB-INF/web.xml,
WEB-INF/my.xml"/>

Second if you want to include a set of files you can use this:

<lib dir="thirdparty/libs">
     <exclude name="jdbc1.jar"/>
</lib>

where you point to the directory you want to use and exclude certain files.

Hope that helps!
--
Regards, Petar!

Re: specifying include files in a in the

Posted by General Email <ge...@yahoo.com>.
That will work with 'include' but it doesn't like 'includes' and then a list of comma separated file names. 
  That is the problem.
  
  And yes...forgot the end quote there...typo in my post.

Petar Tahchiev <pa...@gmail.com> wrote:  On 12/01/06, General Email  wrote:
>
> I'd like to specify a list of files to include in the 
 inside a 
> task.
>   Looks like this:
>
>    

>
>             
      


0h, and also you forgot to close your quotations marks here:
              utils.jar,/>
Doesn't ant complains it?

--
Regards, Petar!



		
---------------------------------
Yahoo! Photos – Showcase holiday pictures in hardcover
 Photo Books. You design it and we’ll bind it!

Re: specifying include files in a in the

Posted by Petar Tahchiev <pa...@gmail.com>.
On 12/01/06, General Email <ge...@yahoo.com> wrote:
>
> I'd like to specify a list of files to include in the <lib> inside a <war>
> task.
>   Looks like this:
>
>    <lib dir="c:/lib">
>
>             <includes name="webService.jar,
>               common.jar,
>               utils.jar,/>
>
>   </lib>
>
>   <lib> specifies a <fileset> which I though supported  <includes> with a
> comma separated list of files to include.   However I get an error saying
> that <lib> doesn't support includes  and I'm forced to change to <include>
> (without the 's') and  include each file individually.
>   How can I get around this and specify a list of files?
>
>   Thnx.
>
>
> ---------------------------------
> Yahoo! Photos – Showcase holiday pictures in hardcover
> Photo Books. You design it and we'll bind it!
>

I can't see what is the problem with :

<fileset dir="c:\lib">
      <include name="**/*.jar"/>
</fileset>

0h, and also you forgot to close your quotations marks here:
              utils.jar,/>
Doesn't ant complains it?

--
Regards, Petar!

specifying include files in a in the

Posted by General Email <ge...@yahoo.com>.
I'd like to specify a list of files to include in the <lib> inside a <war> task.
  Looks like this:
  
   <lib dir="c:/lib">
        
            <includes name="webService.jar,
              common.jar,
              utils.jar,/>
   
  </lib>
  
  <lib> specifies a <fileset> which I though supported  <includes> with a comma separated list of files to include.   However I get an error saying that <lib> doesn't support includes  and I'm forced to change to <include> (without the 's') and  include each file individually.
  How can I get around this and specify a list of files?
  
  Thnx.
  
		
---------------------------------
Yahoo! Photos – Showcase holiday pictures in hardcover
 Photo Books. You design it and we’ll bind it!

Re: EJB compile

Posted by Kjersti Berg <kj...@gmail.com>.
On 12/01/06, Uri Zeituni <ur...@retalix.com> wrote:
>
> Hi,
> I need to compile my Beans: create stubs and skeletons. I need to deploy
> them on Websphere. Does anyone knows how to do that?
> I saw that <ejbc> task is supported only for Weblogic, in addition I did
> not see any EJB compile task defined in Websphere's ANT tasks.
> Can anyone give a hint or help?
> Many thanks,
> Uri Zeituni
>
>
The Websphere Application Server provides a set of Ant tasks, and
wsejbdeploy will create stubs and skeletons for you. More info here:
http://publib.boulder.ibm.com/infocenter/wasinfo/v5r1//index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/javadoc/ae/com/ibm/websphere/ant/tasks/WsEjbDeploy.html