fox | 4 Jan 03:23

RE: Regarding filters and listeners serversideequinoxwith servlet bridge.

Hi Shashi:
Here is my piece of code.
 
public class Activator implements BundleActivator {
private ServiceTracker httpServiceTracker;
String jspContext = "/jsps";
String jspFolder = "/web_files"; //the jsp folder your page in
public void start(BundleContext context) throws Exception {
httpServiceTracker = new HttpServiceTracker(context);
httpServiceTracker.open();
}
public void stop(BundleContext context) throws Exception {
httpServiceTracker.open();
}
private class HttpServiceTracker extends ServiceTracker {
public HttpServiceTracker(BundleContext context) {
super(context, HttpService.class.getName(), null);
}
public Object addingService(ServiceReference reference) {
final HttpService httpService = (HttpService) context
.getService(reference);
try {
HttpContext commonContext = new BundleEntryHttpContext(context
.getBundle(), jspFolder);
httpService.registerResources(jspContext, "/", commonContext);
Servlet adaptedJspServlet = new ContextPathServletAdaptor(
new JspServlet(context.getBundle(), jspFolder),
jspContext);
httpService.registerServlet(jspContext + "/*.jsp",
adaptedJspServlet, null, commonContext);
} catch (Exception e) {
e.printStackTrace();
}
return httpService;
}
public void removedService(ServiceReference reference, Object service) {
final HttpService httpService = (HttpService) service;
httpService.unregister(jspContext);
httpService.unregister(jspContext + "/*.jsp");
super.removedService(reference, service);
}
}
}
 
best regards.
2010-01-04
fox
发件人: Shashikant Kale
发送时间: 2009-12-22  17:26:24
收件人: Equinox development mailing list
抄送:
主题: RE: [equinox-dev] Regarding filters and listeners serversideequinoxwith servlet bridge.

Thanks much Fox.

 

Do you have any example showing how to use the helper?

 

Thanks for your help,

Shashi

 

From: equinox-dev-bounces <at> eclipse.org [mailto:equinox-dev-bounces <at> eclipse.org] On Behalf Of fox
Sent: Tuesday, December 22, 2009 2:52 PM
To: Equinox development mailing list
Subject: Re: [equinox-dev] Regarding filters and listeners server sideequinoxwith servlet bridge.

 

Hi Shashi:

    Here is the jar file of org.eclipse.equinox.http.helper_1.0.0.200801161414.jar that you want,please check it.

 

best regards.

 

 

2009-12-22

fox

发件人: Shashikant Kale

发送时间: 2009-12-22  17:10:15

收件人: equinox-dev <at> eclipse.org

抄送:

主题: [equinox-dev] Regarding filters and listeners server side equinoxwith servlet bridge.

Hello,

 

We have a project wherein we embed a servlet container within OSGi and run a web project. Now we need to extend this further and run within an application server. I am planning to use equinox servlet bridge for this. However we have a requirement to have filter and listener within the project. As per the OSGi http specs these are not yet supported.

 

I would like to know if there are any alternatives to achieve this. I am taking a look at https://bugs.eclipse.org/bugs/show_bug.cgi?id=128067 which talks about filter support in OSGi http service however am unsure of how to use it.

 

Also I took a look at the comment from Simon Kaegi for achieving this functionality in the bug above.

 

If you want to look at an approach that works currently to support many of the

Filter and Listener use-cases take a look in the

equinox-incubator/org.eclipse.equinox.http.helper project.”

 

However I am not able to get the org.eclipse.equinox.http.helper project anymore.

 

Could somebody please point to where I can find some more information regarding this.

 

Thanks in advance,

Shashi

Thomas Watson | 4 Jan 16:27
Picon
Favicon

Re: Accessing Equinox Shell From a Bundle

Hi Ali,

In 3.6 (Helios) we have added the ability to create a console session. (see bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=279562 for details). Your bundle can implement the org.eclipse.osgi.framework.console.ConsoleSession service to provide input and output streams for the console. There are a couple of examples (telnet and UI examples) attached to the bug report that show how it can be used.

Hope that helps.

Tom



Ali Naddaf ---12/28/2009 01:53:39 PM---Hello everyone.


From:

Ali Naddaf <ali.naddaf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

To:

Equinox development mailing list <equinox-dev <at> eclipse.org>

Date:

12/28/2009 01:53 PM

Subject:

[equinox-dev] Accessing Equinox Shell From a Bundle



Hello everyone.

I want to write a "remote shell" bundle to facilitate remote access to a
running Equinox framework via, say, a telnet mechanism. To avoid
duplicating the currently existing commands in the Equinox shell, I was
wondering if there is a way to access/execute the existing Equinox shell
commands from my bundle.

