• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is shared reference same as adding jar file in the build path.  RSS feed

 
forums UseR
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks

Srinivas

P.S Feel free to answer in the subject line as well
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
srinivas chary wrote:Thanks

Srinivas

P.S Feel free to answer in the subject line as well


Can you give us some context on what you mean by "shared reference"?

Henry
 
forums UseR
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Henry Wong wrote:
Can you give us some context on what you mean by "shared reference"?

Sure,

I am working on migrating an existing web service that was created using Hibernate to implement data access from post gres database (and this web service uses 2 different projects as shared reference)

So in my new web service, I want to use those 2 shared referenced projects as simply jars that I want to add to the build path.

Will this work ?

Thanks for your response!

srinivas
 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
srinivas chary wrote:
So in my new web service, I want to use those 2 shared referenced projects as simply jars that I want to add to the build path.


Well... you did use "shared referenced" in a sentence. Unfortunately, I still don't know what you mean by it. Sorry.

Henry
 
forums UseR
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Henry Wong wrote:
Well... you did use "shared referenced" in a sentence. Unfortunately, I still don't know what you mean by it

Its ok..,

1. The existing web service has some projects and these projects show as "src.shared.presistence" and "src.shared.business".

The web service makes use of methods implemented in these 2 projects. I don't know how these 2 are showing as "src.shared.<name>"

2. I am working on some enhancements. I am supposed to create a new web service. I would like to add the jar files instead of references.

Will I be able to access the implementation in the 2 projects if I am just adding the jar files (created out of the 2 projects) in build path ?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're compiling the projects, and including the resulting jar files in the classpath of whatever else you're compiling and/or running, of course (as long as any other dependencies are satisfied). What happened when you tried it?
 
forums UseR
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It worked.

I added jar files instead of referenced projects.

Thanks for the response.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!