-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit requires a manual recompile of intrace-agent.jar to get t…
…his change: mchr3k/org.intrace#31
- Loading branch information
1 parent
7d1444c
commit 838adcd
Showing
30 changed files
with
718 additions
and
61 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
mvn -Dtest=TestRequestEventCollection test | ||
#mvn -Dtest=TestRequestEventCollection test | ||
mvn -Dtest=org.intrace.client.test.level2.connection.InterfaceTracingTest test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
example.webapp/src/main/java/example/webapp/servlet/HelloExecuteQuery.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package example.webapp.servlet; | ||
import java.io.*; | ||
import java.sql.Timestamp; | ||
|
||
import javax.servlet.*; | ||
import javax.servlet.http.*; | ||
|
||
import org.springframework.web.context.WebApplicationContext; | ||
import org.springframework.web.context.support.WebApplicationContextUtils; | ||
|
||
import example.webapp.dao.interfaces.EventDao; | ||
import example.webapp.entity.Event; | ||
import example.webapp.entity.Location; | ||
|
||
public class HelloExecuteQuery extends HttpServlet { | ||
|
||
public void doGet(HttpServletRequest request, HttpServletResponse response) | ||
throws IOException, ServletException | ||
{ | ||
//ServletContext sc = (ServletContext) WebApplicationContextUtils.getWebApplicationContext(); | ||
WebApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(this.getServletContext()); | ||
|
||
EventDao eventDao = (EventDao) ctx.getBean("eventDao"); | ||
|
||
int count = eventDao.countAll(); | ||
|
||
response.setContentType("text/html"); | ||
PrintWriter out = response.getWriter(); | ||
out.println("<html>"); | ||
out.println("<head>"); | ||
out.println("<title>Hello World!</title>"); | ||
out.println("</head>"); | ||
out.println("<body>"); | ||
out.println("<h1>Hello World!</h1>"); | ||
out.println("Event count [" + count + "]"); | ||
out.println("</body>"); | ||
out.println("</html>"); | ||
|
||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package example; | ||
|
||
public class MyFirstTestImplementor implements MyTestInterface { | ||
|
||
@Override | ||
public void foo() { | ||
// TODO Auto-generated method stub | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package example; | ||
|
||
public interface MyTestInterface { | ||
|
||
void foo(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.