How do I run a project in eclipse with different jboss-ejb-client.propertiesHow can you speed up Eclipse?How do I change Eclipse to use spaces instead of tabs?How can I show line numbers in Eclipse?'Must Override a Superclass Method' Errors after importing a project into EclipseDoes a “Find in project…” feature exist in Eclipse IDE?Eclipse + JBoss Tools won't run webapp to configured JBoss ASproject running from eclipse(Juno) Jboss but not from standalone Jboss 6 ASEclipse: JBoss + Maven MANIFEST.MF generation by project publishingHow to add JBoss Server in Eclipse?How can I configure HA on initial lookup to communicate to two different EJBs on two different clusters?

Why didn't Caesar move against Sextus Pompey immediately after Munda?

Fast method to cut/shred glue stick into small pieces

What does 5d4 x 10 gp mean?

Why did the Apple //e make a hideous noise if you inserted the disk upside down?

The Lucas argument vs the theorem-provers -- who wins and why?

Why should I allow multiple IPs on a website for a single session?

Why were the first airplanes "backwards"?

What verb for taking advantage fits in "I don't want to ________ on the friendship"?

Why isn't UDP with reliability (implemented at Application layer) a substitute of TCP?

Robots in a spaceship

I agreed to cancel a long-planned vacation (with travel costs) due to project deadlines, but now the timeline has all changed again

Can I take Amul cottage cheese from India to Netherlands?

Have any large aeroplanes been landed — safely and without damage — in locations that they could not be flown away from?

Indentation of First Paragraphs

Why are examinees often not allowed to leave during the start and end of an exam?

Tikz, loop not appearing

Is leaving out prefixes like "rauf", "rüber", "rein" when describing movement considered a big mistake in spoken German?

Is it theoretically possible to hack printer using scanner tray?

In Kyrie Eleison, what does "derramo aos teus pes minha vida" mean?

Why would Dementors torture a Death Eater if they are loyal to Voldemort?

The alcoholic village festival

Why doesn't SpaceX land boosters in Africa?

Can you twin the Light cantrip?

Why was Pan Am Flight 103 flying over Lockerbie?



How do I run a project in eclipse with different jboss-ejb-client.properties


How can you speed up Eclipse?How do I change Eclipse to use spaces instead of tabs?How can I show line numbers in Eclipse?'Must Override a Superclass Method' Errors after importing a project into EclipseDoes a “Find in project…” feature exist in Eclipse IDE?Eclipse + JBoss Tools won't run webapp to configured JBoss ASproject running from eclipse(Juno) Jboss but not from standalone Jboss 6 ASEclipse: JBoss + Maven MANIFEST.MF generation by project publishingHow to add JBoss Server in Eclipse?How can I configure HA on initial lookup to communicate to two different EJBs on two different clusters?













0















I have EJBs deployed on several different servers, for different environments. I have many projects that use these EJBs. I usually just run my projects against the DEV server EJBs, but sometimes I need to run against the TEST or PROD environment EJBs. This necessitates having to comment out all of the DEV nodes in my jboss-client-ejb.properties file and uncomment all of the TEST nodes. But then if I forget to change them back, I may mess up some data if I run it later. What I would like to do is create a different runtime configuration for each environment, and have each runtime config use a different version of the jboss-client-ejb.properties. Is there a way to do this? If so how? I have looked at all of properties of a run configuration, and don't see anything helpful.