Many thanks
Ali
_______________________________________________
equinox-dev mailing list
equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org
https://dev.eclipse.org/mailman/listinfo/equinox-dev


Thomas Watson | 4 Jan 21:37
Picon
Favicon

Galileo SR2 End-Game Plan

Same as the Galileo SR1 release (3.5.1), the Equinox Galileo SR2 end game will follow the same end game plan as the equinox project. See http://www.eclipse.org/equinox/planning/freeze_plan_3.5.2.php

Tom


----- Forwarded by Thomas Watson/Austin/IBM on 01/04/2010 02:35 PM -----


From:

John Arthorne <John_Arthorne-G1DYhSM1WHTQT0dZR+AlfA@public.gmane.org>

To:

eclipse-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org

Date:

01/04/2010 10:00 AM

Subject:

[eclipse-dev] Galileo SR2 End-Game Plan




The end-game plan for Galileo SR2 is now available:

http://www.eclipse.org/eclipse/development/plans/freeze_plan_3_5_2.php

Note that the first release candidate build, SR1, is next week (January 13). After the RC2 build (January 20th), all further fixes will require PMC approval.

John_______________________________________________
eclipse-dev mailing list
eclipse-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipse-dev

Thomas Watson | 4 Jan 21:40
Picon
Favicon

Re: [p2-dev] Galileo SR2 End-Game Plan

Sorry for the confusion. "... the Equinox Galileo SR2 end game will follow the same end game plan as the equinox project." Here I meant to state that Equinox will follow the same end game plan as the ECLIPSE project.


Tom



Thomas Watson---01/04/2010 02:37:45 PM---Same as the Galileo SR1 release (3.5.1), the Equinox Galileo SR2 end game will follow the same end game plan as the equinox pro


From:

Thomas Watson/Austin/IBM <at> IBMUS

To:

equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org, p2-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org

Date:

01/04/2010 02:37 PM

Subject:

[p2-dev] Galileo SR2 End-Game Plan



Same as the Galileo SR1 release (3.5.1), the Equinox Galileo SR2 end game will follow the same end game plan as the equinox project. See http://www.eclipse.org/equinox/planning/freeze_plan_3.5.2.php

Tom


----- Forwarded by Thomas Watson/Austin/IBM on 01/04/2010 02:35 PM -----

From:

John Arthorne <John_Arthorne-G1DYhSM1WHTQT0dZR+AlfA@public.gmane.org>

To:

eclipse-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org

Date:

01/04/2010 10:00 AM

Subject:

[eclipse-dev] Galileo SR2 End-Game Plan




The end-game plan for Galileo SR2 is now available:

http://www.eclipse.org/eclipse/development/plans/freeze_plan_3_5_2.php

Note that the first release candidate build, SR1, is next week (January 13). After the RC2 build (January 20th), all further fixes will require PMC approval.

John_______________________________________________
eclipse-dev mailing list
eclipse-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/eclipse-dev
_______________________________________________
p2-dev mailing list
p2-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org
https://dev.eclipse.org/mailman/listinfo/p2-dev


Shashikant Kale | 5 Jan 07:02
Picon

RE: Regarding filters and listenersserversideequinoxwith servlet bridge.

Thanks fox! I will try this.

 

Regards,

Shashi

 

From: equinox-dev-bounces-j9T/66MeVpFAfugRpC6u6w@public.gmane.org [mailto:equinox-dev-bounces-j9T/66MeVpFAfugRpC6u6w@public.gmane.org] On Behalf Of fox
Sent: Monday, January 04, 2010 7:54 AM
To: Equinox development mailing list
Subject: RE: [equinox-dev] Regarding filters and listenersserversideequinoxwith servlet bridge.

 

Hi Shashi

Here is my piece of code.

 

public class Activator implements BundleActivator {

private ServiceTracker httpServiceTracker;

String jspContext = "/jsps";

String jspFolder = "/web_files"; //the jsp folder your page in

public void start(BundleContext context) throws Exception {

httpServiceTracker = new HttpServiceTracker(context);

httpServiceTracker.open();

}

public void stop(BundleContext context) throws Exception {

httpServiceTracker.open();

}

private class HttpServiceTracker extends ServiceTracker {

public HttpServiceTracker(BundleContext context) {

super(context, HttpService.class.getName(), null);

}

public Object addingService(ServiceReference reference) {

final HttpService httpService = (HttpService) context

.getService(reference);

try {

HttpContext commonContext = new BundleEntryHttpContext(context

.getBundle(), jspFolder);

httpService.registerResources(jspContext, "/", commonContext);

Servlet adaptedJspServlet = new ContextPathServletAdaptor(

new JspServlet(context.getBundle(), jspFolder),

jspContext);

httpService.registerServlet(jspContext + "/*.jsp",

adaptedJspServlet, null, commonContext);

} catch (Exception e) {

e.printStackTrace();

}

return httpService;

}

public void removedService(ServiceReference reference, Object service) {

final HttpService httpService = (HttpService) service;

httpService.unregister(jspContext);

httpService.unregister(jspContext + "/*.jsp");

super.removedService(reference, service);

}

}

}

 

