Re: [VOTE] Release Tuscany SCA Java 1.0.1-incubating (RC5)

2007-11-11 Thread Venkata Krishnan
Thanks again for all the hard work.  I took a quick look at the binary
distro and seems fine to me.  So here is my +1.

- Venkat

On Nov 8, 2007 4:05 AM, Raymond Feng [EMAIL PROTECTED] wrote:

 Hi,

 Please review and vote on the 1.0.1-incubating release artifacts of
 Tuscany
 SCA for Java.

 The RC5 contains a few fixes to issues discovered in RC4. Thank you for
 reporting and fixing the issues promptly.

 SVN Tag:
 http://svn.apache.org/repos/asf/incubator/tuscany/tags/java/sca/1.0.1-RC5/

 Stage maven repo: 
 http://people.apache.org/~rfeng/tuscany/maven/http://people.apache.org/%7Erfeng/tuscany/maven/

 RAT report:
 http://people.apache.org/~rfeng/tuscany/1.0.1-RC5/1.0.1-RC5.rat.txthttp://people.apache.org/%7Erfeng/tuscany/1.0.1-RC5/1.0.1-RC5.rat.txt

 Distros (zip/gz/asc/md5) :
 http://people.apache.org/~rfeng/tuscany/1.0.1-RC5/http://people.apache.org/%7Erfeng/tuscany/1.0.1-RC5/

 The 1.0.1 release is a bit bumpy with a few RCs in a row. Thank you for
 your
 support and hopefully this will be the last one.

 Here is my +1.

 Thanks,
 Raymond


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Tuscany November Board Report

2007-11-11 Thread Venkata Krishnan
Sorry, I'd been away.  The report says Incubating 2006-11-30.  Is that
right? Or is that supposed to be 2005 ?

- Venkat

On Nov 9, 2007 11:26 PM, Luciano Resende [EMAIL PROTECTED] wrote:

 Good Ant, looks good to me.

 On Nov 9, 2007 9:50 AM, ant elder [EMAIL PROTECTED] wrote:
  I've made quite a lot of updates.
 
 ...ant
 
 
  On Nov 9, 2007 4:30 PM, Luciano Resende [EMAIL PROTECTED] wrote:
 
   I have added couple more things there too... it would be great if
   others could review and update by EOD today, then I'd move this to the
   Incubator wiki at night.
  
   On Nov 9, 2007 4:56 AM, Simon Laws [EMAIL PROTECTED] wrote:
   
On Nov 5, 2007 6:13 PM, Luciano Resende [EMAIL PROTECTED]
 wrote:
   
 It's that time again, and I have created a placeholder for us to
 collaborate on the Incubator board report. Right now it's just a
 copy
 of our previous report, please jump in and help get this
 updated/rewritten.

 Let's aim to get something done by Thursday or Friday... as the
 deadline is this weekend.


 [1]

  
 http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Tuscany+November+Board+Report

 --
 Luciano Resende
 Apache Tuscany Committer
 http://people.apache.org/~lresendehttp://people.apache.org/%7Elresende
 http://people.apache.org/%7Elresende
   http://people.apache.org/%7Elresende
 http://lresende.blogspot.com/


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

 Hi Luciano
   
I've done the basic updates. Take a look and see what else is
 needed.
   
Simon
   
  
  
  
   --
   Luciano Resende
   Apache Tuscany Committer
   http://people.apache.org/~lresendehttp://people.apache.org/%7Elresende
 http://people.apache.org/%7Elresende
   http://lresende.blogspot.com/
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 



 --
 Luciano Resende
 Apache Tuscany Committer
 http://people.apache.org/~lresende http://people.apache.org/%7Elresende
 http://lresende.blogspot.com/

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




Re: Tuscany November Board Report

2007-11-11 Thread ant elder
Yes! I've updated the Incubator wiki to have 2005.

   ...ant

