2015年5月19日 星期二

Reseed in MSSQL

 

DBCC CHECKIDENT ("pls_respondentdetail_extsat", RESEED, 258);

2015年5月11日 星期一

Spring Boot Introduction

 

http://www.ibm.com/developerworks/cn/java/j-lo-spring-boot/

Execute Liquibase generateChangeLog command


cd C:\Users\Dean\.m2\repository\org\liquibase\liquibase-core\3.3.2
java -jar .\liquibase-core-3.3.2.jar --driver="com.mysql.jdbc.Driver"      --classpath="C:\Users\Dean\.m2\repository\mysql\mysql-connector-java\5.1.34\mysql-connector-java-5.1.34.jar" --changeLogFile="d:\tmp\db.changelog.xml" --url="jdbc:mysql://localhost:3306/knorrcampaign?useUnicode=true&characterEncoding=UTF-8"    --username="pollex" --password="pollex123" --diffTypes="tables, views, columns, indexs,foreignkeys, primarykeys, uniqueconstraints,data" generateChangeLog
execute update
liquibase --driver=org.apache.derby.jdbc.EmbeddedDriver \ 
 --classpath=derby.jar \ 
 --changeLogFile=database.changelog.xml\ 
 --url=jdbc:derby:brewery;create=true \ 
 --username= --password= \ 
 update


Use Jhipster

Add Jdbc properties into Maven profile Properties for the use of Liquibase (Refer to JTI pom.xml)

mvn -Pprod liquibase:diff

Angular Unit-testing

 

https://spring.io/understanding/javascript-promises

https://docs.angularjs.org/guide/unit-testing

ANGULARJS $Q DEFERRED 和 PROMISE

 

http://blog.begin.com.tw/?p=30

2015年2月13日 星期五

What is the java provider string for the microsoft tapi interface?

 

Experts Exchange > Programming > Prog Languages > Java > What is the java provider string for the microsoft tapi interface

What is the java provider string for the microsoft tapi interface?

Java Programming Language Question
Asked by: richardsimnett2005-06-25Solved by: RupeshB

Hello,
I'm writing a TAPI application, that just needs to interface the Microsoft TAPI interface, dial a number, and collect the connection status. I have most of the code written, but cannot for the life of me figure out how to bring the whole thing together for testing, because I cant seem to find any documentation on the provider string for the microsoft tapi interface.
Here is a snippet of code from my program. Can someone please tell me what the correct provider string is? Correct Answer is worth 500 points.
//initialize the JTAPI Core
      //init the provider
      Provider mProvider;
      try
      {
            mProvider=Provider.createProvider("telephony:connectionstring"); //ie. SUNWxtl:/aleka.eng:400/isdn/isdn0
      }
      catch(Exception e)
      {
      }
Thanks,
RIkc

ID: 21470963
Topic
Java Programming Language
Comments
8

- Collapse question

Verified Answer

by:RupeshBPosted on 2005-06-26 at 04:47:22ID: 14303279

please do the following steps
1) make sure that the os is microsoft
2) download the mstapi.zip file from the xtapi site http://xtapi.sourceforge.net/
3) unzip the file and copy the xtapi.dll file to c:\windows\system32
4) copy the mstapi.jar file to you class path may be jre/lib.ext
5) now the code goes like this
JtapiPeer peer = JtapiPeerFactory.getJtapiPeer("net.xtapi.XJtapiPeer");
/*
Provider provider =peer.getProvider("")
may also work
*/
Provider provider=peer.getProvider("MSTAPI");

Unlimited Free Access
for 30 Days

Expert Comments (8)

Expert Comment

CEHJ2005-06-26 at 02:33:20ID: 14303101

Firstly, are you certain you've *got* a provider?

Assisted Answer

CEHJ2005-06-26 at 03:03:08ID: 14303150

Secondly, if i were forced to make a guess, i'd say that Microsoft TAPI is not compatible with JTapi. This on the other hand could be of use:
http://xtapi.sourceforge.net/