best regards.

2010-01-04

fox

发件人: Shashikant Kale

发送时间: 2009-12-22  17:26:24

收件人: Equinox development mailing list

抄送:

主题: RE: [equinox-dev] Regarding filters and listeners serversideequinoxwith servlet bridge.

Thanks much Fox.

 

Do you have any example showing how to use the helper?

 

Thanks for your help,

Shashi

 

From: equinox-dev-bounces-j9T/66MeVpFAfugRpC6u6w@public.gmane.org [mailto:equinox-dev-bounces-j9T/66MeVpFAfugRpC6u6w@public.gmane.org] On Behalf Of fox
Sent: Tuesday, December 22, 2009 2:52 PM
To: Equinox development mailing list
Subject: Re: [equinox-dev] Regarding filters and listeners server sideequinoxwith servlet bridge.

 

Hi Shashi:

    Here is the jar file of org.eclipse.equinox.http.helper_1.0.0.200801161414.jar that you want,please check it.

 

best regards.

 

 

2009-12-22

fox

发件人: Shashikant Kale

发送时间: 2009-12-22  17:10:15

收件人: equinox-dev-j9T/66MeVpFAfugRpC6u6w@public.gmane.org

抄送:

主题: [equinox-dev] Regarding filters and listeners server side equinoxwith servlet bridge.

Hello,

 

We have a project wherein we embed a servlet container within OSGi and run a web project. Now we need to extend this further and run within an application server. I am planning to use equinox servlet bridge for this. However we have a requirement to have filter and listener within the project. As per the OSGi http specs these are not yet supported.

 

I would like to know if there are any alternatives to achieve this. I am taking a look at https://bugs.eclipse.org/bugs/show_bug.cgi?id=128067 which talks about filter support in OSGi http service however am unsure of how to use it.

 

Also I took a look at the comment from Simon Kaegi for achieving this functionality in the bug above.

 

If you want to look at an approach that works currently to support many of the

Filter and Listener use-cases take a look in the

equinox-incubator/org.eclipse.equinox.http.helper project.”

 

However I am not able to get the org.eclipse.equinox.http.helper project anymore.

 

Could somebody please point to where I can find some more information regarding this.

 

Thanks in advance,

Shashi

Thomas Watson | 5 Jan 14:46
Picon
Favicon

Equinox tagged for the next Helios integration build.

The map file has been updated for the following Bug changes:
+ Bug 279325. [ip] does not parse InitialProvisioning-Entries header correctly (FIXED)
+ Bug 297638. Need to obtain the Bundle associated with the protection domain for a Class. (FIXED)

The following projects have changed:
org.eclipse.equinox.ip
org.eclipse.osgi

Tom

Picon
Favicon

Welcome Simon Archer as a new rt.equinox.incubator Committer

rt.equinox.incubator Committers,
This automatically generated message marks the completion of all the legal
paperwork and webmaster provisioning for Simon Archer. Simon Archer is a
new full Committer on the rt.equinox.incubator project.

Welcome!
Picon
Favicon

Welcome Ruibin Zhou as a new rt.equinox.incubator Committer

rt.equinox.incubator Committers,
This automatically generated message marks the completion of all the legal
paperwork and webmaster provisioning for Ruibin Zhou. Ruibin Zhou is a new
full Committer on the rt.equinox.incubator project.

Welcome!
Picon
Favicon

Welcome David Lavin as a new rt.equinox.incubator Committer

rt.equinox.incubator Committers,
This automatically generated message marks the completion of all the legal
paperwork and webmaster provisioning for David Lavin. David Lavin is a new
full Committer on the rt.equinox.incubator project.

Welcome!
Picon
Favicon

Welcome Aldo Eisma as a new rt.equinox.incubator Committer

rt.equinox.incubator Committers,
This automatically generated message marks the completion of all the legal
paperwork and webmaster provisioning for Aldo Eisma. Aldo Eisma is a new
full Committer on the rt.equinox.incubator project.

Welcome!

Gmane