On Nov 11, 2007 4:09 PM, Venkata Krishnan [EMAIL PROTECTED] wrote:

 Sorry, I'd been away.  The report says Incubating 2006-11-30.  Is that
 right? Or is that supposed to be 2005 ?

 - Venkat

 On Nov 9, 2007 11:26 PM, Luciano Resende [EMAIL PROTECTED] wrote:

  Good Ant, looks good to me.
 
  On Nov 9, 2007 9:50 AM, ant elder [EMAIL PROTECTED] wrote:
   I've made quite a lot of updates.
  
  ...ant
  
  
   On Nov 9, 2007 4:30 PM, Luciano Resende [EMAIL PROTECTED] wrote:
  
I have added couple more things there too... it would be great if
others could review and update by EOD today, then I'd move this to
 the
Incubator wiki at night.
   
On Nov 9, 2007 4:56 AM, Simon Laws [EMAIL PROTECTED]
 wrote:

 On Nov 5, 2007 6:13 PM, Luciano Resende [EMAIL PROTECTED]
  wrote:

  It's that time again, and I have created a placeholder for us to
  collaborate on the Incubator board report. Right now it's just a
  copy
  of our previous report, please jump in and help get this
  updated/rewritten.
 
  Let's aim to get something done by Thursday or Friday... as the
  deadline is this weekend.
 
 
  [1]
 
   
 
 http://cwiki.apache.org/confluence/display/TUSCANYWIKI/Tuscany+November+Board+Report
 
  --
  Luciano Resende
  Apache Tuscany Committer
  http://people.apache.org/~lresendehttp://people.apache.org/%7Elresende
 http://people.apache.org/%7Elresende
  http://people.apache.org/%7Elresende
http://people.apache.org/%7Elresende
  http://lresende.blogspot.com/
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
  Hi Luciano

 I've done the basic updates. Take a look and see what else is
  needed.

 Simon

   
   
   
--
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresendehttp://people.apache.org/%7Elresende
 http://people.apache.org/%7Elresende
  http://people.apache.org/%7Elresende
http://lresende.blogspot.com/
   
   
 -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
  
 
 
 
  --
  Luciano Resende
  Apache Tuscany Committer
  http://people.apache.org/~lresendehttp://people.apache.org/%7Elresende
 http://people.apache.org/%7Elresende
  http://lresende.blogspot.com/
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



RE: Tuscany Tutorial

2007-11-11 Thread Antollini, Mario
Thanks ant!... It is compiling  now.

Mario