Verified Answer

RupeshB2005-06-26 at 04:47:22ID: 14303279

please do the following steps
1) make sure that the os is microsoft
2) download the mstapi.zip file from the xtapi site http://xtapi.sourceforge.net/
3) unzip the file and copy the xtapi.dll file to c:\windows\system32
4) copy the mstapi.jar file to you class path may be jre/lib.ext
5) now the code goes like this
JtapiPeer peer = JtapiPeerFactory.getJtapiPeer("net.xtapi.XJtapiPeer");
/*
Provider provider =peer.getProvider("")
may also work
*/
Provider provider=peer.getProvider("MSTAPI");

Expert Comment

CEHJ2005-06-26 at 05:13:07ID: 14303339

>> please do the following steps
This is interesting. My guess as to what is going on here is as follows:
Microsoft TAPI is not compatible with JTapi. The former exposes a COM interface, which is bridged by xtapi.dll so that the latter can access the services of the former

Author Comment

richardsimnett2005-06-26 at 12:36:53ID: 14304686

CEHJ,
Yes Im sure there is a provider, all installs of windows has its own TAPI interface. In this case (for testing purposes) I simply want to interact with a voice/fax modem on the pc. I need to be able to do the following: make a call, and using the Call Control Specification determine the state of teh connection. ie... Connected:Busy, Connected: Wrong #, Connected:Active. Once I have the connection state of the call the program simply disconnects, and moves on to the next number. The program is simply a phone # verifier.
Ideally, This app (on a real telephony system) will control multiple telephone lines in this matter. But for my proofing all I need to do is make it work for one instance.
Thanks,
Rick

Expert Comment

CEHJ2005-06-26 at 12:57:34ID: 14304748

>>Yes Im sure there is a provider, all installs of windows has its own TAPI interface
Yes, you have a Windows provider, but probably not a Java one. My interpretation of the above is that xtapi provides a Java adapter to that Windows provider

Author Comment

richardsimnett2005-06-26 at 13:00:48ID: 14304757

CEHJ,
Yeah thats what I got from it too. Ill know tomorrow when I start toying with the xtapi... Im currently using jtapi 1.3, so I've got to swap it all over.

Expert Comment

objects2005-06-27 at 02:33:15ID: 14306815

sounds like it would be worth you having a look at:
http://gjtapi.sourceforge.net/

Related Questions

  1. How resolve a problem with JasperReports
  2. how to pass checkbox values to action class when user click multiple checkboxes in struts
  3. Samsung Kies Air says I need Java to download multiple files but I already have Java 7 update 51
  4. Is there a way to check if a file exists with javascript or jquery?
  5. Source code for a simple java programming calculator.

See More Java Programming Language Solutions

Related Articles

  1. Profiling Java 8 with Java Flight Recorder and Java Mission Control in Eclipse
  2. String concatenation in Java: syntactic sugar versus efficiency
  3. Customizing line separator behavior in Java
  4. Why trying to improve efficiency by reading Java bytecode might not be the best idea
  5. Improving the little things in Java code

See More Java Programming Language Articles

201501-LO-Qu-027

Related Questions

  1. How resolve a problem with JasperReports
  2. how to pass checkbox values to action class when user click multiple checkboxes in struts
  3. Samsung Kies Air says I need Java to download multiple files but I already have Java 7 update 51
  4. Is there a way to check if a file exists with javascript or jquery?
  5. Source code for a simple java programming calculator.
  6. How must the POST request in Java'a HttpURLConnection object be formulated in order to successf…
  7. handshake failure in Https Connection

See More Java Programming Language Solutions

電腦電話整合(CTI)技術與應用

 

http://www.hope.com.tw/DispArt-tw.asp?O=HJK61ATG46IAR-STDS

 

Open source CTI&PBX  product

https://code.google.com/p/asterisk-cti/

http://www.asterisk.org/

http://www.digium.com/en/company