share|improve this question


























    0















    I have EJBs deployed on several different servers, for different environments. I have many projects that use these EJBs. I usually just run my projects against the DEV server EJBs, but sometimes I need to run against the TEST or PROD environment EJBs. This necessitates having to comment out all of the DEV nodes in my jboss-client-ejb.properties file and uncomment all of the TEST nodes. But then if I forget to change them back, I may mess up some data if I run it later. What I would like to do is create a different runtime configuration for each environment, and have each runtime config use a different version of the jboss-client-ejb.properties. Is there a way to do this? If so how? I have looked at all of properties of a run configuration, and don't see anything helpful.










    share|improve this question
























      0












      0








      0








      I have EJBs deployed on several different servers, for different environments. I have many projects that use these EJBs. I usually just run my projects against the DEV server EJBs, but sometimes I need to run against the TEST or PROD environment EJBs. This necessitates having to comment out all of the DEV nodes in my jboss-client-ejb.properties file and uncomment all of the TEST nodes. But then if I forget to change them back, I may mess up some data if I run it later. What I would like to do is create a different runtime configuration for each environment, and have each runtime config use a different version of the jboss-client-ejb.properties. Is there a way to do this? If so how? I have looked at all of properties of a run configuration, and don't see anything helpful.










      share|improve this question














      I have EJBs deployed on several different servers, for different environments. I have many projects that use these EJBs. I usually just run my projects against the DEV server EJBs, but sometimes I need to run against the TEST or PROD environment EJBs. This necessitates having to comment out all of the DEV nodes in my jboss-client-ejb.properties file and uncomment all of the TEST nodes. But then if I forget to change them back, I may mess up some data if I run it later. What I would like to do is create a different runtime configuration for each environment, and have each runtime config use a different version of the jboss-client-ejb.properties. Is there a way to do this? If so how? I have looked at all of properties of a run configuration, and don't see anything helpful.







      eclipse jboss






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 25 at 15:35









      bcr666bcr666

      1,0815 silver badges19 bronze badges




      1,0815 silver badges19 bronze badges




















          1 Answer
          1






          active

          oldest

          votes


















          2














          In eclipse preferences search for string variable substitution. Here create variables that point to multiple config files for each of your environments. Then create multiple run configurations and for each one (like dev or prod) add a program argument that points to your string variable defined in your preferences like this -DmyconfigFile=$MyDevPropertiesFilePath, or you could hard code the config path and have multiple runtime configurations that use different config files. Key point here is create multiple runtime launch configurations for each environment and add the properties for each environment that point to the config file respective to each environment. This way you can easily select the launch menu and decide to run "dev" "prod" or whatever you name your multiple configurations. Trying to do this with one runtime configuration will cause pain as you say, because it is easy to forget to revert or change the config file you want to to use. Hope that helps. Also if you create a new workspace you can export your runtime configurations using the export wizard which is also helpful for passing on to other developers or putting in source control.



          P.S Looking more at your question you wan to pass in the config file path as a program argument, you are correct there are no specific options for setting this file path. Using program arguments with multiple launch configurations.






          share|improve this answer























          • Unfortunately, this didn't quite work for me, as I don't specify the name of the file, it has to be the same. I don't even load it in the program, the JBoss client jars do that. The only thing I'm supposed to do is put the jboss-client-ejb.properties on the classpath. So I figured that I can create alternate "resources" folders and put those in the run configuration.

            – bcr666
            Mar 25 at 23:51











          • Okay, so just to confirm you are all good now?

            – Duncan Krebs
            Mar 29 at 18:26










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55341369%2fhow-do-i-run-a-project-in-eclipse-with-different-jboss-ejb-client-properties%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          In eclipse preferences search for string variable substitution. Here create variables that point to multiple config files for each of your environments. Then create multiple run configurations and for each one (like dev or prod) add a program argument that points to your string variable defined in your preferences like this -DmyconfigFile=$MyDevPropertiesFilePath, or you could hard code the config path and have multiple runtime configurations that use different config files. Key point here is create multiple runtime launch configurations for each environment and add the properties for each environment that point to the config file respective to each environment. This way you can easily select the launch menu and decide to run "dev" "prod" or whatever you name your multiple configurations. Trying to do this with one runtime configuration will cause pain as you say, because it is easy to forget to revert or change the config file you want to to use. Hope that helps. Also if you create a new workspace you can export your runtime configurations using the export wizard which is also helpful for passing on to other developers or putting in source control.



          P.S Looking more at your question you wan to pass in the config file path as a program argument, you are correct there are no specific options for setting this file path. Using program arguments with multiple launch configurations.






          share|improve this answer























          • Unfortunately, this didn't quite work for me, as I don't specify the name of the file, it has to be the same. I don't even load it in the program, the JBoss client jars do that. The only thing I'm supposed to do is put the jboss-client-ejb.properties on the classpath. So I figured that I can create alternate "resources" folders and put those in the run configuration.

            – bcr666
            Mar 25 at 23:51











          • Okay, so just to confirm you are all good now?

            – Duncan Krebs
            Mar 29 at 18:26















          2














          In eclipse preferences search for string variable substitution. Here create variables that point to multiple config files for each of your environments. Then create multiple run configurations and for each one (like dev or prod) add a program argument that points to your string variable defined in your preferences like this -DmyconfigFile=$MyDevPropertiesFilePath, or you could hard code the config path and have multiple runtime configurations that use different config files. Key point here is create multiple runtime launch configurations for each environment and add the properties for each environment that point to the config file respective to each environment. This way you can easily select the launch menu and decide to run "dev" "prod" or whatever you name your multiple configurations. Trying to do this with one runtime configuration will cause pain as you say, because it is easy to forget to revert or change the config file you want to to use. Hope that helps. Also if you create a new workspace you can export your runtime configurations using the export wizard which is also helpful for passing on to other developers or putting in source control.



          P.S Looking more at your question you wan to pass in the config file path as a program argument, you are correct there are no specific options for setting this file path. Using program arguments with multiple launch configurations.






          share|improve this answer























          • Unfortunately, this didn't quite work for me, as I don't specify the name of the file, it has to be the same. I don't even load it in the program, the JBoss client jars do that. The only thing I'm supposed to do is put the jboss-client-ejb.properties on the classpath. So I figured that I can create alternate "resources" folders and put those in the run configuration.

            – bcr666
            Mar 25 at 23:51











          • Okay, so just to confirm you are all good now?

            – Duncan Krebs
            Mar 29 at 18:26













          2












          2








          2







          In eclipse preferences search for string variable substitution. Here create variables that point to multiple config files for each of your environments. Then create multiple run configurations and for each one (like dev or prod) add a program argument that points to your string variable defined in your preferences like this -DmyconfigFile=$MyDevPropertiesFilePath, or you could hard code the config path and have multiple runtime configurations that use different config files. Key point here is create multiple runtime launch configurations for each environment and add the properties for each environment that point to the config file respective to each environment. This way you can easily select the launch menu and decide to run "dev" "prod" or whatever you name your multiple configurations. Trying to do this with one runtime configuration will cause pain as you say, because it is easy to forget to revert or change the config file you want to to use. Hope that helps. Also if you create a new workspace you can export your runtime configurations using the export wizard which is also helpful for passing on to other developers or putting in source control.



          P.S Looking more at your question you wan to pass in the config file path as a program argument, you are correct there are no specific options for setting this file path. Using program arguments with multiple launch configurations.






          share|improve this answer













          In eclipse preferences search for string variable substitution. Here create variables that point to multiple config files for each of your environments. Then create multiple run configurations and for each one (like dev or prod) add a program argument that points to your string variable defined in your preferences like this -DmyconfigFile=$MyDevPropertiesFilePath, or you could hard code the config path and have multiple runtime configurations that use different config files. Key point here is create multiple runtime launch configurations for each environment and add the properties for each environment that point to the config file respective to each environment. This way you can easily select the launch menu and decide to run "dev" "prod" or whatever you name your multiple configurations. Trying to do this with one runtime configuration will cause pain as you say, because it is easy to forget to revert or change the config file you want to to use. Hope that helps. Also if you create a new workspace you can export your runtime configurations using the export wizard which is also helpful for passing on to other developers or putting in source control.



          P.S Looking more at your question you wan to pass in the config file path as a program argument, you are correct there are no specific options for setting this file path. Using program arguments with multiple launch configurations.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 25 at 19:30









          Duncan KrebsDuncan Krebs

          2,1281 gold badge18 silver badges39 bronze badges




          2,1281 gold badge18 silver badges39 bronze badges












          • Unfortunately, this didn't quite work for me, as I don't specify the name of the file, it has to be the same. I don't even load it in the program, the JBoss client jars do that. The only thing I'm supposed to do is put the jboss-client-ejb.properties on the classpath. So I figured that I can create alternate "resources" folders and put those in the run configuration.

            – bcr666
            Mar 25 at 23:51











          • Okay, so just to confirm you are all good now?

            – Duncan Krebs
            Mar 29 at 18:26

















          • Unfortunately, this didn't quite work for me, as I don't specify the name of the file, it has to be the same. I don't even load it in the program, the JBoss client jars do that. The only thing I'm supposed to do is put the jboss-client-ejb.properties on the classpath. So I figured that I can create alternate "resources" folders and put those in the run configuration.

            – bcr666
            Mar 25 at 23:51











          • Okay, so just to confirm you are all good now?

            – Duncan Krebs
            Mar 29 at 18:26
















          Unfortunately, this didn't quite work for me, as I don't specify the name of the file, it has to be the same. I don't even load it in the program, the JBoss client jars do that. The only thing I'm supposed to do is put the jboss-client-ejb.properties on the classpath. So I figured that I can create alternate "resources" folders and put those in the run configuration.

          – bcr666
          Mar 25 at 23:51





          Unfortunately, this didn't quite work for me, as I don't specify the name of the file, it has to be the same. I don't even load it in the program, the JBoss client jars do that. The only thing I'm supposed to do is put the jboss-client-ejb.properties on the classpath. So I figured that I can create alternate "resources" folders and put those in the run configuration.

          – bcr666
          Mar 25 at 23:51













          Okay, so just to confirm you are all good now?

          – Duncan Krebs
          Mar 29 at 18:26





          Okay, so just to confirm you are all good now?

          – Duncan Krebs
          Mar 29 at 18:26






          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55341369%2fhow-do-i-run-a-project-in-eclipse-with-different-jboss-ejb-client-properties%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

          155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해