-Original Message-
From: ant elder [mailto:[EMAIL PROTECTED] 
Sent: Saturday, November 10, 2007 1:35 PM
To: tuscany-dev@ws.apache.org
Subject: Re: Tuscany Tutorial

On Nov 10, 2007 2:18 PM, Antollini, Mario [EMAIL PROTECTED]
wrote:

 Hello,



 I am trying to compile a tutorial located in
 http://svn.apache.org/repos/asf/incubator/tuscany/java/sca/tutorial/
but
 I did not get lucky so far.



 All the artifacts refer to version 1.1-incubating-SNAPSHOT but when
 maven goes to look them up in some repositories it cannot find them.
Do
 I need a download a special repository into my local repository in
order
 to build/install/run the tutorial? Do I need to add some mirror ?



 E.g.: this is one of artifacts maven is trying to download:



 ***

 Downloading:

http://people.apache.org/repo/m2-snapshot-repository/org/apache/tuscany/

sca/tuscany-maven-ant-generator/1.1-incubating-SNAPSHOT/tuscany-maven-an
 t-generator-1.1-incubating-SNAPSHOT.pom

 [WARNING] Unable to get resource

'org.apache.tuscany.sca:tuscany-maven-ant-generator:pom:1.1-incubating-S
 NAPSHOT' from repository apache.snapshots
 (http://people.apache.org/repo/m2-snapshot-repository)

 

 ***



 Maven is trying with all these repositories:



 central (http://repo1.maven.org/maven2),

 apache.ws.zone (http://ws.zones.apache.org/repository2),

 apache.incubator
 (http://people.apache.org/repo/m2-incubating-repository),

 apache.snapshots
(http://people.apache.org/repo/m2-snapshot-repository),

 codehaus-snapshot (http://snapshots.repository.codehaus.org)



 I am not experienced in maven. Can somebody give a tip?



 Regards,

 Mario


This could be because  we've not republished SNAPSHOT jars since some
modules have been added. I've just republished all the latest modules
now so
could you try again?

   ...ant

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[jira] Commented: (TUSCANY-1903) An implementation openjpa work with policy-transaction is almost done

2007-11-11 Thread gengshaoguang (JIRA)

[ 
https://issues.apache.org/jira/browse/TUSCANY-1903?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12541675
 ] 

gengshaoguang commented on TUSCANY-1903:


The attached file is ready for review from any of you. Thanks for doing that.

 An implementation openjpa work with policy-transaction is almost done
 -

 Key: TUSCANY-1903
 URL: https://issues.apache.org/jira/browse/TUSCANY-1903
 Project: Tuscany
  Issue Type: Improvement
  Components: Java SCA Misc Implementation Extensions
Affects Versions: Java-SCA-Next
 Environment: jdk1.6 svn trunk derby policy-transaction
Reporter: gengshaoguang
 Fix For: Java-SCA-Next

 Attachments: implementation-openjpa.zip


 Hello every one,
 I would like to contribute implementation-openjpa to Tuscany.
 This implementation has features like:
 EntityManager runtime implemented by Apache Openjpa
 and 
 almost all good points provided by openjpa.
 Way of openjpa's working with JTA is changed by this module that not JNDI was 
 nessary, and it now works with Tuscsany's policy-transaction.
 This contribution is not 100% done, there are places need improving.
 After implementation-hibernate, I wish this time I could have done a valuable 
 thing here.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[jira] Resolved: (TUSCANY-1904) Implement distribution target for DAS ant build

2007-11-11 Thread Adriano Crestani (JIRA)

 [ 
https://issues.apache.org/jira/browse/TUSCANY-1904?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Adriano Crestani resolved TUSCANY-1904.
---

Resolution: Fixed

resolved under revision 594022

 Implement distribution target for DAS ant build
 ---

 Key: TUSCANY-1904
 URL: https://issues.apache.org/jira/browse/TUSCANY-1904
 Project: Tuscany
  Issue Type: Improvement
  Components: C++ DAS
Reporter: Adriano Crestani
Assignee: Adriano Crestani
Priority: Minor
 Fix For: Cpp-M4


 create a distribution target for DAS ant build to auto generate the 
 distribution files structure

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Ant Build Distribution System

2007-11-11 Thread Adriano Crestani
Hi,

On revision 594022 I've added new targets: distribution and 
pack.distribution on DAS ant build system. distribution target creates a
distribution file structure for both, src and bin distribution. 
pack.distribution target packs the generated distribution files and
generates the .md5 and .asc( still working on it ) files.

I've also updated the ANT_README_AND_INSTALL file with the description of
these new targets.


I'd like someone else could revise the distribution structure that these new
targets are creating and give some suggestions. Then, after everything is ok
with these new targets, we could reapply it to SDO and SCA projects.

Thoughts? Suggestions?

Adriano Crestani


Re: A script to automate the steps to create a SCA Java release was: Re: svn commit: r593259 - /incubator/tuscany/java/etc/release-sca.sh

2007-11-11 Thread Venkata Krishnan
Thanks a ton, Raymond.  This is surely going to be helpful.

- Venkat

On Nov 9, 2007 12:42 AM, Raymond Feng [EMAIL PROTECTED] wrote:

 Hi,

 I wrote a shell script to automate the steps to create a SCA java release.

 * Run svn copy to check out the release branch into a RC tag
 * Replace the version id by removing SNAPSHOT (I'm using sed at this
 moment and it can be replaced by maven release plugin)
 * Generate a RAT report
 * Build the tagged source tree
 * Deploy/sign the modules to a stage maven repo
 * Sign the distros
 * Copy the distros to people.apache.org (To be implemented using scp
 command)

 Hope it helps for future RMs.

 Thanks,
 Raymond

 - Original Message -
 From: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, November 08, 2007 11:05 AM
 Subject: svn commit: r593259 - /incubator/tuscany/java/etc/release-sca.sh


  Author: rfeng
  Date: Thu Nov  8 11:05:18 2007
  New Revision: 593259
 
  URL: http://svn.apache.org/viewvc?rev=593259view=rev
  Log:
  Update the script
 
  Modified:
 incubator/tuscany/java/etc/release-sca.sh
 
  Modified: incubator/tuscany/java/etc/release-sca.sh
  URL:
 
 http://svn.apache.org/viewvc/incubator/tuscany/java/etc/release-sca.sh?rev=593259r1=593258r2=593259view=diff
 
 ==
  --- incubator/tuscany/java/etc/release-sca.sh (original)
  +++ incubator/tuscany/java/etc/release-sca.sh Thu Nov  8 11:05:18 2007
  @@ -21,7 +21,7 @@
 
  # Staging maven repo
  REPO_ID=apache.incubator
  -REPO_URL=scp://people.apache.org/home/$USER/public_html/tuscany/maven
 
 +REPO_URL=scp://people.apache.org/home/$USER/public_html/tuscany/$TAG/maven
 
  # RAT jar
  RAT_JAR=c:\\Apache\\rat\\rat-0.5.1.jar
  @@ -53,19 +53,19 @@
 
  echo Building samples ...
  cd $DIR/$TAG/samples
  -mvn clean install -fn
  +mvn clean install
 
  echo Building itests ...
  cd $DIR/$TAG/itest
  -mvn clean install -fn
  +mvn clean install
 
  echo Building distrubtion ...
  cd $DIR/$TAG/distribution
  -mvn clean install -fn
  +mvn clean install
 
  echo Signing distrubtion ...
  for i in target/*.zip target/*.gz; do gpg --output
  $i.asc --detach-sig --armor $i; done
  -for i in *.zip *.gz; do openssl md5 -hex $i | sed 's/MD5(\([^)]*\))=
  \([0-9a-f]*\)/\2 *\1/'  $i.md5; done
  +for i in target/*.zip target/*.gz; do openssl md5 -hex $i | sed
  's/MD5(\([^)]*\))= \([0-9a-f]*\)/\2 *\1/'  $i.md5; done
 
  echo Deploying tuscany-sca-all ...
  cd $DIR/$TAG/distribution/bundle/target
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




[RESULT] [VOTE] Release Tuscany SCA Java 1.0.1-incubating (RC5)

2007-11-11 Thread Raymond Feng

Hi,

The vote has passed with 7 +1s from the following committers:

Simon Laws
Ignacio Silva-Lepe
Luciano Resende
Mark Combellack
Jean-Sebastien Delfino
Ant Elder
Raymond Feng

No 0 or -1 votes are recorded.

I'll start the vote on IPMC to approve the release now.

Thanks,
Raymond

- Original Message - 
From: Venkata Krishnan [EMAIL PROTECTED]

To: tuscany-dev@ws.apache.org
Sent: Sunday, November 11, 2007 7:37 AM
Subject: Re: [VOTE] Release Tuscany SCA Java 1.0.1-incubating (RC5)



Thanks again for all the hard work.  I took a quick look at the binary
distro and seems fine to me.  So here is my +1.

- Venkat

On Nov 8, 2007 4:05 AM, Raymond Feng [EMAIL PROTECTED] wrote:


Hi,

Please review and vote on the 1.0.1-incubating release artifacts of
Tuscany
SCA for Java.

The RC5 contains a few fixes to issues discovered in RC4. Thank you for
reporting and fixing the issues promptly.

SVN Tag:
http://svn.apache.org/repos/asf/incubator/tuscany/tags/java/sca/1.0.1-RC5/

Stage maven repo: 
http://people.apache.org/~rfeng/tuscany/maven/http://people.apache.org/%7Erfeng/tuscany/maven/


RAT report:
http://people.apache.org/~rfeng/tuscany/1.0.1-RC5/1.0.1-RC5.rat.txthttp://people.apache.org/%7Erfeng/tuscany/1.0.1-RC5/1.0.1-RC5.rat.txt

Distros (zip/gz/asc/md5) :
http://people.apache.org/~rfeng/tuscany/1.0.1-RC5/http://people.apache.org/%7Erfeng/tuscany/1.0.1-RC5/

The 1.0.1 release is a bit bumpy with a few RCs in a row. Thank you for
your
support and hopefully this will be the last one.

Here is my +1.

Thanks,
Raymond


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ant Build Distribution System

2007-11-11 Thread Luciano Resende
If you could post a sample distro in your p.a.o account, it would make
it easier for others to review, at least for those that does not have
all the native environment setup.

On Nov 11, 2007 9:19 PM, Adriano Crestani [EMAIL PROTECTED] wrote:
 Hi,

 On revision 594022 I've added new targets: distribution and 
 pack.distribution on DAS ant build system. distribution target creates a
 distribution file structure for both, src and bin distribution. 
 pack.distribution target packs the generated distribution files and
 generates the .md5 and .asc( still working on it ) files.

 I've also updated the ANT_README_AND_INSTALL file with the description of
 these new targets.


 I'd like someone else could revise the distribution structure that these new
 targets are creating and give some suggestions. Then, after everything is ok
 with these new targets, we could reapply it to SDO and SCA projects.

 Thoughts? Suggestions?

 Adriano Crestani




-- 
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[VOTE] Please approve Tuscany SCA Java 1.0.1-incubating release

2007-11-11 Thread Raymond Feng

Hi,

The Tuscany project had a vote on tuscany-dev@ws.apache.org to publish the 
Tuscany SCA Java 1.0.1-incubating release. The vote thread on tuscany-dev 
has 7 +1s and the archive can be found at:


http://mail-archives.apache.org/mod_mbox/ws-tuscany-dev/200711.mbox/[EMAIL 
PROTECTED]
http://mail-archives.apache.org/mod_mbox/ws-tuscany-dev/200711.mbox/thread?2

The release is mostly a bug-fix release on top of the 1.0-incubating 
release. You can see a list of changes at:

https://svn.apache.org/repos/asf/incubator/tuscany/tags/java/sca/1.0.1-RC5/distribution/src/main/release/CHANGES

The signed binary and source distributions, the RAT reports, and the Maven 
staging repository are listed at the following links.


SVN Tag: 
http://svn.apache.org/repos/asf/incubator/tuscany/tags/java/sca/1.0.1-RC5/


Stage maven repo: http://people.apache.org/~rfeng/tuscany/maven/

RAT report: 
http://people.apache.org/~rfeng/tuscany/1.0.1-RC5/1.0.1-RC5.rat.txt


Binary and source distros (zip/gz/asc/md5) : 
http://people.apache.org/~rfeng/tuscany/1.0.1-RC5/


Please review and approve the release. This vote will remain open for at 
least 72 hours.


Thanks,
Raymond


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tuscany SCA article: http://java.sys-con.com/read/458183.htm

2007-11-11 Thread Raymond Feng

Hi,

We just published an article on Java Developer's Journal and SOA World 
Magazine: http://java.sys-con.com/read/458183.htm.


Thanks,
Raymond 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [DAS] DAS samples

2007-11-11 Thread Amita Vadhavkar
What are the modifications you did for this in company webapp? Did you
see that the DS.getConnection(id, pwd) signature is being used
by DAS during this case?

Regards,
Amita

On Nov 9, 2007 11:40 AM, Luciano Resende [EMAIL PROTECTED] wrote:
 Hi Amita

I replied to this other thread [1] with some questions. But just
 FYI, I was able to run a slightingly modified version of
 company-webapp using a secured derby database in TC by specifying the
 username/password on the datasource definition.

Resource name=jdbc/dastest
  type=javax.sql.DataSource
  auth=Container
  description=Derby database for DAS Samples
  maxActive=100 maxIdle=30
  maxWait=1 username=dastest password=dastest

 driverClassName=org.apache.derby.jdbc.EmbeddedDriver
   
 url=jdbc:derby:D:/Opensource-Servers/apache-tomcat-5.5.20/Databases/dastest;create=true/


 [1] http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg25244.html


 On Nov 6, 2007 8:33 PM, Amita Vadhavkar [EMAIL PROTECTED] wrote:
  1 readmes commit - I will wait and make it along with any other
  changes in JIRA-1698 as we are still deciding which sample to use to
  demo the feature of
  JIRA-1698
 
  2 There are 3 test cases in ConnectionTests, please see if you find
  some other cases that can be included.
 
  3 Using jboss jars - as these were available on mvn repo, I missed
  the point of license, if license is the issue, then these can not be
  used.
 
   TC has
  (default)BasicDataSource - which does not support getConnection(id, pwd)
  and
  PerUserPoolDataSource, SharedPoolDataSource - which support
  getConnection(id, pwd)
 
  When trying to configure PerUserPoolDataSource, SharedPoolDataSource
  with TC 6.0.14, was getting different errors, will see if can get this
  working.
 
  I am not doing any commits related to this JIRA, till 3 or some other
  sample is formed, so all changes will go together.
 
  Regards,
  Amita
 
 
  On Nov 6, 2007 11:06 PM, Luciano Resende [EMAIL PROTECTED] wrote:
   Comments inline :
  
   On 11/6/07, Amita Vadhavkar [EMAIL PROTECTED] wrote:
changes done -
   
1) cleaned readme files using eclipse IDE html editor - samples, 
dbconfig
   Good, Thanks, please committ this, you don't have to wait anymore :)
  
2) replaced MySQL with Derby
   Just want to make sure you have all the functionality you need in Derby...
  
3) replaced sun provided JNDI jars with jboss jar - because - these are
available in mvn repos and only 3 are required in the build path
(jboss-common 3.2.3, jnp-client 4.0.2 and jnpserver 3.2.3  - total 350 
KB)
  
   I downloaded the jars, but couldn't find any license files there.
   Also, JBOSS stuff tend to be LGPL and that is not ASF Friendly, so
   could you please point me to the proper license for these files ?
  
  
4) added more test cases in ConnectionTests.java and removed 
sample-dataSource
5) patch attached to JIRA-1698
   
Please see if there are any problems in the above, else I will commit 
the
patch.
The bin size increase due to jboss jars is 350 KB and so it may be OK to
make it
as test cases instead of sample.
   
  
  
   Well, in summary, it's lots of dependencies issues to demonstrate we
   now support authentication when retrieving the datasource
   connection... and based on the dependencies being dragged to DAS
   distro... I'm now inclined to have just a sample, or simpler, just
   document in the User Guide.
  
   BTW, I'll play with this over the weekend and try to make this working
   in TC with Companyweb... Maybe this is a simpler solution :)
  
  
Regards,
Amita
   
On 11/5/07, Amita Vadhavkar [EMAIL PROTECTED] wrote:



 On 11/5/07, Luciano Resende [EMAIL PROTECTED] wrote:
 
  I was trying to run the new DAS sample (dataSource) and I looks like
  it requires MySQL in order to run the sample, this might not be the
  best default configuration to require, as it requires lots of steps 
  in
  order to just try the sample ( e.g install MySQL), and it also 
  makes it
  difficult to test the sample during build. I'd like to suggest two
  things for our DAS Sample applications :
 
  - Use Derby as the default database in a sample application


 Agree, done changes for this

 - Have a simple unit test to quickly check if the sample is working
  (use htmlUnit for webapp)


 The jira has test cases for case which does not require external JNDI.
 Which JNDI jar is available
 as part of maven repo? I could not spot one and used sun's jars. As 
 these
 can not get downloaded
 thru mvn build and need to be placed manually in the classpath, used
 sample instead of junit for
 testcase which requires JNDI. But if there is a maven repo based jar
 providing 

Re: [DAS] Use datasource.getConnection(user, password) and datasource.getConnection() both

2007-11-11 Thread Amita Vadhavkar
In a multi user system, it is possible that the data source is
deployed using one id/pwd and
connections are obtained by different users (different user id/pwd)
using the same deployed data source.

See -
http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/ad/cjvjcsup.htm
Use the second form if you need to specify a user ID and password for
the connection that are different from the ones that were specified
when the DataSource was deployed.

http://download-west.oracle.com/docs/cd/B14099_19/web.1012/b14012/datasrc.htm#i1085287
This user name and password overrides the user name and password that
are defined in the data source definition.

This is the reason why it will be useful to support this second form
in RDB DAS so as to support full scaled systems

Regards,
Amita

On Nov 9, 2007 11:31 AM, Luciano Resende [EMAIL PROTECTED] wrote:
 Hi Amita

I finally found some time to spend on this issue, and had a
 question in mind. When using datasource,  what's the difference from
 the username and password that can be defined on the datasource
 itself, and the one a user set on the connection property inside the
 das config ?

   In order to test this, here is what I did :
- created a secured derby database (requires username/password)
- configureda datasource in TC, specifying the username, password

Resource name=jdbc/dastest
  type=javax.sql.DataSource
  auth=Container
  description=Derby database for DAS Samples
  maxActive=100 maxIdle=30
  maxWait=1 username=dastest password=dastest

 driverClassName=org.apache.derby.jdbc.EmbeddedDriver
   
 url=jdbc:derby:D:/Opensource-Servers/apache-tomcat-5.5.20/Databases/dastest;create=true/

- use a das config pointing to a datasource, without specifying
 connectionProperties.

 And this worked fine for me, using a slightly modified company-webapp
 sample. I also remember trying very similar datasource with MySQL and
 having no problems...

 In witch case we would need to use the username/password from the das
 config, instead of the one configured with the datasource ?


 On Oct 30, 2007 12:40 AM, Amita Vadhavkar [EMAIL PROTECTED] wrote:
  The requirement was a bit hidden inside below mail thread
  http://www.mail-archive.com/tuscany-dev@ws.apache.org/msg23299.html
 
  Below is the JIRA issue for it.
  https://issues.apache.org/jira/browse/TUSCANY-1698
 
  checked so far that tomcat BasicDataSource.getConnection() does not support
  passing in params for username and password.
  This may be how the current code that uses getConnection(no param) worked so
  far.
 
  But other app servers like WebSphere, or if users of Tomcat opt to use a
  different connection pool than the one
  supplied by Tomcat, may need getConnection(userName, password). So to keep
  things generic, DAS can use userName/password
  when available in config. In case of exception upon usage or if
  userName/password not present in Config, DAS can
  attempt getConnection(no params) - the way it is doing today.
 
  We can use the current config as is without any changes like below -
 
 xsd:complexType name=ConnectionInfo
 xsd:sequence
   xsd:element maxOccurs=1 minOccurs=0
  name=ConnectionProperties type=config:ConnectionProperties/
 /xsd:sequence
 xsd:attribute name=dataSource type=xsd:string/
 xsd:attribute name=managedtx type=xsd:boolean default=true/
  /xsd:complexType
 
  xsd:complexType name=ConnectionProperties
xsd:attribute name=driverClass type=xsd:string/
xsd:attribute name=databaseURL type=xsd:string/
xsd:attribute name=loginTimeout type=xsd:int default=0/
xsd:attribute name=userName type=xsd:string default=/
xsd:attribute name=password type=xsd:string default=/
  /xsd:complexType
 
  When ConnectionProperties contain userName, password they will be used to
  obtain connection (DriverManaged based or DS based).
  e.g.
  DataSource -
  ConnectionInfo dataSource=java:comp/env/jdbc/ajaxdastest
 ConnectionProperties
userName=dastest
password=dastest
/
  /ConnectionInfo
 
  DriverManager -
  ConnectionInfo
  ConnectionProperties
  driverClass=com.mysql.jdbc.Driver
  databaseURL=jdbc:mysql://localhost/dastest
  userName=dastest
  password=dastest
  loginTimeout=60/
  /ConnectionInfo
 
  Suggestions?
 
  Regards,
  Amita
 



 --
 Luciano Resende
 Apache Tuscany Committer
 http://people.apache.org/~lresende
 http://lresende.blogspot.com/

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For